Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsCollationUnix_h__
8 #define nsCollationUnix_h__
11 #include "nsICollation.h"
12 #include "nsCollation.h" // static library
13 #include "plstr.h"
14 #include "mozilla/Attributes.h"
15 #include "nsString.h"
19 class nsCollationUnix MOZ_FINAL : public nsICollation {
21 protected:
22 nsCollation *mCollation;
23 nsCString mLocale;
24 nsCString mSavedLocale;
25 bool mUseCodePointOrder;
27 void DoSetLocale();
28 void DoRestoreLocale();
30 public:
31 nsCollationUnix();
32 ~nsCollationUnix();
34 // nsISupports interface
35 NS_DECL_ISUPPORTS
37 // nsICollation interface
38 NS_DECL_NSICOLLATION
40 };
42 #endif /* nsCollationUnix_h__ */