o
    Zzj
  ã                   @   s6   d Z ddlmZ G dd„ deƒZdedefdd„Zd	S )
a&  This module contains a helper functions related to string manipulation.

Warning:
    Contents of this module are intended to be used internally by the library and *not* by the
    user. Changes to this module are not considered breaking changes and may not be documented in
    the changelog.
é    )Ú
StringEnumc                   @   s   e Zd ZdZdZdZdZdS )ÚTextEncodingzNThis enum contains encoding schemes for text.

    .. versionadded:: 21.5
    © zutf-8z	utf-16-leN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú	__slots__ÚUTF_8Ú	UTF_16_LEr   r   r   úR/var/www/kodo/tsheker/venv/lib/python3.10/site-packages/telegram/_utils/strings.pyr   !   s
    r   Ú	snake_strÚreturnc                 C   s.   |   d¡}|d d dd„ |dd… D ƒ¡ S )z©Converts a snake_case string to camelCase.

    Args:
        snake_str (:obj:`str`): The string to convert.

    Returns:
        :obj:`str`: The converted string.
    Ú_r   Ú c                 s   s   � | ]}|  ¡ V  qd S )N)Útitle)Ú.0Úxr   r   r   Ú	<genexpr>7   s   € z to_camel_case.<locals>.<genexpr>é   N)ÚsplitÚjoin)r   Ú
componentsr   r   r   Úto_camel_case-   s   
	$r   N)r   Útelegram._utils.enumr   r   Ústrr   r   r   r   r   Ú<module>   s   