| Server IP : 85.155.190.233 / Your IP : 216.73.216.103 Web Server : nginx/1.24.0 System : Linux antigravity-cli 6.8.0-31-generic #31-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 20 00:40:06 UTC 2024 x86_64 User : wp-moonbloom ( 1001) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/babel/messages/__pycache__/ |
Upload File : |
�
ƪb�U � �� � d Z ddlZddlZddlmZmZ ddlmZmZ d� Z d� Z
G d� de� Z G d � d
� Z
G d� d� Zdd
�Z ej d� Zd� Zdd�Z dd�Zd� Zy)z�
babel.messages.pofile
~~~~~~~~~~~~~~~~~~~~~
Reading and writing of files in the ``gettext`` PO (portable object)
format.
:copyright: (c) 2013-2022 by the Babel Team.
:license: BSD, see LICENSE for more details.
� N)�Catalog�Message)�wraptext�_cmpc �X � d� }t j d� j || dd � S )z�Reverse `escape` the given string.
>>> print(unescape('"Say:\\n \\"hello, world!\\"\\n"'))
Say:
"hello, world!"
<BLANKLINE>
:param string: the string to unescape
c �L � | j d� }|dk( ry|dk( ry|dk( ry|S )N� �n�
�t� �r�
)�group)�match�ms �7/usr/lib/python3/dist-packages/babel/messages/pofile.py�replace_escapesz!unescape.<locals>.replace_escapes s2 � ��K�K��N����8��
�#�X��
�#�X���� z\\([\\trn"])r ���)�re�compile�sub)�stringr s r �unescaper s+ � � � �:�:�o�&�*�*�?�F�1�R�L�I�Ir c � � d| v rG| j � }| j d� r|dd }t t |� }dj |� S t | � S )a� Reverse the normalization done by the `normalize` function.
>>> print(denormalize(r'''""
... "Say:\n"
... " \"hello, world!\"\n"'''))
Say:
"hello, world!"
<BLANKLINE>
>>> print(denormalize(r'''""
... "Say:\n"
... " \"Lorem ipsum dolor sit "
... "amet, consectetur adipisicing"
... " elit, \"\n"'''))
Say:
"Lorem ipsum dolor sit amet, consectetur adipisicing elit, "
<BLANKLINE>
:param string: the string to denormalize
r �""r N� )�
splitlines�
startswith�mapr �join)r �
escaped_lines�liness r �denormalizer% * sX � �* �v�~��)�)�+�
����T�"�)�!�"�-�M��H�m�,���w�w�u�~�����r c �"