diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-06-30 06:03:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 06:03:15 (GMT) |
commit | 349f76c6aace5a4a2b57f6b442a532faf0027d6b (patch) | |
tree | c9d8fe1e3062e51e65cd7b2a763822908cb7a1cb /Include | |
parent | b3332660adb02babb7e66e45310c66dc9a9a94da (diff) | |
download | cpython-349f76c6aace5a4a2b57f6b442a532faf0027d6b.zip cpython-349f76c6aace5a4a2b57f6b442a532faf0027d6b.tar.gz cpython-349f76c6aace5a4a2b57f6b442a532faf0027d6b.tar.bz2 |
bpo-36346: Prepare for removing the legacy Unicode C API (AC only). (GH-21223)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/unicodeobject.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 88a97a4..0f19b2a 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -11,6 +11,8 @@ /* --- Internal Unicode Operations ---------------------------------------- */ +#define USE_UNICODE_WCHAR_CACHE 1 + /* Since splitting on whitespace is an important use case, and whitespace in most situations is solely ASCII whitespace, we optimize for the common case by using a quick look-up table @@ -1169,4 +1171,7 @@ PyAPI_FUNC(PyObject*) _PyUnicode_FromId(_Py_Identifier*); and where the hash values are equal (i.e. a very probable match) */ PyAPI_FUNC(int) _PyUnicode_EQ(PyObject *, PyObject *); +PyAPI_FUNC(int) _PyUnicode_WideCharString_Converter(PyObject *, void *); +PyAPI_FUNC(int) _PyUnicode_WideCharString_Opt_Converter(PyObject *, void *); + PyAPI_FUNC(Py_ssize_t) _PyUnicode_ScanIdentifier(PyObject *); |