MCPcopy Create free account
hub / github.com/apache/thrift / isHighSurrogate

Function isHighSurrogate

lib/cpp/src/thrift/protocol/TJSONProtocol.cpp:294–296  ·  view source on GitHub ↗

Return true if the code unit is high surrogate

Source from the content-addressed store, hash-verified

292
293// Return true if the code unit is high surrogate
294static bool isHighSurrogate(uint16_t val) {
295 return val >= 0xD800 && val <= 0xDBFF;
296}
297
298// Return true if the code unit is low surrogate
299static bool isLowSurrogate(uint16_t val) {

Callers 1

readJSONStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected