MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / PyUnicode_DecodeRawUnicodeEscape

Function PyUnicode_DecodeRawUnicodeEscape

src/__init__.py:22012–22021  ·  view source on GitHub ↗
(s, errors='strict')

Source from the content-addressed store, hash-verified

22010
22011
22012def PyUnicode_DecodeRawUnicodeEscape(s, errors='strict'):
22013 # FIXED: handle raw unicode escape sequences
22014 if not s:
22015 return ""
22016 if isinstance(s, str):
22017 rc = s.encode("utf8", errors=errors)
22018 elif isinstance(s, bytes):
22019 rc = s[:]
22020 ret = rc.decode('raw_unicode_escape', errors=errors)
22021 return ret
22022
22023
22024def CheckColor(c: OptSeq):

Callers 2

extractTextboxMethod · 0.85
JM_EscapeStrFromBufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…