MCPcopy
hub / github.com/OpenCCU/OpenCCU / unescape

Function unescape

buildroot-external/scripts/kconfiglib.py:6227–6232  ·  view source on GitHub ↗

r""" Unescapes the string 's'. \ followed by any character is replaced with just that character. Used internally when reading .config files.

(s)

Source from the content-addressed store, hash-verified

6225
6226
6227def unescape(s):
6228 r"""
6229 Unescapes the string 's'. \ followed by any character is replaced with just
6230 that character. Used internally when reading .config files.
6231 """
6232 return _unescape_sub(r"\1", s)
6233
6234# unescape() helper
6235_unescape_sub = re.compile(r"\\(.)").sub

Callers 15

webui.jsFile · 0.85
webui.jsFile · 0.85
setTextContentFunction · 0.85
translateKeyFunction · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85
webui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected