Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/
Dtext_encoding.py47 _cescape_byte_to_str = ([r'\%03o' % i for i in range(0, 32)] + variable
50 _cescape_byte_to_str[9] = r'\t' # optional escape
51 _cescape_byte_to_str[10] = r'\n' # optional escape
52 _cescape_byte_to_str[13] = r'\r' # optional escape
53 _cescape_byte_to_str[39] = r"\'" # optional escape
55 _cescape_byte_to_str[34] = r'\"' # necessary escape
56 _cescape_byte_to_str[92] = r'\\' # necessary escape
79 return ''.join(_cescape_byte_to_str[Ord(c)] for c in text)