From 6e53dfca72b932c4bdcd7aa02ca62bf8b2630eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jul 2016 09:20:25 +0000 Subject: less TCHARs: - TCHAR is replaced with wchar_t everywhere; - LPGENT replaced with either LPGENW or LPGEN; - fixes for ANSI plugins that improperly used _t functions; - TCHAR *t removed from MAllStrings; - ptszGroup, ptszTitle & ptszTab in OPTIONSDIALOGPAGE replaced with pwsz* git-svn-id: http://svn.miranda-ng.org/main/trunk@17133 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SpellChecker/src/dictionary.h | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins/SpellChecker/src/dictionary.h') diff --git a/plugins/SpellChecker/src/dictionary.h b/plugins/SpellChecker/src/dictionary.h index 09902435f6..da70a6a4c2 100644 --- a/plugins/SpellChecker/src/dictionary.h +++ b/plugins/SpellChecker/src/dictionary.h @@ -23,7 +23,7 @@ Boston, MA 02111-1307, USA. struct Suggestions { - TCHAR ** words; + wchar_t ** words; size_t count; }; @@ -32,37 +32,37 @@ struct Suggestions { // All dictionaries use a lazy interface class Dictionary { public: - TCHAR language[128]; - TCHAR localized_name[128]; - TCHAR english_name[128]; - TCHAR full_name[256]; - TCHAR source[128]; + wchar_t language[128]; + wchar_t localized_name[128]; + wchar_t english_name[128]; + wchar_t full_name[256]; + wchar_t source[128]; AutoReplaceMap *autoReplace; HANDLE hIcolib; virtual ~Dictionary(); // Return TRUE if the word is correct - virtual BOOL spell(const TCHAR *) = 0; + virtual BOOL spell(const wchar_t *) = 0; // Return a list of suggestions to a word - virtual Suggestions suggest(const TCHAR * word) = 0; + virtual Suggestions suggest(const wchar_t * word) = 0; // Return a list of auto suggestions to a word - virtual Suggestions autoSuggest(const TCHAR * word) = 0; + virtual Suggestions autoSuggest(const wchar_t * word) = 0; // Return a auto suggestions to a word // You have to free the item - virtual TCHAR * autoSuggestOne(const TCHAR * word) = 0; + virtual wchar_t * autoSuggestOne(const wchar_t * word) = 0; // Return TRUE if the char is a word char - virtual BOOL isWordChar(TCHAR c) = 0; + virtual BOOL isWordChar(wchar_t c) = 0; // Add a word to the user custom dict - virtual void addWord(const TCHAR * word) = 0; + virtual void addWord(const wchar_t * word) = 0; // Add a word to the list of ignored words - virtual void ignoreWord(const TCHAR * word) = 0; + virtual void ignoreWord(const wchar_t * word) = 0; // Assert that all needed data is loaded virtual void load() = 0; @@ -74,7 +74,7 @@ public: // Return a list of avaible languages -void GetAvaibleDictionaries(LIST &dicts, TCHAR *path, TCHAR *user_path); +void GetAvaibleDictionaries(LIST &dicts, wchar_t *path, wchar_t *user_path); // Free the list returned by GetAvaibleDictionaries void FreeDictionaries(LIST &dicts); -- cgit v1.2.3