* Check whether UNICODE character is whitespace or not, i.e. whether * this is a potential line-break character. * @param c UNICODE character to check * @return a boolean value whether 'c' is a whitespace character or not * @see http://www.fileformat.info/info/unicode/category/Zs/list.htm */
| 141 | * @see http://www.fileformat.info/info/unicode/category/Zs/list.htm |
| 142 | */ |
| 143 | inline bool IsWhitespace(char32_t c) |
| 144 | { |
| 145 | return c == 0x0020 /* SPACE */ || c == 0x3000; /* IDEOGRAPHIC SPACE */ |
| 146 | } |
| 147 | |
| 148 | /* Needed for NetBSD version (so feature) testing */ |
| 149 | #if defined(__NetBSD__) || defined(__FreeBSD__) |
no outgoing calls
no test coverage detected