1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef nsUConvPropertySearch_h_
6 #define nsUConvPropertySearch_h_
8 #include "nsStringFwd.h"
12 const char* const mKey
;
13 const char* const mValue
;
14 const uint32_t mValueLength
;
17 class nsUConvPropertySearch
21 * Looks up a property by value.
24 * the static property array
28 * the return value (empty string if not found)
29 * @return NS_OK if found or NS_ERROR_FAILURE if not found
31 static nsresult
SearchPropertyValue(const nsUConvProp aProperties
[],
32 int32_t aNumberOfProperties
,
33 const nsACString
& aKey
,
37 #endif /* nsUConvPropertySearch_h_ */