MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / isWhiteSpace

Function isWhiteSpace

src/openrct2/core/String.cpp:464–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

trimFunction · 0.85
trimStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected