MCPcopy Create free account
hub / github.com/axmolengine/axmol / isUnicodeSpace

Function isUnicodeSpace

core/base/UTF8.cpp:179–184  ·  view source on GitHub ↗

* @ch is the unicode character whitespace? * * Reference: http://en.wikipedia.org/wiki/Whitespace_character#Unicode * * Return value: weather the character is a whitespace character. * */

Source from the content-addressed store, hash-verified

177 * Return value: weather the character is a whitespace character.
178 * */
179bool isUnicodeSpace(char32_t ch)
180{
181 return (ch >= 0x0009 && ch <= 0x000D) || ch == 0x0020 || ch == 0x0085 || ch == 0x00A0 || ch == 0x1680 ||
182 (ch >= 0x2000 && ch <= 0x200A) || ch == 0x2028 || ch == 0x2029 || ch == 0x202F || ch == 0x205F ||
183 ch == 0x3000;
184}
185
186bool isCJKUnicode(char32_t ch)
187{

Callers 5

getFirstWordLenMethod · 0.85
multilineTextWrapMethod · 0.85
trimUTF16VectorFunction · 0.85
trimUTF32VectorFunction · 0.85
UTF8Tests.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected