intl/locale/src/nsLocale.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:865b9ceb6b9f
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__
22
23 #include "nsStringFwd.h"
24 #include "nsILocale.h"
25 #include "plhash.h"
26
27 class nsLocale : public nsILocale {
28 friend class nsLocaleService;
29 NS_DECL_THREADSAFE_ISUPPORTS
30
31 public:
32 nsLocale(void);
33 virtual ~nsLocale(void);
34
35 /* Declare methods from nsILocale */
36 NS_DECL_NSILOCALE
37
38 protected:
39
40 NS_IMETHOD AddCategory(const nsAString& category, const nsAString& value);
41
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);
45
46 PLHashTable* fHashtable;
47 uint32_t fCategoryCount;
48
49 };
50
51
52 #endif

mercurial