intl/locale/src/nsUConvPropertySearch.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     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 class nsUConvPropertySearch
    11 {
    12   public:
    13     /**
    14      * Looks up a property by value.
    15      *
    16      * @param aProperties
    17      *   the static property array
    18      * @param aKey
    19      *   the key to look up
    20      * @param aValue
    21      *   the return value (empty string if not found)
    22      * @return NS_OK if found or NS_ERROR_FAILURE if not found
    23      */
    24     static nsresult SearchPropertyValue(const char* aProperties[][3],
    25                                         int32_t aNumberOfProperties,
    26                                         const nsACString& aKey,
    27                                         nsACString& aValue);
    28 };
    30 #endif /* nsUConvPropertySearch_h_ */

mercurial