1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
9 #include "mozilla/Attributes.h"
10 #include "nsICollation.h"
11 #include "nsCollationFactory.h"
14 #include "unicode/ucol.h"
16 class nsCollation final
: public nsICollation
{
20 // nsISupports interface
23 // nsICollation interface
29 nsresult
ConvertStrength(const int32_t aStrength
,
30 UCollationStrength
* aStrengthOut
,
31 UColAttributeValue
* aCaseLevelOut
);
32 nsresult
EnsureCollator(const int32_t newStrength
);
33 nsresult
CleanUpCollator(void);
39 int32_t mLastStrength
;
40 UCollator
* mCollatorICU
;
43 #endif /* nsCollation_h_ */