summaryrefslogtreecommitdiff
path: root/src/lang
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2007-03-05 00:45:56 +0000
committerDarkvater <darkvater@openttd.org>2007-03-05 00:45:56 +0000
commit915ae8ffc28aee2e0bb9d9c623a711b4fc1f7faa (patch)
tree347173f94845f2ed93206df1d8a324c41c93e2bd /src/lang
parentaea64adbb9ff755be303515bebb428d92e7bcc92 (diff)
downloadopenttd-915ae8ffc28aee2e0bb9d9c623a711b4fc1f7faa.tar.xz
(svn r9012) -Fix/Feature (UTF8): When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'.
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area)
Diffstat (limited to 'src/lang')
0 files changed, 0 insertions, 0 deletions