| 462 | } |
| 463 | |
| 464 | bool isWhiteSpace(codepoint_t codepoint) |
| 465 | { |
| 466 | // 0x3000 is the 'ideographic space', a 'fullwidth' character used in CJK languages. |
| 467 | return iswspace(static_cast<wchar_t>(codepoint)) || codepoint == 0x3000; |
| 468 | } |
| 469 | |
| 470 | utf8* trim(utf8* str) |
| 471 | { |