Bug 1890689 remove DynamicResampler::mSetBufferDuration r=pehrsons
[gecko.git] / intl / locale / nsUConvPropertySearch.h
blob4914deb5ec1ae8edb7cf3cf5720c86ec83269ec3
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 {
11 const char* const mKey;
12 const char* const mValue;
13 const uint32_t mValueLength;
16 class nsUConvPropertySearch {
17 public:
18 /**
19 * Looks up a property by value.
21 * @param aProperties
22 * the static property array
23 * @param aKey
24 * the key to look up
25 * @param aValue
26 * the return value (empty string if not found)
27 * @return NS_OK if found or NS_ERROR_FAILURE if not found
29 static nsresult SearchPropertyValue(const nsUConvProp aProperties[],
30 int32_t aNumberOfProperties,
31 const nsACString& aKey,
32 nsACString& aValue);
35 #endif /* nsUConvPropertySearch_h_ */