MCPcopy Index your code
hub / github.com/python/cpython / _decode_uXXXX

Function _decode_uXXXX

Lib/json/decoder.py:60–68  ·  view source on GitHub ↗
(s, pos, _m=HEXDIGITS.match)

Source from the content-addressed store, hash-verified

58}
59
60def _decode_uXXXX(s, pos, _m=HEXDIGITS.match):
61 esc = _m(s, pos + 1)
62 if esc is not None:
63 try:
64 return int(esc.group(), 16)
65 except ValueError:
66 pass
67 msg = "Invalid \\uXXXX escape"
68 raise JSONDecodeError(msg, s, pos)
69
70def py_scanstring(s, end, strict=True,
71 _b=BACKSLASH, _m=STRINGCHUNK.match):

Callers 1

py_scanstringFunction · 0.85

Calls 2

JSONDecodeErrorClass · 0.85
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…