mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
use full unicode mappings for upper/lower/title case (#12736)
Also broaden the category of characters that count as lowercase/uppercase.
This commit is contained in:
parent
9007f72db0
commit
b2bf01d824
11 changed files with 4634 additions and 1757 deletions
|
@ -2008,6 +2008,29 @@ PyAPI_FUNC(Py_UCS4) _PyUnicode_ToTitlecase(
|
|||
Py_UCS4 ch /* Unicode character */
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_ToLowerFull(
|
||||
Py_UCS4 ch, /* Unicode character */
|
||||
Py_UCS4 *res
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_ToTitleFull(
|
||||
Py_UCS4 ch, /* Unicode character */
|
||||
Py_UCS4 *res
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_ToUpperFull(
|
||||
Py_UCS4 ch, /* Unicode character */
|
||||
Py_UCS4 *res
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_IsCaseIgnorable(
|
||||
const Py_UCS4 ch /* Unicode character */
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_IsCased(
|
||||
const Py_UCS4 ch /* Unicode character */
|
||||
);
|
||||
|
||||
PyAPI_FUNC(int) _PyUnicode_ToDecimalDigit(
|
||||
Py_UCS4 ch /* Unicode character */
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue