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

Function make_utf16be

src/__init__.py:22312–22314  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

22310 return "()"
22311
22312 def make_utf16be(s):
22313 r = bytearray([254, 255]) + bytearray(s, "UTF-16BE")
22314 return "<" + r.hex() + ">" # brackets indicate hex
22315
22316 # The following either returns the original string with mixed-in
22317 # octal numbers \nnn for chars outside the ASCII range, or returns

Callers 1

get_pdf_strFunction · 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…