Lines Matching refs:PyUnicode_AS_UNICODE
619 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()
1517 repptr = PyUnicode_AS_UNICODE(repunicode); in unicode_decode_call_errorhandler()
1531 *outptr = PyUnicode_AS_UNICODE(*output) + *outpos; in unicode_decode_call_errorhandler()
1777 outpos = p-PyUnicode_AS_UNICODE(unicode); in PyUnicode_DecodeUTF7Stateful()
1795 outpos = p-PyUnicode_AS_UNICODE(unicode); in PyUnicode_DecodeUTF7Stateful()
1817 if (_PyUnicode_Resize(&unicode, p - PyUnicode_AS_UNICODE(unicode)) < 0) in PyUnicode_DecodeUTF7Stateful()
2119 outpos = p-PyUnicode_AS_UNICODE(unicode); in PyUnicode_DecodeUTF8Stateful()
2252 return PyUnicode_EncodeUTF8(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsUTF8String()
2403 outpos = p-PyUnicode_AS_UNICODE(unicode); in PyUnicode_DecodeUTF32Stateful()
2524 return PyUnicode_EncodeUTF32(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsUTF32String()
2680 outpos = p-PyUnicode_AS_UNICODE(unicode); in PyUnicode_DecodeUTF16Stateful()
2795 return PyUnicode_EncodeUTF16(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsUTF16String()
2832 p = PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeUnicodeEscape()
2985 outpos = p-PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeUnicodeEscape()
2994 if (_PyUnicode_Resize(&v, p - PyUnicode_AS_UNICODE(v)) < 0) in PyUnicode_DecodeUnicodeEscape()
3200 return PyUnicode_EncodeUnicodeEscape(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsUnicodeEscapeString()
3230 p = PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeRawUnicodeEscape()
3263 outpos = p-PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeRawUnicodeEscape()
3299 outpos = p-PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeRawUnicodeEscape()
3310 if (_PyUnicode_Resize(&v, p - PyUnicode_AS_UNICODE(v)) < 0) in PyUnicode_DecodeRawUnicodeEscape()
3416 return PyUnicode_EncodeRawUnicodeEscape(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsRawUnicodeEscapeString()
3447 p = PyUnicode_AS_UNICODE(v); in _PyUnicode_DecodeUnicodeInternal()
3472 outpos = p - PyUnicode_AS_UNICODE(v); in _PyUnicode_DecodeUnicodeInternal()
3482 if (_PyUnicode_Resize(&v, p - PyUnicode_AS_UNICODE(v)) < 0) in _PyUnicode_DecodeUnicodeInternal()
3515 p = PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeLatin1()
3768 for (uni2 = PyUnicode_AS_UNICODE(repunicode); repsize-->0; ++uni2, ++str) { in unicode_encode_ucs1()
3816 return PyUnicode_EncodeLatin1(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsLatin1String()
3848 p = PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeASCII()
3859 outpos = p - (Py_UNICODE *)PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeASCII()
3868 if (p - PyUnicode_AS_UNICODE(v) < PyString_GET_SIZE(v)) in PyUnicode_DecodeASCII()
3869 if (_PyUnicode_Resize(&v, p - PyUnicode_AS_UNICODE(v)) < 0) in PyUnicode_DecodeASCII()
3895 return PyUnicode_EncodeASCII(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsASCIIString()
3967 p = PyUnicode_AS_UNICODE(*v) + n; in decode_mbcs()
4106 return PyUnicode_EncodeMBCS(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsMBCSString()
4144 p = PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeCharmap()
4147 mapstring = PyUnicode_AS_UNICODE(mapping); in PyUnicode_DecodeCharmap()
4158 outpos = p-PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeCharmap()
4213 Py_ssize_t oldpos = p - PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeCharmap()
4222 p = PyUnicode_AS_UNICODE(v) + oldpos; in PyUnicode_DecodeCharmap()
4238 Py_UNICODE value = *PyUnicode_AS_UNICODE(x); in PyUnicode_DecodeCharmap()
4247 Py_ssize_t oldpos = p - PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeCharmap()
4257 p = PyUnicode_AS_UNICODE(v) + oldpos; in PyUnicode_DecodeCharmap()
4260 PyUnicode_AS_UNICODE(x), in PyUnicode_DecodeCharmap()
4280 outpos = p-PyUnicode_AS_UNICODE(v); in PyUnicode_DecodeCharmap()
4292 if (p - PyUnicode_AS_UNICODE(v) < PyUnicode_GET_SIZE(v)) in PyUnicode_DecodeCharmap()
4293 if (_PyUnicode_Resize(&v, p - PyUnicode_AS_UNICODE(v)) < 0) in PyUnicode_DecodeCharmap()
4396 decode = PyUnicode_AS_UNICODE(string); in PyUnicode_BuildEncodingMap()
4753 for (uni2 = PyUnicode_AS_UNICODE(repunicode); repsize-->0; ++uni2) { in charmap_encoding_error()
4841 return PyUnicode_EncodeCharmap(PyUnicode_AS_UNICODE(unicode), in PyUnicode_AsCharmapString()
4998 Py_ssize_t outpos = *outp-PyUnicode_AS_UNICODE(*outobj); in charmaptranslate_makespace()
5004 *outp = PyUnicode_AS_UNICODE(*outobj) + outpos; in charmaptranslate_makespace()
5035 *(*outp)++ = *PyUnicode_AS_UNICODE(*res); in charmaptranslate_output()
5039 Py_ssize_t requiredsize = (*outp-PyUnicode_AS_UNICODE(*outobj)) + in charmaptranslate_output()
5044 memcpy(*outp, PyUnicode_AS_UNICODE(*res), sizeof(Py_UNICODE)*repsize); in charmaptranslate_output()
5087 str = PyUnicode_AS_UNICODE(res); in PyUnicode_TranslateCharmap()
5152 … (str-PyUnicode_AS_UNICODE(res))+strlen(buffer)+(endp-collend))) in PyUnicode_TranslateCharmap()
5168 … (str-PyUnicode_AS_UNICODE(res))+repsize+(endp-collend))) { in PyUnicode_TranslateCharmap()
5172 for (uni2 = PyUnicode_AS_UNICODE(repunicode); repsize-->0; ++uni2) in PyUnicode_TranslateCharmap()
5180 respos = str-PyUnicode_AS_UNICODE(res); in PyUnicode_TranslateCharmap()
5205 result = PyUnicode_TranslateCharmap(PyUnicode_AS_UNICODE(str), in PyUnicode_Translate()
5315 for (uni2 = PyUnicode_AS_UNICODE(repunicode); repsize-->0; ++uni2) { in PyUnicode_EncodeDecimal()
5423 PyUnicode_AS_UNICODE(str), PyUnicode_GET_SIZE(str), in PyUnicode_Find()
5424 PyUnicode_AS_UNICODE(sub), PyUnicode_GET_SIZE(sub), in PyUnicode_Find()
5429 PyUnicode_AS_UNICODE(str), PyUnicode_GET_SIZE(str), in PyUnicode_Find()
5430 PyUnicode_AS_UNICODE(sub), PyUnicode_GET_SIZE(sub), in PyUnicode_Find()
5608 register Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in fixtitle()
5698 sep = PyUnicode_AS_UNICODE(internal_separator); in PyUnicode_Join()
5709 res_p = PyUnicode_AS_UNICODE(res); in PyUnicode_Join()
5754 res_p = PyUnicode_AS_UNICODE(res) + res_used; in PyUnicode_Join()
5758 Py_UNICODE_COPY(res_p, PyUnicode_AS_UNICODE(item), itemlen); in PyUnicode_Join()
5836 (PyObject*) string, PyUnicode_AS_UNICODE(string), in PyUnicode_Splitlines()
6103 unistr = PyUnicode_AS_UNICODE(uniobj); in convert_uc()
6615 PyUnicode_AS_UNICODE(self), PyUnicode_GET_SIZE(self), in unicode_find()
6616 PyUnicode_AS_UNICODE(substring), PyUnicode_GET_SIZE(substring), in unicode_find()
6663 p = PyUnicode_AS_UNICODE(self); in unicode_hash()
6694 PyUnicode_AS_UNICODE(self), PyUnicode_GET_SIZE(self), in unicode_index()
6695 PyUnicode_AS_UNICODE(substring), PyUnicode_GET_SIZE(substring), in unicode_index()
6718 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_islower()
6752 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isupper()
6788 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_istitle()
6834 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isspace()
6863 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isalpha()
6892 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isalnum()
6921 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isdecimal()
6950 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isdigit()
6979 register const Py_UNICODE *p = PyUnicode_AS_UNICODE(self); in unicode_isnumeric()
7064 Py_UNICODE *s = PyUnicode_AS_UNICODE(self); in _PyUnicode_XStrip()
7066 Py_UNICODE *sep = PyUnicode_AS_UNICODE(sepobj); in _PyUnicode_XStrip()
7099 Py_UNICODE *s = PyUnicode_AS_UNICODE(self); in do_strip()
7336 return unicodeescape_string(PyUnicode_AS_UNICODE(unicode), in unicode_repr()
7363 PyUnicode_AS_UNICODE(self), PyUnicode_GET_SIZE(self), in unicode_rfind()
7364 PyUnicode_AS_UNICODE(substring), PyUnicode_GET_SIZE(substring), in unicode_rfind()
7391 PyUnicode_AS_UNICODE(self), PyUnicode_GET_SIZE(self), in unicode_rindex()
7392 PyUnicode_AS_UNICODE(substring), PyUnicode_GET_SIZE(substring), in unicode_rindex()
7517 str_obj, PyUnicode_AS_UNICODE(str_obj), PyUnicode_GET_SIZE(str_obj), in PyUnicode_Partition()
7518 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_Partition()
7545 str_obj, PyUnicode_AS_UNICODE(str_obj), PyUnicode_GET_SIZE(str_obj), in PyUnicode_RPartition()
7546 sep_obj, PyUnicode_AS_UNICODE(sep_obj), PyUnicode_GET_SIZE(sep_obj) in PyUnicode_RPartition()
7719 PyUnicode_AS_UNICODE(self), in unicode_zfill()
7876 PyUnicode_AS_UNICODE(format_spec), in unicode__format__()
8026 source_buf = PyUnicode_AS_UNICODE((PyObject*)self); in unicode_subscript()
8287 buf[0] = PyUnicode_AS_UNICODE(v)[0]; in formatchar()
8304 buf[0] = PyUnicode_AS_UNICODE(unistr)[0]; in formatchar()
8370 fmt = PyUnicode_AS_UNICODE(uformat); in PyUnicode_Format()
8377 res = PyUnicode_AS_UNICODE(result); in PyUnicode_Format()
8398 res = PyUnicode_AS_UNICODE(result) + reslen - rescnt; in PyUnicode_Format()
8613 pbuf = PyUnicode_AS_UNICODE(temp); in PyUnicode_Format()
8659 pbuf = PyUnicode_AS_UNICODE(temp); in PyUnicode_Format()
8687 pbuf = PyUnicode_AS_UNICODE(temp); in PyUnicode_Format()
8708 PyUnicode_AS_UNICODE(uformat))); in PyUnicode_Format()
8738 res = PyUnicode_AS_UNICODE(result) in PyUnicode_Format()