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 mozEnglishWordUtils_h__ michael@0: #define mozEnglishWordUtils_h__ michael@0: michael@0: #include "nsCOMPtr.h" michael@0: #include "mozISpellI18NUtil.h" michael@0: #include "nsIUnicodeEncoder.h" michael@0: #include "nsIUnicodeDecoder.h" michael@0: #include "nsString.h" michael@0: michael@0: #include "mozITXTToHTMLConv.h" michael@0: #include "nsCycleCollectionParticipant.h" michael@0: michael@0: class mozEnglishWordUtils : public mozISpellI18NUtil michael@0: { michael@0: public: michael@0: NS_DECL_CYCLE_COLLECTING_ISUPPORTS michael@0: NS_DECL_MOZISPELLI18NUTIL michael@0: NS_DECL_CYCLE_COLLECTION_CLASS(mozEnglishWordUtils) michael@0: michael@0: mozEnglishWordUtils(); michael@0: virtual ~mozEnglishWordUtils(); michael@0: /* additional members */ michael@0: enum myspCapitalization{ michael@0: NoCap,InitCap,AllCap,HuhCap michael@0: }; michael@0: michael@0: protected: michael@0: mozEnglishWordUtils::myspCapitalization captype(const nsString &word); michael@0: bool ucIsAlpha(char16_t aChar); michael@0: michael@0: nsString mLanguage; michael@0: nsString mCharset; michael@0: nsCOMPtr mURLDetector; // used to detect urls so the spell checker can skip them. michael@0: }; michael@0: michael@0: #endif