1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/intl/locale/src/unix/nsCollationUnix.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 1.4 + 1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 1.6 + * 1.7 + * This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 +#ifndef nsCollationUnix_h__ 1.11 +#define nsCollationUnix_h__ 1.12 + 1.13 + 1.14 +#include "nsICollation.h" 1.15 +#include "nsCollation.h" // static library 1.16 +#include "plstr.h" 1.17 +#include "mozilla/Attributes.h" 1.18 +#include "nsString.h" 1.19 + 1.20 + 1.21 + 1.22 +class nsCollationUnix MOZ_FINAL : public nsICollation { 1.23 + 1.24 +protected: 1.25 + nsCollation *mCollation; 1.26 + nsCString mLocale; 1.27 + nsCString mSavedLocale; 1.28 + bool mUseCodePointOrder; 1.29 + 1.30 + void DoSetLocale(); 1.31 + void DoRestoreLocale(); 1.32 + 1.33 +public: 1.34 + nsCollationUnix(); 1.35 + ~nsCollationUnix(); 1.36 + 1.37 + // nsISupports interface 1.38 + NS_DECL_ISUPPORTS 1.39 + 1.40 + // nsICollation interface 1.41 + NS_DECL_NSICOLLATION 1.42 + 1.43 +}; 1.44 + 1.45 +#endif /* nsCollationUnix_h__ */