Home
last modified time | relevance | path

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

12

/external/libmojo/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.c365 f->f_fp = _wfopen(PyUnicode_AS_UNICODE(f->f_name), in open_the_file()
366 PyUnicode_AS_UNICODE(wmode)); in open_the_file()
1611 Py_UNICODE *s = PyUnicode_AS_UNICODE(result); in PyFile_GetLine()
2398 wcslen(PyUnicode_AS_UNICODE(po)) == (size_t)PyUnicode_GET_SIZE(po)) { in file_init()
Dexceptions.c1652 int badchar = (int)PyUnicode_AS_UNICODE(uself->object)[uself->start]; in UnicodeEncodeError_str()
1839 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()
Dabstract.c1665 return PyInt_FromUnicode(PyUnicode_AS_UNICODE(o),
1773 return PyLong_FromUnicode(PyUnicode_AS_UNICODE(o),
Dintobject.c1100 return PyInt_FromUnicode(PyUnicode_AS_UNICODE(x), in int_new()
/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()
733 PyUnicode_Resize(&result, o - PyUnicode_AS_UNICODE(result)); in nfc_nfkc()
753 i = PyUnicode_AS_UNICODE(input); in is_normalized()
D_json.c212 input_unicode = PyUnicode_AS_UNICODE(pystr); in ascii_escape_unicode()
625 const Py_UNICODE *buf = PyUnicode_AS_UNICODE(pystr); in scanstring_unicode()
1020 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _parse_object_unicode()
1214 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _parse_array_unicode()
1411 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in _match_number_unicode()
1596 Py_UNICODE *str = PyUnicode_AS_UNICODE(pystr); in scan_once_unicode()
D_testcapimodule.c1584 if (value != PyUnicode_AS_UNICODE(obj)) in test_u_code()
1590 if (value != PyUnicode_AS_UNICODE(obj) || in test_u_code()
D_elementtree.c734 Py_UNICODE *p = PyUnicode_AS_UNICODE(tag); in checkpath()
2452 p = PyUnicode_AS_UNICODE(u);
D_tkinter.c1163 Py_UNICODE *inbuf = PyUnicode_AS_UNICODE(value); in AsObj()
1393 output = PyUnicode_AS_UNICODE(result); in FromObj()
/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()
717 return PyUnicode_EncodeASCII(PyUnicode_AS_UNICODE(text), in ascii_encode()
725 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.c228 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()
322 const Py_UNICODE *uraw = PyUnicode_AS_UNICODE(tobj); in multibytecodec_encerror()
572 data = PyUnicode_AS_UNICODE(arg); in MultibyteCodec_Encode()
635 buf.outbuf = PyUnicode_AS_UNICODE(buf.outobj); in MultibyteCodec_Decode()
658 PyUnicode_AS_UNICODE(buf.outobj)); in MultibyteCodec_Decode()
771 PyUnicode_AS_UNICODE(unistr), in encoder_encode_stateful()
778 inbuf = (Py_UNICODE *)PyUnicode_AS_UNICODE(unistr); in encoder_encode_stateful()
847 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.c1538 ord = (long)*PyUnicode_AS_UNICODE(obj); in builtin_ord()
3015 PyUnicode_AS_UNICODE(result)[j++] = in filterunicode()
3016 PyUnicode_AS_UNICODE(item)[0]; in filterunicode()
3050 memcpy(PyUnicode_AS_UNICODE(result) + j, in filterunicode()
3051 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/cpython2/Objects/stringlib/
Dunicodedefs.h21 #define STRINGLIB_STR PyUnicode_AS_UNICODE
/external/python/cpython2/Modules/_ctypes/
Dcfield.c1197 *(wchar_t *)ptr = PyUnicode_AS_UNICODE(value)[0]; in u_set()
1229 p = PyUnicode_AS_UNICODE(result); in U_get()
1425 *(wchar_t **)ptr = PyUnicode_AS_UNICODE(value); in Z_set()
1516 bstr = SysAllocStringLen(PyUnicode_AS_UNICODE(value), in BSTR_set()
Dcallproc.c687 pa->value.p = PyUnicode_AS_UNICODE(obj); in ConvParam()
/external/python/cpython2/Include/
Dunicodeobject.h436 #define PyUnicode_AS_UNICODE(op) \ macro
/external/python/cpython2/Doc/data/
Drefcounts.dat1419 PyUnicode_AS_UNICODE:Py_UNICODE*:::
1420 PyUnicode_AS_UNICODE:PyObject*:o:0:

12