| 183 | } |
| 184 | |
| 185 | static inline bool has_surrogate_pair_fallback(const uint16_t *data, |
| 186 | size_t size) { |
| 187 | for (size_t i = 0; i < size; ++i) { |
| 188 | auto c = data[i]; |
| 189 | if (c >= 0xD800 && c <= 0xDFFF) { |
| 190 | return true; |
| 191 | } |
| 192 | } |
| 193 | return false; |
| 194 | } |
| 195 | |
| 196 | namespace detail { |
| 197 |
no outgoing calls
no test coverage detected