27 #ifndef __USERDICTWORDLIST__ 28 #define __USERDICTWORDLIST__ 30 #include "IUserDictService.h" 31 #include "TextCharBuffer.h" 33 #include "ScriptData.h" 39 int16 CompareUserDictString(
const WideString& a,
const WideString& b, bool16 caseSensitive, bool16 stripHyphens);
61 {
return fList == other.fList; }
63 {
return fList != other.fList; }
66 {
return *(fList[i]); }
68 void SetChunkSize(int32 chunk)
69 { fList.reserve(chunk); }
70 bool16 Preallocate(int32 newlen)
71 { fList.reserve(newlen);
return kTrue; }
90 {
delete fList[at]; fList.erase(fList.begin() + at); }
113 int32 ChunkSize()
const 116 {
return (int32)fList.size(); }
117 bool16 IsEmpty()
const 118 {
return fList.empty(); }
120 {
return *(fList.front()); }
122 {
return *(fList.back()); }
171 int32
Location(
const textchar *buffer, int32 length)
const 188 int32 ExactLocationHint(
const WideString& t, bool16& found)
const;
189 int32 BasicLocationHint(
const WideString& t, bool16& found)
const;