2001-09-26 04:47:52 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
1999-02-03 11:44:02 +03:00
|
|
|
|
|
|
|
#ifndef nsCaseConversionImp2_h__
|
|
|
|
#define nsCaseConversionImp2_h__
|
|
|
|
|
2003-11-29 21:56:10 +03:00
|
|
|
#include "nscore.h"
|
1999-02-03 11:44:02 +03:00
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
#include "nsICaseConversion.h"
|
|
|
|
|
|
|
|
class nsCaseConversionImp2 : public nsICaseConversion {
|
2013-07-19 06:23:32 +04:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
1999-02-03 11:44:02 +03:00
|
|
|
|
1999-02-10 02:48:56 +03:00
|
|
|
public:
|
2007-04-23 18:21:53 +04:00
|
|
|
virtual ~nsCaseConversionImp2() { }
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2007-01-03 23:40:51 +03:00
|
|
|
static nsCaseConversionImp2* GetInstance();
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD ToUpper(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD ToLower(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD ToTitle(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD ToUpper(const char16_t* anArray, char16_t* aReturn, uint32_t aLen) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD ToLower(const char16_t* anArray, char16_t* aReturn, uint32_t aLen) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
|
2015-03-21 19:28:04 +03:00
|
|
|
NS_IMETHOD CaseInsensitiveCompare(const char16_t* aLeft, const char16_t* aRight, uint32_t aLength, int32_t *aResult) override;
|
1999-02-03 11:44:02 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|