� S�Ljc@s�dZddlZddlZgedd�D]Zee�^q.ZdedLtRc3s|]}t�|�VqdS(N(t_cescape_utf8_to_str(t.0tc(tOrd(sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pys Nsc3s|]}t�|�VqdS(N(t_cescape_byte_to_str(RR(R(sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pys Os(t isinstancetsixt string_typestordtjoin(ttexttas_utf8((RsA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pytCEscape;s!s"(\\+)x([0-9a-fA-F])(?![0-9a-fA-F])cCsld�}tj||�}ttkr4|jd�Sdjd�|D��}|jd�jd�jd�S(sDUnescape a text string with C-style escape sequences to UTF-8 bytes.cSsDt|jd��d@r7|jd�d|jd�S|jd�S(Nitx0ii(tlentgroup(tm((sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pyt ReplaceHexZst string_escapeRcss|]}tt|�VqdS(N(t_cescape_highbit_to_strR (RR((sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pys gstasciitunicode_escapetraw_unicode_escape(t_CUNESCAPE_HEXtsubtstrtbytestdecodeR tencode(R Rtresult((sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pyt CUnescapeWs    ( t__doc__treR trangetitchrRRRtcompileRRR!(((sA/usr/lib/python2.7/site-packages/google/protobuf/text_encoding.pyts,  (      I'       %'