Home
last modified time | relevance | path

Searched refs:PyUnicode_GET_SIZE (Results 1 – 25 of 39) sorted by relevance

12

/external/python/cpython2/Modules/
D_codecsmodule.c221 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 …]
Dunicodedata.c96 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.c317 len1 = PyUnicode_GET_SIZE(os1) + 1; in PyLocale_strcoll()
326 len2 = PyUnicode_GET_SIZE(os2) + 1; in PyLocale_strcoll()
D_json.c211 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.c1591 len != PyUnicode_GET_SIZE(obj)) in test_u_code()
1622 if (PyUnicode_GET_SIZE(wide) != PyUnicode_GET_SIZE(utf8)) { in test_widechar()
D_elementtree.c735 for (i = 0; i < PyUnicode_GET_SIZE(tag); i++) { in checkpath()
2445 if (PyUnicode_GET_SIZE(u) != 256) {
/external/python/cpython2/Objects/
Dunicodeobject.c823 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 …]
Dexceptions.c1381 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()
Dcomplexobject.c991 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()
Dabstract.c776 format_len = PyUnicode_GET_SIZE(format_spec);
1666 PyUnicode_GET_SIZE(o),
1774 PyUnicode_GET_SIZE(o),
Dfloatobject.c194 s_buffer = (char *)PyMem_MALLOC(PyUnicode_GET_SIZE(v)+1); in PyFloat_FromString()
198 PyUnicode_GET_SIZE(v), in PyFloat_FromString()
Dfileobject.c1612 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()
Dintobject.c1101 PyUnicode_GET_SIZE(x), in int_new()
/external/python/cpython2/Modules/_io/
Dtextio.c286 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 …]
Dstringio.c136 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()
Dfileio.c229 if (wcslen(widename) != (size_t)PyUnicode_GET_SIZE(nameobj)) { in fileio_init()
/external/libmojo/third_party/markupsafe/
D_speedups.c60 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/
Dmultibytecodec.c199 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/
Dunicodedefs.h22 #define STRINGLIB_LEN PyUnicode_GET_SIZE
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1189 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()
Dcallproc.c692 int size = PyUnicode_GET_SIZE(obj); in ConvParam()
708 pa->value.p, PyUnicode_GET_SIZE(obj))) in ConvParam()
/external/python/cpython2/Python/
Dgetargs.c1207 STORE_SIZE(PyUnicode_GET_SIZE(arg)); in convertsimple()
1218 if (_ustrlen(*p) != (size_t)PyUnicode_GET_SIZE(arg)) { in convertsimple()
Dbltinmodule.c1536 size = PyUnicode_GET_SIZE(obj); in builtin_ord()
3013 reslen = PyUnicode_GET_SIZE(item); in filterunicode()
/external/python/cpython2/Include/
Dunicodeobject.h432 #define PyUnicode_GET_SIZE(op) \ macro
/external/python/cpython2/Doc/data/
Drefcounts.dat1413 PyUnicode_GET_SIZE:int:::
1414 PyUnicode_GET_SIZE:PyObject*:o:0:

12