* @ch is the unicode character whitespace? * * Reference: http://en.wikipedia.org/wiki/Whitespace_character#Unicode * * Return value: weather the character is a whitespace character. * */
| 177 | * Return value: weather the character is a whitespace character. |
| 178 | * */ |
| 179 | bool 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 | |
| 186 | bool isCJKUnicode(char32_t ch) |
| 187 | { |
no outgoing calls
no test coverage detected