Home | History | Annotate | Download | only in Objects

Lines Matching refs:ch

54 /* Returns the titlecase Unicode characters corresponding to ch or just
55 ch if no titlecase mapping is known. */
57 Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch)
59 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
68 return ch + delta;
74 int _PyUnicode_IsTitlecase(Py_UNICODE ch)
76 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
84 int _PyUnicode_ToDecimalDigit(Py_UNICODE ch)
86 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
91 int _PyUnicode_IsDecimalDigit(Py_UNICODE ch)
93 if (_PyUnicode_ToDecimalDigit(ch) < 0)
101 int _PyUnicode_ToDigit(Py_UNICODE ch)
103 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
108 int _PyUnicode_IsDigit(Py_UNICODE ch)
110 if (_PyUnicode_ToDigit(ch) < 0)
118 int _PyUnicode_IsNumeric(Py_UNICODE ch)
120 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
130 int _PyUnicode_IsLowercase(Py_UNICODE ch)
132 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
140 int _PyUnicode_IsUppercase(Py_UNICODE ch)
142 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
147 /* Returns the uppercase Unicode characters corresponding to ch or just
148 ch if no uppercase mapping is known. */
150 Py_UNICODE _PyUnicode_ToUppercase(Py_UNICODE ch)
152 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
158 return ch + delta;
161 /* Returns the lowercase Unicode characters corresponding to ch or just
162 ch if no lowercase mapping is known. */
164 Py_UNICODE _PyUnicode_ToLowercase(Py_UNICODE ch)
166 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
172 return ch + delta;
178 int _PyUnicode_IsAlpha(Py_UNICODE ch)
180 const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
190 int _PyUnicode_IsLowercase(Py_UNICODE ch)
192 return iswlower(ch);
195 int _PyUnicode_IsUppercase(Py_UNICODE ch)
197 return iswupper(ch);
200 Py_UNICODE _PyUnicode_ToLowercase(Py_UNICODE ch)
202 return towlower(ch);
205 Py_UNICODE _PyUnicode_ToUppercase(Py_UNICODE ch)
207 return towupper(ch);
210 int _PyUnicode_IsAlpha(Py_UNICODE ch)
212 return iswalpha(ch);