Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
[gecko.git] / intl / locale / nsLocale.h
blob168f0614a32ddcfbdbfe01abd157f93ec4a06333
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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/.
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
13 * Modifications to Mozilla code or documentation
14 * identified per MPL Section 3.3
16 * Date Modified by Description of modification
17 * 03/27/2000 IBM Corp. Added PR_CALLBACK for Optlink
18 * use in OS2
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);
34 /* Declare methods from nsILocale */
35 NS_DECL_NSILOCALE
37 protected:
39 NS_IMETHOD AddCategory(const nsAString& category, const nsAString& value);
41 static PLHashNumber Hash_HashFunction(const void* key);
42 static int Hash_CompareNSString(const void* s1, const void* s2);
43 static int Hash_EnumerateDelete(PLHashEntry *he, int hashIndex, void *arg);
45 PLHashTable* fHashtable;
46 uint32_t fCategoryCount;
48 virtual ~nsLocale(void);
52 #endif