Home
last modified time | relevance | path

Searched refs:PyUnicode_GET_SIZE (Results 1 – 25 of 49) 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()
758 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.c207 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.c1686 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/
Dwchar_helper.h128 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/
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.c1377 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()
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);
1663 PyUnicode_GET_SIZE(o),
1771 PyUnicode_GET_SIZE(o),
Dfloatobject.c193 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/
Dtextio.c286 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 …]
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.c255 if (wcslen(widename) != (size_t)PyUnicode_GET_SIZE(nameobj)) { in fileio_init()
/external/libchrome/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()
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/
Dunicodedefs.h21 #define STRINGLIB_LEN PyUnicode_GET_SIZE
/external/python/cpython2/Objects/stringlib/
Dunicodedefs.h22 #define STRINGLIB_LEN PyUnicode_GET_SIZE
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1197 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()
Dcallproc.c692 int size = PyUnicode_GET_SIZE(obj); in ConvParam()
708 pa->value.p, PyUnicode_GET_SIZE(obj))) in ConvParam()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h258 #define PyUnicode_GET_SIZE(op) \ macro
268 (PyUnicode_GET_SIZE(op) * Py_UNICODE_SIZE)
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/
Drjsmin.c440 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rjsmin_jsmin()
/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()
/external/python/cpython2/Include/
Dunicodeobject.h432 #define PyUnicode_GET_SIZE(op) \ macro
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.c1085 #define PyString_GET_SIZE PyUnicode_GET_SIZE in rcssmin_cssmin()

12