/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() 754 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 | 211 input_chars = PyUnicode_GET_SIZE(pystr); in ascii_escape_unicode() 622 Py_ssize_t len = PyUnicode_GET_SIZE(pystr); in scanstring_unicode() 1021 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _parse_object_unicode() 1215 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _parse_array_unicode() 1412 Py_ssize_t end_idx = PyUnicode_GET_SIZE(pystr) - 1; in _match_number_unicode() 1597 Py_ssize_t length = PyUnicode_GET_SIZE(pystr); in scan_once_unicode()
|
D | _testcapimodule.c | 1591 len != PyUnicode_GET_SIZE(obj)) in test_u_code() 1622 if (PyUnicode_GET_SIZE(wide) != PyUnicode_GET_SIZE(utf8)) { in test_widechar()
|
D | _elementtree.c | 735 for (i = 0; i < PyUnicode_GET_SIZE(tag); i++) { in checkpath() 2445 if (PyUnicode_GET_SIZE(u) != 256) {
|
/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 | 1381 size = PyUnicode_GET_SIZE(obj); in PyUnicodeEncodeError_GetStart() 1450 size = PyUnicode_GET_SIZE(obj); in PyUnicodeEncodeError_GetEnd() 1651 if (uself->start < PyUnicode_GET_SIZE(uself->object) && uself->end == uself->start+1) { in UnicodeEncodeError_str() 1740 if (uself->start < PyUnicode_GET_SIZE(uself->object) && uself->end == uself->start+1) { in UnicodeDecodeError_str() 1838 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); 1666 PyUnicode_GET_SIZE(o), 1774 PyUnicode_GET_SIZE(o),
|
D | floatobject.c | 194 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString() 198 PyUnicode_GET_SIZE(v), in PyFloat_FromString()
|
D | fileobject.c | 1612 Py_ssize_t len = PyUnicode_GET_SIZE(result); in PyFile_GetLine() 2398 wcslen(PyUnicode_AS_UNICODE(po)) == (size_t)PyUnicode_GET_SIZE(po)) { in file_init()
|
D | intobject.c | 1101 PyUnicode_GET_SIZE(x), in int_new()
|
/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() 718 PyUnicode_GET_SIZE(text), in ascii_encode() 726 PyUnicode_GET_SIZE(text), in utf16be_encode() 734 PyUnicode_GET_SIZE(text), in utf16le_encode() 750 PyUnicode_GET_SIZE(text), in utf16_encode() 758 PyUnicode_GET_SIZE(text), in utf32be_encode() 766 PyUnicode_GET_SIZE(text), in utf32le_encode() 782 PyUnicode_GET_SIZE(text), in utf32_encode() 790 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 | 229 if (wcslen(widename) != (size_t)PyUnicode_GET_SIZE(nameobj)) { in fileio_init()
|
/external/libmojo/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() 325 PyUnicode_GET_SIZE(tobj), ERROR_STRICT, in multibytecodec_encerror() 441 retunisize = PyUnicode_GET_SIZE(retuni); in multibytecodec_decerror() 573 datalen = PyUnicode_GET_SIZE(arg); in MultibyteCodec_Encode() 636 buf.outbuf_end = buf.outbuf + PyUnicode_GET_SIZE(buf.outobj); in MultibyteCodec_Decode() 660 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in MultibyteCodec_Decode() 756 datalen = PyUnicode_GET_SIZE(unistr); in encoder_encode_stateful() 849 PyUnicode_GET_SIZE(buf->outobj); in decoder_prepare_buffer() 1086 if (finalsize != PyUnicode_GET_SIZE(buf.outobj)) in mbidecoder_decode() [all …]
|
/external/python/cpython2/Objects/stringlib/ |
D | unicodedefs.h | 22 #define STRINGLIB_LEN PyUnicode_GET_SIZE
|
/external/python/cpython2/Modules/_ctypes/ |
D | cfield.c | 1189 len = PyUnicode_GET_SIZE(value); in u_set() 1263 size = PyUnicode_GET_SIZE(value); in U_set() 1434 int size = PyUnicode_GET_SIZE(value); in Z_set() 1451 buffer, PyUnicode_GET_SIZE(value))) { in Z_set() 1510 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/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()
|
D | bltinmodule.c | 1536 size = PyUnicode_GET_SIZE(obj); in builtin_ord() 3013 reslen = PyUnicode_GET_SIZE(item); in filterunicode()
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 432 #define PyUnicode_GET_SIZE(op) \ macro
|
/external/python/cpython2/Doc/data/ |
D | refcounts.dat | 1413 PyUnicode_GET_SIZE:int::: 1414 PyUnicode_GET_SIZE:PyObject*:o:0:
|