|
1 |
|
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__ |
|
9 |
|
10 |
|
11 #include "nsICollation.h" |
|
12 #include "nsCollation.h" // static library |
|
13 #include "plstr.h" |
|
14 #include "mozilla/Attributes.h" |
|
15 #include "nsString.h" |
|
16 |
|
17 |
|
18 |
|
19 class nsCollationUnix MOZ_FINAL : public nsICollation { |
|
20 |
|
21 protected: |
|
22 nsCollation *mCollation; |
|
23 nsCString mLocale; |
|
24 nsCString mSavedLocale; |
|
25 bool mUseCodePointOrder; |
|
26 |
|
27 void DoSetLocale(); |
|
28 void DoRestoreLocale(); |
|
29 |
|
30 public: |
|
31 nsCollationUnix(); |
|
32 ~nsCollationUnix(); |
|
33 |
|
34 // nsISupports interface |
|
35 NS_DECL_ISUPPORTS |
|
36 |
|
37 // nsICollation interface |
|
38 NS_DECL_NSICOLLATION |
|
39 |
|
40 }; |
|
41 |
|
42 #endif /* nsCollationUnix_h__ */ |