§
    cÌc¸  ã                   ó¨   — U d Z ddlmZmZ ddlmZ efd„Zi Z	ee
ef         ed<   i Zeee
f         ed<   e	eefd„Ze	eefd„Zd	„ Zd
„ Ze	efd„Zd„ ZdS )zGSome functions to enable caching the conversion between unicode to utf8é    )Úutf_8_encodeÚutf_8_decode)ÚDictc                 ó,   — | €dS  || ¦  «        d         S )z¥wrap _utf8_decode to support None->None for optional strings.

    Also, only return the Unicode portion, since we don't care about the second
    return value.
    Nr   © )Ú
bytestringÚ_utf8_decodes     ú3/usr/lib/python3/dist-packages/breezy/cache_utf8.pyÚ_utf8_decode_with_Noner      s$   € ð ÐØˆtàˆ|˜JÑ'Ô'¨Ô*Ð*ó    Ú_unicode_to_utf8_mapÚ_utf8_to_unicode_mapc                 ón   — 	 ||          S # t           $ r   || ¦  «        d         x|| <   }| ||<   |cY S w xY w)z8Take this unicode revision id, and get a unicode versionr   ©ÚKeyError)Úunicode_strÚ_uni_to_utf8Ú_utf8_to_uniÚ_utf8_encodeÚutf8_strs        r
   Úencoder   0   s^   € ðØ˜KÔ(Ð(øÝð ð ð Ø/;¨|¸KÑ/HÔ/HÈÔ/KÐKˆ�[Ñ! HØ!,ˆ�XÑØˆˆˆðøøøó   ‚
 Š'4³4c                 ón   — 	 ||          S # t           $ r   || ¦  «        d         }||| <   | ||<   |cY S w xY w)z<Take a utf8 revision id, and decode it, but cache the resultr   r   )r   r   r   r	   r   s        r
   Údecoder   E   sa   € ð
Ø˜HÔ%Ð%øÝð ð ð Ø"�l 8Ñ,Ô,¨QÔ/ˆØ!,ˆ�XÑØ$,ˆ�[Ñ!ØÐÐÐð	øøør   c                 ó:   — t          t          | ¦  «        ¦  «        S )zºReturn a cached version of the unicode string.

    This has a similar idea to that of intern() in that it tries
    to return a singleton string. Only it works for unicode strings.
    )r   r   )r   s    r
   Úget_cached_unicoder   S   s   € õ •&˜Ñ%Ô%Ñ&Ô&Ð&r   c                 ó:   — t          t          | ¦  «        ¦  «        S )zøReturn a cached version of the utf-8 string.

    Get a cached version of this string (similar to intern()).
    At present, this will be decoded to ensure it is a utf-8 string. In the
    future this might change to simply caching the string.
    )r   r   )r   s    r
   Úget_cached_utf8r   _   s   € õ •&˜Ñ"Ô"Ñ#Ô#Ð#r   c                 óˆ   — |                       d¦  «        }|                     || ¦  «        } |                     | |¦  «         | S )z9This is a string which is identical in utf-8 and unicode.Úascii)r   Ú
setdefault)Ú	ascii_strr   r   Úuni_strs       r
   Úget_cached_asciir$   i   sH   € ð ×Ò˜wÑ'Ô'€GØ×'Ò'¨°Ñ;Ô;€IØ×Ò˜I wÑ/Ô/Ð/ØÐr   c                  ój   — t                                ¦   «          t                               ¦   «          dS )z&Clear the encoding and decoding cachesN)r   Úclearr   r   r   r
   Úclear_encoding_cacher'   w   s,   € å×ÒÑ Ô Ð Ý×ÒÑ Ô Ð Ð Ð r   N)Ú__doc__Úcodecsr   r   r   r	   Útypingr   r   r   ÚstrÚbytesÚ__annotations__r   r   r   r   r   r$   r'   r   r   r
   ú<module>r.      s.  ðð( NÐ MÐ Mðð ð ð ð ð ð ð ð Ð Ð Ð Ð Ð ð 5Að 	+ð 	+ð 	+ð 	+ð *,Ð �d˜3 ˜:Ô&Ð +Ð +Ñ +Ø)+Ð �d˜5 #˜:Ô&Ð +Ð +Ñ +ð -Ø,Ø$ðð ð ð ð, -Ø,Ø$ðð ð ð ð	'ð 	'ð 	'ð$ð $ð $ð #7Ø"6ðð ð ð ð!ð !ð !ð !ð !r   