英単語予測対象に数字も追加。
1 parent 5436159 commit 38649699d4ee320867e0e56790c26499396c0447
@tamra tamra authored on 14 Jan 2006
Showing 1 changed file
View
4
honoka/plugins/wordsprediction.cpp
WideString word,prewords;
for(unsigned int i = str.length();i > 0;i --) {
//if (isalnum(utf8_wcstombs(str).c_str()[i - 1]))
if (((str[i - 1] >= 0x0041) && (str[i - 1] <= 0x005A)) ||
((str[i - 1] >= 0x0061) && (str[i - 1] <= 0x007A)))
((str[i - 1] >= 0x0061) && (str[i - 1] <= 0x007A)) ||
((str[i - 1] >= 0x0030) && (str[i - 1] <= 0x0039)))
word = str[i - 1] + word;
else break;
}
if (!word.length()) return l;