Home
last modified time | relevance | path

Searched refs:Py_UNICODE_SIZE (Results 1 – 21 of 21) sorted by relevance

/external/python/cpython2/Modules/cjkcodecs/
Dcjkcodecs.h94 #if Py_UNICODE_SIZE == 4
148 #if Py_UNICODE_SIZE == 2
189 #if Py_UNICODE_SIZE == 2
D_codecs_cn.c171 #if Py_UNICODE_SIZE == 2 in ENCODER()
189 #if Py_UNICODE_SIZE == 2 in ENCODER()
Dmultibytecodec.c443 retunisize * Py_UNICODE_SIZE); in multibytecodec_decerror()
767 Py_UNICODE_SIZE * ctx->pendingsize); in encoder_encode_stateful()
770 Py_UNICODE_SIZE * datalen); in encoder_encode_stateful()
787 Py_UNICODE_SIZE * origpending); in encoder_encode_stateful()
802 ctx->pendingsize * Py_UNICODE_SIZE); in encoder_encode_stateful()
D_codecs_iso2022.c197 #if Py_UNICODE_SIZE == 2 in ENCODER()
/external/python/cpython3/Objects/stringlib/
Dunicodedefs.h12 #define STRINGLIB_SIZEOF_CHAR Py_UNICODE_SIZE
/external/python/cpython2/PC/os2vacpp/
Dpyconfig.h85 #define Py_UNICODE_SIZE SIZEOF_SHORT macro
/external/python/cpython2/Include/
Dunicodeobject.h74 #ifndef Py_UNICODE_SIZE
75 #error Must define Py_UNICODE_SIZE
81 #if Py_UNICODE_SIZE >= 4
94 # if defined(MS_WIN32) && Py_UNICODE_SIZE == 2
/external/python/cpython2/PC/os2emx/
Dpyconfig.h63 #define Py_UNICODE_SIZE SIZEOF_SHORT macro
/external/python/cpython2/android_arm/pyconfig/
Dpyconfig.h986 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/android_arm64/pyconfig/
Dpyconfig.h986 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/android_x86_64/pyconfig/
Dpyconfig.h986 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/android_x86/pyconfig/
Dpyconfig.h986 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/linux_x86_64/pyconfig/
Dpyconfig.h994 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/darwin_x86_64/pyconfig/
Dpyconfig.h992 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/PC/
Dpyconfig.h577 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython2/RISCOS/
Dpyconfig.h178 #define Py_UNICODE_SIZE 2 macro
/external/python/cpython3/Include/
Dunicodeobject.h71 #define Py_UNICODE_SIZE SIZEOF_WCHAR_T macro
77 #if Py_UNICODE_SIZE >= 4
389 (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE)
/external/python/cpython2/Objects/
Dunicodeobject.c582 #if (Py_UNICODE_SIZE == 2) && defined(SIZEOF_WCHAR_T) && (SIZEOF_WCHAR_T == 4)
3442 v = _PyUnicode_New((size+Py_UNICODE_SIZE-1)/ Py_UNICODE_SIZE); in _PyUnicode_DecodeUnicodeInternal()
3451 if (end-s < Py_UNICODE_SIZE) { in _PyUnicode_DecodeUnicodeInternal()
3461 endinpos = s - starts + Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
3467 s += Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
/external/python/cpython3/Objects/
Dunicodeobject.c2088 #if Py_UNICODE_SIZE == 2 in PyUnicode_FromWideChar()
6536 if (size / Py_UNICODE_SIZE > PY_SSIZE_T_MAX - 1) { in _PyUnicode_DecodeUnicodeInternal()
6540 writer.min_length = (size + (Py_UNICODE_SIZE - 1)) / Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
6546 if (end - s < Py_UNICODE_SIZE) { in _PyUnicode_DecodeUnicodeInternal()
6564 endinpos = s - starts + Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
6569 s += Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
6571 if (Py_UNICODE_IS_HIGH_SURROGATE(ch) && end - s >= Py_UNICODE_SIZE) in _PyUnicode_DecodeUnicodeInternal()
6579 s += Py_UNICODE_SIZE; in _PyUnicode_DecodeUnicodeInternal()
/external/python/cpython2/
Dpyconfig.h.in1017 #undef Py_UNICODE_SIZE
Dconfigure.ac4183 AH_TEMPLATE(Py_UNICODE_SIZE, template
4187 AC_DEFINE(Py_UNICODE_SIZE,2) definition
4190 AC_DEFINE(Py_UNICODE_SIZE,4) definition