a :jg ã@s‚dZeeeedƒƒƒZedd…Zedd…Zedd…eedd…Zedd…eedd…Z dd„Z d d „Z d d „Z dS) zf String-handling utilities to avoid locale-dependence. Used primarily to generate type name aliases. ééAé[éaé{NcCs| 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)ÚsZlowered©r úE/usr/local/lib/python3.9/site-packages/numpy/_core/_string_helpers.pyÚ english_lowers r cCs| 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)rZupperedr r r Ú english_upper,s r cCs$|rt|dƒ|dd…S|SdS)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 )rr r r Úenglish_capitalizeHsr) Ú__doc__ÚtupleÚmapÚchrÚrangeZ _all_charsZ _ascii_upperZ _ascii_lowerrr r r rr r r r Ús