* 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:
parent
91fbf9fbe5
commit
101bdf05d0
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user