| 157 | // std::isspace is locale-dependent and fails for trailing UTF-8 characters. |
| 158 | template <std::integral T> |
| 159 | inline constexpr bool IsASCIISpace(T c) |
| 160 | { |
| 161 | switch (c) |
| 162 | { |
| 163 | case ' ': |
| 164 | case '\f': |
| 165 | case '\n': |
| 166 | case '\r': |
| 167 | case '\t': |
| 168 | case '\v': return true; |
| 169 | default: return false; |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | bool IsASCIILatin(UniChar c); |
| 174 |
no outgoing calls
no test coverage detected