diff options
| author | shadchin <[email protected]> | 2025-06-18 20:33:12 +0300 |
|---|---|---|
| committer | shadchin <[email protected]> | 2025-06-18 21:16:29 +0300 |
| commit | 2fcfb855cd7780ab07751cc16c80a0a58168668a (patch) | |
| tree | 078f7a88f8a93e87eb89e67e0f43120c0e01528f /contrib/tools/python3/Include/cpython/unicodeobject.h | |
| parent | 6635b88fd4c0ff9c8545c3b277eaf5debaf40b8f (diff) | |
Update Python 3 to 3.12.11
commit_hash:0054a0810a95d3f1aa3d36410976d43e03ff7e86
Diffstat (limited to 'contrib/tools/python3/Include/cpython/unicodeobject.h')
| -rw-r--r-- | contrib/tools/python3/Include/cpython/unicodeobject.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/tools/python3/Include/cpython/unicodeobject.h b/contrib/tools/python3/Include/cpython/unicodeobject.h index f177cd9e2af..cf389286860 100644 --- a/contrib/tools/python3/Include/cpython/unicodeobject.h +++ b/contrib/tools/python3/Include/cpython/unicodeobject.h @@ -684,6 +684,19 @@ PyAPI_FUNC(PyObject*) _PyUnicode_DecodeUnicodeEscapeStateful( ); /* Helper for PyUnicode_DecodeUnicodeEscape that detects invalid escape chars. */ +PyAPI_FUNC(PyObject*) _PyUnicode_DecodeUnicodeEscapeInternal2( + const char *string, /* Unicode-Escape encoded string */ + Py_ssize_t length, /* size of string */ + const char *errors, /* error handling */ + Py_ssize_t *consumed, /* bytes consumed */ + int *first_invalid_escape_char, /* on return, if not -1, contain the first + invalid escaped char (<= 0xff) or invalid + octal escape (> 0xff) in string. */ + const char **first_invalid_escape_ptr); /* on return, if not NULL, may + point to the first invalid escaped + char in string. + May be NULL if errors is not NULL. */ +// Export for binary compatibility. PyAPI_FUNC(PyObject*) _PyUnicode_DecodeUnicodeEscapeInternal( const char *string, /* Unicode-Escape encoded string */ Py_ssize_t length, /* size of string */ |
