HEX
Server: LiteSpeed
System: Linux ws4.angoweb.net 5.14.0-611.13.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 11 04:57:59 EST 2025 x86_64
User: tswangoe (2287)
PHP: 8.1.33
Disabled: show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Upload Files
File: //lib/python3.9/site-packages/google/protobuf/__pycache__/text_encoding.cpython-39.opt-1.pyc
a

x��g��@s�dZddlZddlZiZded<ded<ded<d	ed
<ded<d
ed<dd�edd�D�Ze��D]\ZZeee<qddd�edd�D�dd�edd�D�dd�edd�D�Z	e��D]\ZZee	e<q�[[dd�Z
e�d�Zdd�Z
dS)zEncoding related utilities.�Nz\t�	z\n�
z\r�
z\"�"z\'�'z\\�\cCsg|]}t|��qS���chr��.0�irr�A/usr/lib/python3.9/site-packages/google/protobuf/text_encoding.py�
<listcomp>-�r�cCsg|]}d|�qS�z\%03orrrrrr2r� cCsg|]}t|��qSrr	rrrrr3r�cCsg|]}d|�qSrrrrrrr4rcsltjr4t|t�}|r"|r"|�t�S|r*tndd��nt�|rTd��fdd�|D��Sd��fdd�|D��S)amEscape 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).
  cSs|S�Nr)�xrrr�<lambda>PrzCEscape.<locals>.<lambda>�c3s|]}t�|�VqdSr)�_cescape_unicode_to_str�r�c�Zord_rr�	<genexpr>TrzCEscape.<locals>.<genexpr>c3s|]}t�|�VqdSr)�_cescape_byte_to_strrrrrrUr)�sixZPY3�
isinstance�str�	translate�_cescape_chr_to_symbol_map�ord�join)�textZas_utf8Ztext_is_unicoderrr�CEscape:s

r'z"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])cCs:dd�}t�||�}tjr$|�d�S|�d��d��d�S)z�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.
  cSs4t|�d��d@r*|�d�d|�d�S|�d�S)N�Zx0�r)�len�group)�mrrr�
ReplaceHexeszCUnescape.<locals>.ReplaceHexZ
string_escapezutf-8Zunicode_escapeZraw_unicode_escape)�_CUNESCAPE_HEX�subrZPY2�decode�encode)r&r-�resultrrr�	CUnescape[s
	

��r3)�__doc__�rerr#�ranger�itemsZbyte�stringrr'�compiler.r3rrrr�<module>s.
��