intl/locale/src/nsLocale.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/locale/src/nsLocale.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.5 + *
     1.6 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 + *
    1.10 + *
    1.11 + * This Original Code has been modified by IBM Corporation.
    1.12 + * Modifications made by IBM described herein are
    1.13 + * Copyright (c) International Business Machines
    1.14 + * Corporation, 2000
    1.15 + *
    1.16 + * Modifications to Mozilla code or documentation
    1.17 + * identified per MPL Section 3.3
    1.18 + *
    1.19 + * Date         Modified by     Description of modification
    1.20 + * 03/27/2000   IBM Corp.       Added PR_CALLBACK for Optlink
    1.21 + *                               use in OS2
    1.22 + */
    1.23 +#ifndef nsLocale_h__
    1.24 +#define nsLocale_h__
    1.25 +
    1.26 +#include "nsStringFwd.h"
    1.27 +#include "nsILocale.h"
    1.28 +#include "plhash.h"
    1.29 +
    1.30 +class nsLocale : public nsILocale {
    1.31 +	friend class nsLocaleService;
    1.32 +	NS_DECL_THREADSAFE_ISUPPORTS
    1.33 +
    1.34 +public:
    1.35 +	nsLocale(void);
    1.36 +	virtual ~nsLocale(void);
    1.37 +	
    1.38 +	/* Declare methods from nsILocale */
    1.39 +	NS_DECL_NSILOCALE
    1.40 +
    1.41 +protected:
    1.42 +	
    1.43 +	NS_IMETHOD AddCategory(const nsAString& category, const nsAString& value);
    1.44 +
    1.45 +	static PLHashNumber Hash_HashFunction(const void* key);
    1.46 +	static int Hash_CompareNSString(const void* s1, const void* s2);
    1.47 +	static int Hash_EnumerateDelete(PLHashEntry *he, int hashIndex, void *arg);
    1.48 +
    1.49 +	PLHashTable*	fHashtable;
    1.50 +	uint32_t		fCategoryCount;
    1.51 +
    1.52 +};
    1.53 +
    1.54 +
    1.55 +#endif

mercurial