mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
stringlib: Fix STRINGLIB_STR for UCS2/UCS4
This commit is contained in:
parent
4e10100dee
commit
d218bf14cc
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@
|
|||
#define STRINGLIB_TOUPPER Py_UNICODE_TOUPPER
|
||||
#define STRINGLIB_TOLOWER Py_UNICODE_TOLOWER
|
||||
#define STRINGLIB_FILL Py_UNICODE_FILL
|
||||
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
|
||||
#define STRINGLIB_STR PyUnicode_2BYTE_DATA
|
||||
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
||||
#define STRINGLIB_NEW _PyUnicode_FromUCS2
|
||||
#define STRINGLIB_RESIZE not_supported
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
#define STRINGLIB_TOUPPER Py_UNICODE_TOUPPER
|
||||
#define STRINGLIB_TOLOWER Py_UNICODE_TOLOWER
|
||||
#define STRINGLIB_FILL Py_UNICODE_FILL
|
||||
#define STRINGLIB_STR PyUnicode_1BYTE_DATA
|
||||
#define STRINGLIB_STR PyUnicode_4BYTE_DATA
|
||||
#define STRINGLIB_LEN PyUnicode_GET_LENGTH
|
||||
#define STRINGLIB_NEW _PyUnicode_FromUCS4
|
||||
#define STRINGLIB_RESIZE not_supported
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue