/external/python/cpython2/Modules/ |
D | _codecsmodule.c | 221 return codec_tuple(obj, PyUnicode_GET_SIZE(obj)); in unicode_internal_decode() 650 PyUnicode_GET_SIZE(obj)); in unicode_internal_encode() 675 PyUnicode_GET_SIZE(str), in utf_7_encode() 679 PyUnicode_GET_SIZE(str)); in utf_7_encode() 699 PyUnicode_GET_SIZE(str), in utf_8_encode() 701 PyUnicode_GET_SIZE(str)); in utf_8_encode() 729 PyUnicode_GET_SIZE(str), in utf_16_encode() 732 PyUnicode_GET_SIZE(str)); in utf_16_encode() 752 PyUnicode_GET_SIZE(str), in utf_16_le_encode() 755 PyUnicode_GET_SIZE(str)); in utf_16_le_encode() [all …]
|
D | unicodedata.c | 96 if (PyUnicode_GET_SIZE(obj) == 1) in getuchar() 99 else if ((PyUnicode_GET_SIZE(obj) == 2) && in getuchar() 508 isize = PyUnicode_GET_SIZE(input); in nfd_nfkd() 582 PyUnicode_Resize(&result, PyUnicode_GET_SIZE(result) - space); in nfd_nfkd() 587 end = i + PyUnicode_GET_SIZE(result); in nfd_nfkd() 648 end = i + PyUnicode_GET_SIZE(result); in nfc_nfkc() 758 end = i + PyUnicode_GET_SIZE(input); in is_normalized()
|
D | _localemodule.c | 317 len1 = PyUnicode_GET_SIZE(os1) + 1; in PyLocale_strcoll() 326 len2 = PyUnicode_GET_SIZE(os2) + 1; in PyLocale_strcoll()
|
D | _json.c | 207 input_chars = PyUnicode_GET_SIZE(pystr); in ascii_escape_unicode() 618 Py_ssize_t len = PyUnicode_GET_SIZE(pystr); in scanstring_unicode() 1018 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _parse_object_unicode() 1212 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _parse_array_unicode() 1409 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _match_number_unicode() 1594 Py_ssize_t length = PyUnicode_GET_SIZE(pystr); in scan_once_unicode()
|
D | _testcapimodule.c | 1686 len != PyUnicode_GET_SIZE(obj)) in test_u_code() 1717 if (PyUnicode_GET_SIZE(wide) != PyUnicode_GET_SIZE(utf8)) { in test_widechar()
|
/external/python/cffi/c/ |
D | wchar_helper.h | 128 if (PyUnicode_GET_SIZE(unicode) != 1) { in _my_PyUnicode_AsSingleChar16() 130 PyUnicode_GET_SIZE(unicode)); in _my_PyUnicode_AsSingleChar16() 149 if (PyUnicode_GET_SIZE(unicode) == 1) { in _my_PyUnicode_AsSingleChar32() 154 if (PyUnicode_GET_SIZE(unicode) == 2 && IS_SURROGATE(u)) { in _my_PyUnicode_AsSingleChar32() 160 PyUnicode_GET_SIZE(unicode)); in _my_PyUnicode_AsSingleChar32() 166 Py_ssize_t length = PyUnicode_GET_SIZE(unicode); in _my_PyUnicode_SizeAsChar16() 183 Py_ssize_t length = PyUnicode_GET_SIZE(unicode); in _my_PyUnicode_SizeAsChar32() 202 Py_ssize_t len = PyUnicode_GET_SIZE(unicode); in _my_PyUnicode_AsChar16()
|
/external/python/cpython2/Objects/ |
D | unicodeobject.c | 823 n += PyUnicode_GET_SIZE(str); in PyUnicode_FromFormatV() 832 n += PyUnicode_GET_SIZE(obj); in PyUnicode_FromFormatV() 842 n += PyUnicode_GET_SIZE(obj); in PyUnicode_FromFormatV() 868 n += PyUnicode_GET_SIZE(repr); in PyUnicode_FromFormatV() 985 PyUnicode_GET_SIZE(*callresult)); in PyUnicode_FromFormatV() 986 s += PyUnicode_GET_SIZE(*callresult); in PyUnicode_FromFormatV() 996 Py_ssize_t size = PyUnicode_GET_SIZE(obj); in PyUnicode_FromFormatV() 1006 Py_ssize_t size = PyUnicode_GET_SIZE(obj); in PyUnicode_FromFormatV() 1099 if (size > PyUnicode_GET_SIZE(unicode)) in PyUnicode_AsWideChar() 1100 size = PyUnicode_GET_SIZE(unicode) + 1; in PyUnicode_AsWideChar() [all …]
|
D | exceptions.c | 1377 size = PyUnicode_GET_SIZE(obj); in PyUnicodeEncodeError_GetStart() 1446 size = PyUnicode_GET_SIZE(obj); in PyUnicodeEncodeError_GetEnd() 1647 if (uself->start < PyUnicode_GET_SIZE(uself->object) && uself->end == uself->start+1) { in UnicodeEncodeError_str() 1735 if (uself->start < PyUnicode_GET_SIZE(uself->object) && uself->end == uself->start+1) { in UnicodeDecodeError_str() 1832 if (uself->start < PyUnicode_GET_SIZE(uself->object) && uself->end == uself->start+1) { in UnicodeTranslateError_str()
|
D | complexobject.c | 991 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in complex_subtype_from_string() 995 PyUnicode_GET_SIZE(v), in complex_subtype_from_string()
|
D | abstract.c | 776 format_len = PyUnicode_GET_SIZE(format_spec); 1663 PyUnicode_GET_SIZE(o), 1771 PyUnicode_GET_SIZE(o),
|
D | floatobject.c | 193 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString() 197 PyUnicode_GET_SIZE(v), in PyFloat_FromString()
|
/external/python/cpython2/Modules/_io/ |
D | textio.c | 286 output_len = PyUnicode_GET_SIZE(output); in _PyIncrementalNewlineDecoder_decode() 335 len = PyUnicode_GET_SIZE(output); in _PyIncrementalNewlineDecoder_decode() 720 PyUnicode_GET_SIZE(text), in ascii_encode() 728 PyUnicode_GET_SIZE(text), in utf16be_encode() 736 PyUnicode_GET_SIZE(text), in utf16le_encode() 752 PyUnicode_GET_SIZE(text), in utf16_encode() 760 PyUnicode_GET_SIZE(text), in utf32be_encode() 768 PyUnicode_GET_SIZE(text), in utf32le_encode() 784 PyUnicode_GET_SIZE(text), in utf32_encode() 792 PyUnicode_GET_SIZE(text), in utf8_encode() [all …]
|
D | stringio.c | 136 len = PyUnicode_GET_SIZE(decoded); in write_str() 340 if (PyUnicode_GET_SIZE(line) == 0) { in stringio_iternext() 472 size = PyUnicode_GET_SIZE(obj); in stringio_write() 746 Py_ssize_t bufsize = PyUnicode_GET_SIZE(PyTuple_GET_ITEM(state, 0)); in stringio_setstate()
|
D | fileio.c | 255 if (wcslen(widename) != (size_t)PyUnicode_GET_SIZE(nameobj)) { in fileio_init()
|
/external/libchrome/third_party/markupsafe/ |
D | _speedups.c | 60 const Py_UNICODE *inp_end = PyUnicode_AS_UNICODE(in) + PyUnicode_GET_SIZE(in); in escape_unicode() 80 out = (PyUnicodeObject*)PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(in) + delta); in escape_unicode() 111 Py_UNICODE_COPY(outp, inp, PyUnicode_GET_SIZE(in) - (inp - PyUnicode_AS_UNICODE(in))); in escape_unicode()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.c | 199 orgsize = PyUnicode_GET_SIZE(buf->outobj); in expand_decodebuffer() 206 + PyUnicode_GET_SIZE(buf->outobj); in expand_decodebuffer() 324 PyUnicode_GET_SIZE(tobj), ERROR_STRICT, in multibytecodec_encerror() 439 retunisize = PyUnicode_GET_SIZE(retuni); in multibytecodec_decerror() 571 datalen = PyUnicode_GET_SIZE(arg); in MultibyteCodec_Encode() 634 buf.outbuf_end = buf.outbuf + PyUnicode_GET_SIZE(buf.outobj); in MultibyteCodec_Decode() 658 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in MultibyteCodec_Decode() 754 datalen = PyUnicode_GET_SIZE(unistr); in encoder_encode_stateful() 847 PyUnicode_GET_SIZE(buf->outobj); in decoder_prepare_buffer() 1084 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in mbidecoder_decode() [all …]
|
/external/python/cpython3/Objects/stringlib/ |
D | unicodedefs.h | 21 #define STRINGLIB_LEN PyUnicode_GET_SIZE
|
/external/python/cpython2/Objects/stringlib/ |
D | unicodedefs.h | 22 #define STRINGLIB_LEN PyUnicode_GET_SIZE
|
/external/python/cpython2/Modules/_ctypes/ |
D | cfield.c | 1197 len = PyUnicode_GET_SIZE(value); in u_set() 1271 size = PyUnicode_GET_SIZE(value); in U_set() 1442 int size = PyUnicode_GET_SIZE(value); in Z_set() 1459 buffer, PyUnicode_GET_SIZE(value))) { in Z_set() 1518 Py_ssize_t size = PyUnicode_GET_SIZE(value); in BSTR_set()
|
D | callproc.c | 692 int size = PyUnicode_GET_SIZE(obj); in ConvParam() 708 pa->value.p, PyUnicode_GET_SIZE(obj))) in ConvParam()
|
/external/python/cpython3/Include/cpython/ |
D | unicodeobject.h | 258 #define PyUnicode_GET_SIZE(op) \ macro 268 (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE)
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/ |
D | rjsmin.c | 440 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rjsmin_jsmin()
|
/external/python/cpython2/Python/ |
D | getargs.c | 1207 STORE_SIZE(PyUnicode_GET_SIZE(arg)); in convertsimple() 1218 if (_ustrlen(*p) != (size_t)PyUnicode_GET_SIZE(arg)) { in convertsimple()
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 432 #define PyUnicode_GET_SIZE(op) \ macro
|
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/ |
D | rcssmin.c | 1085 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rcssmin_cssmin()
|