Home
last modified time | relevance | path

Searched refs:PyUnicode_AS_UNICODE (Results 1 – 25 of 44) sorted by relevance

12

/external/libchrome/third_party/markupsafe/
D_speedups.c15 #define UNICHR(x) (PyUnicode_AS_UNICODE((PyUnicodeObject*)PyUnicode_DecodeASCII(x, strlen(x), NULL)…
59 Py_UNICODE *inp = PyUnicode_AS_UNICODE(in); in escape_unicode()
60 const Py_UNICODE *inp_end = PyUnicode_AS_UNICODE(in) + PyUnicode_GET_SIZE(in); in escape_unicode()
84 outp = PyUnicode_AS_UNICODE(out); in escape_unicode()
85 inp = PyUnicode_AS_UNICODE(in); in escape_unicode()
111 Py_UNICODE_COPY(outp, inp, PyUnicode_GET_SIZE(in) - (inp - PyUnicode_AS_UNICODE(in))); in escape_unicode()
/external/python/cpython2/Objects/
Dunicodeobject.c619 u = PyUnicode_AS_UNICODE(unicode); in PyUnicode_FromWideChar()
657 u = PyUnicode_AS_UNICODE(unicode); in PyUnicode_FromWideChar()
915 s = PyUnicode_AS_UNICODE(string); in PyUnicode_FromFormatV()
984 Py_UNICODE_COPY(s, PyUnicode_AS_UNICODE(*callresult), in PyUnicode_FromFormatV()
997 Py_UNICODE_COPY(s, PyUnicode_AS_UNICODE(obj), size); in PyUnicode_FromFormatV()
1007 Py_UNICODE_COPY(s, PyUnicode_AS_UNICODE(obj), size); in PyUnicode_FromFormatV()
1055 PyUnicode_Resize(&string, s - PyUnicode_AS_UNICODE(string)); in PyUnicode_FromFormatV()
1108 u = PyUnicode_AS_UNICODE(unicode); in PyUnicode_AsWideChar()
1157 return PyUnicode_FromUnicode(PyUnicode_AS_UNICODE(obj), in PyUnicode_FromObject()
1409 return PyUnicode_AS_UNICODE(unicode); in PyUnicode_AsUnicode()
[all …]
Dfileobject.c370 f->f_fp = _wfopen(PyUnicode_AS_UNICODE(f->f_name), in open_the_file()
371 PyUnicode_AS_UNICODE(wmode)); in open_the_file()
1632 Py_UNICODE *s = PyUnicode_AS_UNICODE(result); in PyFile_GetLine()
2443 wcslen(PyUnicode_AS_UNICODE(po)) == (size_t)PyUnicode_GET_SIZE(po)) { in file_init()
Dexceptions.c1648 int badchar = (int)PyUnicode_AS_UNICODE(uself->object)[uself->start]; in UnicodeEncodeError_str()
1833 int badchar = (int)PyUnicode_AS_UNICODE(uself->object)[uself->start]; in UnicodeTranslateError_str()
Dcomplexobject.c994 if (PyUnicode_EncodeDecimal(PyUnicode_AS_UNICODE(v), in complex_subtype_from_string()
/external/python/cpython2/Modules/
D_codecsmodule.c674 v = codec_tuple(PyUnicode_EncodeUTF7(PyUnicode_AS_UNICODE(str), in utf_7_encode()
698 v = codec_tuple(PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(str), in utf_8_encode()
728 v = codec_tuple(PyUnicode_EncodeUTF16(PyUnicode_AS_UNICODE(str), in utf_16_encode()
751 v = codec_tuple(PyUnicode_EncodeUTF16(PyUnicode_AS_UNICODE(str), in utf_16_le_encode()
774 v = codec_tuple(PyUnicode_EncodeUTF16(PyUnicode_AS_UNICODE(str), in utf_16_be_encode()
805 v = codec_tuple(PyUnicode_EncodeUTF32(PyUnicode_AS_UNICODE(str), in utf_32_encode()
828 v = codec_tuple(PyUnicode_EncodeUTF32(PyUnicode_AS_UNICODE(str), in utf_32_le_encode()
851 v = codec_tuple(PyUnicode_EncodeUTF32(PyUnicode_AS_UNICODE(str), in utf_32_be_encode()
874 v = codec_tuple(PyUnicode_EncodeUnicodeEscape(PyUnicode_AS_UNICODE(str), in unicode_escape_encode()
896 PyUnicode_AS_UNICODE(str), in raw_unicode_escape_encode()
[all …]
Dunicodedata.c94 Py_UNICODE *v = PyUnicode_AS_UNICODE(obj); in getuchar()
521 i = PyUnicode_AS_UNICODE(input); in nfd_nfkd()
523 o = PyUnicode_AS_UNICODE(result); in nfd_nfkd()
536 o = PyUnicode_AS_UNICODE(result) + newsize - space; in nfd_nfkd()
585 i = PyUnicode_AS_UNICODE(result); in nfd_nfkd()
601 if (o < PyUnicode_AS_UNICODE(result)) in nfd_nfkd()
647 i = PyUnicode_AS_UNICODE(result); in nfc_nfkc()
649 o = PyUnicode_AS_UNICODE(result); in nfc_nfkc()
737 PyUnicode_Resize(&result, o - PyUnicode_AS_UNICODE(result)); in nfc_nfkc()
757 i = PyUnicode_AS_UNICODE(input); in is_normalized()
D_json.c208 input_unicode = PyUnicode_AS_UNICODE(pystr); in ascii_escape_unicode()
621 const Py_UNICODE *buf = PyUnicode_AS_UNICODE(pystr); in scanstring_unicode()
1017 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _parse_object_unicode()
1211 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _parse_array_unicode()
1408 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _match_number_unicode()
1593 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in scan_once_unicode()
D_testcapimodule.c1678 if (value != PyUnicode_AS_UNICODE(obj)) in test_u_code()
1685 if (value != PyUnicode_AS_UNICODE(obj) || in test_u_code()
/external/python/cpython2/Modules/_io/
Dtextio.c292 out = PyUnicode_AS_UNICODE(modified); in _PyIncrementalNewlineDecoder_decode()
294 memcpy(out + 1, PyUnicode_AS_UNICODE(output), in _PyIncrementalNewlineDecoder_decode()
307 && PyUnicode_AS_UNICODE(output)[output_len - 1] == '\r') { in _PyIncrementalNewlineDecoder_decode()
315 PyUnicode_AS_UNICODE(output), in _PyIncrementalNewlineDecoder_decode()
334 in_str = PyUnicode_AS_UNICODE(output); in _PyIncrementalNewlineDecoder_decode()
417 memcpy(PyUnicode_AS_UNICODE(translated), in _PyIncrementalNewlineDecoder_decode()
418 PyUnicode_AS_UNICODE(output), in _PyIncrementalNewlineDecoder_decode()
424 out_str = PyUnicode_AS_UNICODE(translated); in _PyIncrementalNewlineDecoder_decode()
719 return PyUnicode_EncodeASCII(PyUnicode_AS_UNICODE(text), in ascii_encode()
727 return PyUnicode_EncodeUTF16(PyUnicode_AS_UNICODE(text), in utf16be_encode()
[all …]
Dstringio.c135 str = PyUnicode_AS_UNICODE(decoded); in write_str()
745 Py_UNICODE *buf = PyUnicode_AS_UNICODE(PyTuple_GET_ITEM(state, 0)); in stringio_setstate()
Dfileio.c254 widename = PyUnicode_AS_UNICODE(nameobj); in fileio_init()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c198 orgpos = (Py_ssize_t)(buf->outbuf - PyUnicode_AS_UNICODE(buf->outobj)); in expand_decodebuffer()
204 buf->outbuf = PyUnicode_AS_UNICODE(buf->outobj) + orgpos; in expand_decodebuffer()
205 buf->outbuf_end = PyUnicode_AS_UNICODE(buf->outobj) in expand_decodebuffer()
321 const Py_UNICODE *uraw = PyUnicode_AS_UNICODE(tobj); in multibytecodec_encerror()
570 data = PyUnicode_AS_UNICODE(arg); in MultibyteCodec_Encode()
633 buf.outbuf = PyUnicode_AS_UNICODE(buf.outobj); in MultibyteCodec_Decode()
656 PyUnicode_AS_UNICODE(buf.outobj)); in MultibyteCodec_Decode()
769 PyUnicode_AS_UNICODE(unistr), in encoder_encode_stateful()
776 inbuf = (Py_UNICODE *)PyUnicode_AS_UNICODE(unistr); in encoder_encode_stateful()
845 buf->outbuf = PyUnicode_AS_UNICODE(buf->outobj); in decoder_prepare_buffer()
[all …]
/external/python/cpython2/Python/
Dcodecs.c669 for (p = PyUnicode_AS_UNICODE(res), i = start; in PyCodec_ReplaceErrors()
692 for (p = PyUnicode_AS_UNICODE(res), i = start; in PyCodec_ReplaceErrors()
724 startp = PyUnicode_AS_UNICODE(object); in PyCodec_XMLCharRefReplaceErrors()
765 for (p = startp+start, outp = PyUnicode_AS_UNICODE(res); p < e;) { in PyCodec_XMLCharRefReplaceErrors()
850 startp = PyUnicode_AS_UNICODE(object); in PyCodec_BackslashReplaceErrors()
868 for (p = startp+start, outp = PyUnicode_AS_UNICODE(res); in PyCodec_BackslashReplaceErrors()
Dbltinmodule.c1539 ord = (long)*PyUnicode_AS_UNICODE(obj); in builtin_ord()
3026 PyUnicode_AS_UNICODE(result)[j++] = in filterunicode()
3027 PyUnicode_AS_UNICODE(item)[0]; in filterunicode()
3061 memcpy(PyUnicode_AS_UNICODE(result) + j, in filterunicode()
3062 PyUnicode_AS_UNICODE(item), in filterunicode()
Dgetargs.c1206 *p = PyUnicode_AS_UNICODE(arg); in convertsimple()
1217 *p = PyUnicode_AS_UNICODE(arg); in convertsimple()
/external/python/cpython3/Objects/stringlib/
Dunicodedefs.h21 #define STRINGLIB_STR PyUnicode_AS_UNICODE
/external/python/cpython2/Objects/stringlib/
Dunicodedefs.h21 #define STRINGLIB_STR PyUnicode_AS_UNICODE
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1205 *(wchar_t *)ptr = PyUnicode_AS_UNICODE(value)[0]; in u_set()
1237 p = PyUnicode_AS_UNICODE(result); in U_get()
1433 *(wchar_t **)ptr = PyUnicode_AS_UNICODE(value); in Z_set()
1524 bstr = SysAllocStringLen(PyUnicode_AS_UNICODE(value), in BSTR_set()
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/
Drjsmin.c441 #define PyString_AS_STRING PyUnicode_AS_UNICODE in rjsmin_jsmin()
/external/python/cpython3/Modules/
D_testcapimodule.c1665 if (value != PyUnicode_AS_UNICODE(obj)) in test_u_code()
1672 if (value != PyUnicode_AS_UNICODE(obj) || in test_u_code()
1700 value2 = PyUnicode_AS_UNICODE(obj); in test_Z_code()
1706 if (value1 != PyUnicode_AS_UNICODE(obj)) in test_Z_code()
1714 value2 = PyUnicode_AS_UNICODE(obj); in test_Z_code()
1724 if (value1 != PyUnicode_AS_UNICODE(obj) || in test_Z_code()
1798 PyUnicode_AS_UNICODE(wide)[0] = invalid[0]; in test_widechar()
2004 memcpy(PyUnicode_AS_UNICODE(u), data, len * sizeof(Py_UNICODE)); in unicode_legacy_string()
/external/python/cpython3/Include/
Dunicodeobject.h397 #define PyUnicode_AS_UNICODE(op) \ macro
404 ((const char *)(PyUnicode_AS_UNICODE(op)))
/external/python/cpython2/Include/
Dunicodeobject.h436 #define PyUnicode_AS_UNICODE(op) \ macro
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/
Drcssmin.c1086 #define PyString_AS_STRING PyUnicode_AS_UNICODE in rcssmin_cssmin()
/external/python/cpython2/Doc/data/
Drefcounts.dat1419 PyUnicode_AS_UNICODE:Py_UNICODE*:::
1420 PyUnicode_AS_UNICODE:PyObject*:o:0:

12