U
    ‰¾úg  ã                   @   s4   d Z ddlmZ G dd„ deƒZeedœ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__ZUTF_8Z	UTF_16_LEr   r   r   ú;/tmp/pip-unpacked-wheel-swnnwir2/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   Ztelegram._utils.enumr   r   Ústrr   r   r   r   r
   Ú<module>   s   