diff options
author | Victor Stinner <vstinner@python.org> | 2023-07-24 18:26:29 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-24 18:26:29 (GMT) |
commit | d27eb1e406a8789d9eaba6dbfed5c2e5abe294fd (patch) | |
tree | 705e1162de112ac9bbb4fab6e76646541798a94a /Include/internal | |
parent | 032f4809094bf03d92c54e46b305c499ef7e3165 (diff) | |
download | cpython-d27eb1e406a8789d9eaba6dbfed5c2e5abe294fd.zip cpython-d27eb1e406a8789d9eaba6dbfed5c2e5abe294fd.tar.gz cpython-d27eb1e406a8789d9eaba6dbfed5c2e5abe294fd.tar.bz2 |
gh-106320: Remove private _PyUnicode C API (#107185)
Move private _PyUnicode functions to the internal C API
(pycore_unicodeobject.h):
* _PyUnicode_IsCaseIgnorable()
* _PyUnicode_IsCased()
* _PyUnicode_IsXidContinue()
* _PyUnicode_IsXidStart()
* _PyUnicode_ToFoldedFull()
* _PyUnicode_ToLowerFull()
* _PyUnicode_ToTitleFull()
* _PyUnicode_ToUpperFull()
No longer export these functions.
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_unicodeobject.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Include/internal/pycore_unicodeobject.h b/Include/internal/pycore_unicodeobject.h index ad59c3e..d038112 100644 --- a/Include/internal/pycore_unicodeobject.h +++ b/Include/internal/pycore_unicodeobject.h @@ -11,6 +11,19 @@ extern "C" { #include "pycore_fileutils.h" // _Py_error_handler #include "pycore_ucnhash.h" // _PyUnicode_Name_CAPI +/* --- Characters Type APIs ----------------------------------------------- */ + +extern int _PyUnicode_IsXidStart(Py_UCS4 ch); +extern int _PyUnicode_IsXidContinue(Py_UCS4 ch); +extern int _PyUnicode_ToLowerFull(Py_UCS4 ch, Py_UCS4 *res); +extern int _PyUnicode_ToTitleFull(Py_UCS4 ch, Py_UCS4 *res); +extern int _PyUnicode_ToUpperFull(Py_UCS4 ch, Py_UCS4 *res); +extern int _PyUnicode_ToFoldedFull(Py_UCS4 ch, Py_UCS4 *res); +extern int _PyUnicode_IsCaseIgnorable(Py_UCS4 ch); +extern int _PyUnicode_IsCased(Py_UCS4 ch); + +/* --- Unicode API -------------------------------------------------------- */ + PyAPI_FUNC(int) _PyUnicode_CheckConsistency( PyObject *op, int check_content); |