1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00

Fix banner text formatting, import / export

This commit is contained in:
Ted John
2020-11-28 16:52:19 +00:00
parent 5a90cd4163
commit 699103fe86
8 changed files with 63 additions and 12 deletions

View File

@@ -509,6 +509,13 @@ namespace String
return utf8_write_codepoint(dst, codepoint);
}
void AppendCodepoint(std::string& str, codepoint_t codepoint)
{
char buffer[8]{};
utf8_write_codepoint(buffer, codepoint);
str.append(buffer);
}
bool IsWhiteSpace(codepoint_t codepoint)
{
// 0x3000 is the 'ideographic space', a 'fullwidth' character used in CJK languages.