* Use BUnicodeChar to decide if a character is space. This is slightly better than considering only ascii space.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39341 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Adrien Destugues 2010-11-07 10:08:46 +00:00
parent 91fbf9fbe5
commit 101bdf05d0

View File

@ -150,7 +150,8 @@ class TextBitmapView : public BView
// text (right after the last space we saw). // text (right after the last space we saw).
while (*currentChar != '\0') { while (*currentChar != '\0') {
if (*currentChar == ' ') { if (BUnicodeChar::IsWhitespace(BUnicodeChar::FromUTF8(
currentChar))) {
// TODO : we should also handle other kinds of whitespace. // TODO : we should also handle other kinds of whitespace.
// Chinese seems to use a different one. ICU has proper // Chinese seems to use a different one. ICU has proper
// support for it. // support for it.