michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsUConvPropertySearch_h_ michael@0: #define nsUConvPropertySearch_h_ michael@0: michael@0: #include "nsStringFwd.h" michael@0: michael@0: class nsUConvPropertySearch michael@0: { michael@0: public: michael@0: /** michael@0: * Looks up a property by value. michael@0: * michael@0: * @param aProperties michael@0: * the static property array michael@0: * @param aKey michael@0: * the key to look up michael@0: * @param aValue michael@0: * the return value (empty string if not found) michael@0: * @return NS_OK if found or NS_ERROR_FAILURE if not found michael@0: */ michael@0: static nsresult SearchPropertyValue(const char* aProperties[][3], michael@0: int32_t aNumberOfProperties, michael@0: const nsACString& aKey, michael@0: nsACString& aValue); michael@0: }; michael@0: michael@0: #endif /* nsUConvPropertySearch_h_ */