| 202 | } |
| 203 | |
| 204 | bool is_space(char32_t c) |
| 205 | { |
| 206 | static const std::unordered_set<char32_t> unicode_spaces = { |
| 207 | 0x0009, 0x000A, 0x000B, 0x000C, 0x000D, 0x0020, 0x0085, 0x00A0, |
| 208 | 0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, |
| 209 | 0x2007, 0x2008, 0x2009, 0x200A, 0x2028, 0x2029, 0x202F, 0x205F, 0x3000 |
| 210 | }; |
| 211 | return unicode_spaces.count(c) > 0; |
| 212 | } |
| 213 | |
| 214 | bool is_space(const std::string& val) |
| 215 | { |