Bug 1452643 [wpt PR 10327] - [css-multicol] column-gap normal is 1em per spec now...
[gecko.git] / intl / locale / nsUConvPropertySearch.h
blobb27faa85b93ed9759abe7d43994f5468c069bac4
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"
10 struct nsUConvProp
12 const char* const mKey;
13 const char* const mValue;
14 const uint32_t mValueLength;
17 class nsUConvPropertySearch
19 public:
20 /**
21 * Looks up a property by value.
23 * @param aProperties
24 * the static property array
25 * @param aKey
26 * the key to look up
27 * @param aValue
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,
34 nsACString& aValue);
37 #endif /* nsUConvPropertySearch_h_ */