2001-09-26 00:47:52 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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 08:44:02 +00:00
|
|
|
|
|
|
|
#ifndef nsCaseConversionImp2_h__
|
|
|
|
#define nsCaseConversionImp2_h__
|
|
|
|
|
2003-11-29 18:56:10 +00:00
|
|
|
#include "nscore.h"
|
1999-02-03 08:44:02 +00:00
|
|
|
#include "nsISupports.h"
|
|
|
|
|
|
|
|
#include "nsICaseConversion.h"
|
|
|
|
|
|
|
|
class nsCaseConversionImp2 : public nsICaseConversion {
|
2013-07-19 02:23:32 +00:00
|
|
|
NS_DECL_THREADSAFE_ISUPPORTS
|
1999-02-03 08:44:02 +00:00
|
|
|
|
1999-02-09 23:48:56 +00:00
|
|
|
public:
|
2007-04-23 14:21:53 +00:00
|
|
|
virtual ~nsCaseConversionImp2() { }
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2007-01-03 20:40:51 +00:00
|
|
|
static nsCaseConversionImp2* GetInstance();
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD ToUpper(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD ToLower(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD ToTitle(char16_t aChar, char16_t* aReturn) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD ToUpper(const char16_t* anArray, char16_t* aReturn, uint32_t aLen) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD ToLower(const char16_t* anArray, char16_t* aReturn, uint32_t aLen) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
|
2015-03-21 16:28:04 +00:00
|
|
|
NS_IMETHOD CaseInsensitiveCompare(const char16_t* aLeft, const char16_t* aRight, uint32_t aLength, int32_t *aResult) override;
|
1999-02-03 08:44:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|