MCPcopy Create free account
hub / github.com/apache/fory / has_surrogate_pair_fallback

Function has_surrogate_pair_fallback

cpp/fory/util/string_util.h:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185static 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
196namespace detail {
197

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected