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