
    Ph                         d Z  e ee ed                  Zedd Zedd Zdj                  edd ez   edd z         Z	dj                  edd ez   edd z         Z
d Zd	 Zd
 Zy)zf
String-handling utilities to avoid locale-dependence.

Used primarily to generate type name aliases.
   A   [   a   {    Nc                 0    | j                  t              }|S )a   Apply English case rules to convert ASCII strings to all lower case.

    This is an internal utility function to replace calls to str.lower() such
    that we can avoid changing behavior with changing locales. In particular,
    Turkish has distinct dotted and dotless variants of the Latin letter "I" in
    both lowercase and uppercase. Thus, "I".lower() != "i" in a "tr" locale.

    Parameters
    ----------
    s : str

    Returns
    -------
    lowered : str

    Examples
    --------
    >>> from numpy.core.numerictypes import english_lower
    >>> english_lower('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_')
    'abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789_'
    >>> english_lower('')
    ''
    )	translateLOWER_TABLE)slowereds     eC:\Users\daisl\Desktop\realtime-object-detection\venv\Lib\site-packages\numpy/core/_string_helpers.pyenglish_lowerr          0 kk+&GN    c                 0    | j                  t              }|S )a   Apply English case rules to convert ASCII strings to all upper case.

    This is an internal utility function to replace calls to str.upper() such
    that we can avoid changing behavior with changing locales. In particular,
    Turkish has distinct dotted and dotless variants of the Latin letter "I" in
    both lowercase and uppercase. Thus, "i".upper() != "I" in a "tr" locale.

    Parameters
    ----------
    s : str

    Returns
    -------
    uppered : str

    Examples
    --------
    >>> from numpy.core.numerictypes import english_upper
    >>> english_upper('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_')
    'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
    >>> english_upper('')
    ''
    )r	   UPPER_TABLE)r   uppereds     r   english_upperr   ,   r   r   c                 2    | rt        | d         | dd z   S | S )a,   Apply English case rules to convert the first character of an ASCII
    string to upper case.

    This is an internal utility function to replace calls to str.capitalize()
    such that we can avoid changing behavior with changing locales.

    Parameters
    ----------
    s : str

    Returns
    -------
    capitalized : str

    Examples
    --------
    >>> from numpy.core.numerictypes import english_capitalize
    >>> english_capitalize('int8')
    'Int8'
    >>> english_capitalize('Int8')
    'Int8'
    >>> english_capitalize('')
    ''
           N)r   )r   s    r   english_capitalizer   H   s&    2 	QqT"QqrU**r   )__doc__tuplemapchrrange
_all_chars_ascii_upper_ascii_lowerjoinr
   r   r   r   r    r   r   <module>r#      s    3sE#J'(
"U#"U#ggj"o4z%&7IIJggj"o4z%&7IIJ88r   