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

Method _toChar

lib/py/src/protocol/TJSONProtocol.py:264–270  ·  view source on GitHub ↗
(self, high, low=None)

Source from the content-addressed store, hash-verified

262 return codeunit >= 0xdc00 and codeunit <= 0xdfff
263
264 def _toChar(self, high, low=None):
265 if not low:
266 return chr(high)
267 else:
268 codepoint = (1 << 16) + ((high & 0x3ff) << 10)
269 codepoint += low & 0x3ff
270 return chr(codepoint)
271
272 def readJSONString(self, skipContext):
273 highSurrogate = None

Callers 1

readJSONStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected