michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsCaseConversionImp2_h__ michael@0: #define nsCaseConversionImp2_h__ michael@0: michael@0: #include "nscore.h" michael@0: #include "nsISupports.h" michael@0: michael@0: #include "nsICaseConversion.h" michael@0: michael@0: class nsCaseConversionImp2 : public nsICaseConversion { michael@0: NS_DECL_THREADSAFE_ISUPPORTS michael@0: michael@0: public: michael@0: virtual ~nsCaseConversionImp2() { } michael@0: michael@0: static nsCaseConversionImp2* GetInstance(); michael@0: michael@0: NS_IMETHOD ToUpper(char16_t aChar, char16_t* aReturn); michael@0: michael@0: NS_IMETHOD ToLower(char16_t aChar, char16_t* aReturn); michael@0: michael@0: NS_IMETHOD ToTitle(char16_t aChar, char16_t* aReturn); michael@0: michael@0: NS_IMETHOD ToUpper(const char16_t* anArray, char16_t* aReturn, uint32_t aLen); michael@0: michael@0: NS_IMETHOD ToLower(const char16_t* anArray, char16_t* aReturn, uint32_t aLen); michael@0: michael@0: NS_IMETHOD CaseInsensitiveCompare(const char16_t* aLeft, const char16_t* aRight, uint32_t aLength, int32_t *aResult); michael@0: }; michael@0: michael@0: #endif