Home | Trees | Indices | Help |
---|
|
Encoding related utilities.
|
|||
|
|||
|
|
|||
_cescape_chr_to_symbol_map =
|
|||
_cescape_unicode_to_str =
|
|||
_cescape_byte_to_str =
|
|||
_CUNESCAPE_HEX = re.compile(r'
|
|||
__package__ =
|
|||
i = 255
|
|
Escape a bytes string for use in an text protocol buffer. Args: text: A byte string to be escaped. as_utf8: Specifies if result may contain non-ASCII characters. In Python 3 this allows unescaped non-ASCII Unicode characters. In Python 2 the return value will be valid UTF-8 rather than only ASCII. Returns: Escaped string (str). |
Unescape a text string with C-style escape sequences to UTF-8 bytes. Args: text: The data to parse in a str. Returns: A byte string. |
|
_cescape_chr_to_symbol_map
|
_cescape_unicode_to_str
|
_cescape_byte_to_str
|
_CUNESCAPE_HEX
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Sep 6 13:21:35 2019 | http://epydoc.sourceforge.net |