Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 *
7 *
8 * This Original Code has been modified by IBM Corporation.
9 * Modifications made by IBM described herein are
10 * Copyright (c) International Business Machines
11 * Corporation, 2000
12 *
13 * Modifications to Mozilla code or documentation
14 * identified per MPL Section 3.3
15 *
16 * Date Modified by Description of modification
17 * 03/27/2000 IBM Corp. Added PR_CALLBACK for Optlink
18 * use in OS2
19 */
20 #ifndef nsLocale_h__
21 #define nsLocale_h__
23 #include "nsStringFwd.h"
24 #include "nsILocale.h"
25 #include "plhash.h"
27 class nsLocale : public nsILocale {
28 friend class nsLocaleService;
29 NS_DECL_THREADSAFE_ISUPPORTS
31 public:
32 nsLocale(void);
33 virtual ~nsLocale(void);
35 /* Declare methods from nsILocale */
36 NS_DECL_NSILOCALE
38 protected:
40 NS_IMETHOD AddCategory(const nsAString& category, const nsAString& value);
42 static PLHashNumber Hash_HashFunction(const void* key);
43 static int Hash_CompareNSString(const void* s1, const void* s2);
44 static int Hash_EnumerateDelete(PLHashEntry *he, int hashIndex, void *arg);
46 PLHashTable* fHashtable;
47 uint32_t fCategoryCount;
49 };
52 #endif