Home
last modified time | relevance | path

Searched refs:_cescape_utf8_to_str (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/python/google/protobuf/
Dtext_encoding.py37 _cescape_utf8_to_str = [chr(i) for i in range(0, 256)] variable
38 _cescape_utf8_to_str[9] = r'\t' # optional escape
39 _cescape_utf8_to_str[10] = r'\n' # optional escape
40 _cescape_utf8_to_str[13] = r'\r' # optional escape
41 _cescape_utf8_to_str[39] = r"\'" # optional escape
43 _cescape_utf8_to_str[34] = r'\"' # necessary escape
44 _cescape_utf8_to_str[92] = r'\\' # necessary escape
78 return ''.join(_cescape_utf8_to_str[Ord(c)] for c in text)