Home
last modified time | relevance | path

Searched refs:PyUnicode_New (Results 1 – 25 of 27) sorted by relevance

12

/external/python/markupsafe/src/markupsafe/
D_speedups.c106 out = PyUnicode_New(PyUnicode_GET_LENGTH(in) + delta, in escape_unicode_kind1()
132 out = PyUnicode_New(PyUnicode_GET_LENGTH(in) + delta, 65535); in escape_unicode_kind2()
158 out = PyUnicode_New(PyUnicode_GET_LENGTH(in) + delta, 1114111); in escape_unicode_kind4()
/external/python/cpython3/Python/
Dcodecs.c695 return Py_BuildValue("(Nn)", PyUnicode_New(0, 0), end); in PyCodec_IgnoreErrors()
711 res = PyUnicode_New(len, '?'); in PyCodec_ReplaceErrors()
736 res = PyUnicode_New(len, Py_UNICODE_REPLACEMENT_CHARACTER); in PyCodec_ReplaceErrors()
791 res = PyUnicode_New(ressize, 127); in PyCodec_XMLCharRefReplaceErrors()
870 res = PyUnicode_New(4 * (end - start), 127); in PyCodec_BackslashReplaceErrors()
923 res = PyUnicode_New(ressize, 127); in PyCodec_BackslashReplaceErrors()
1005 res = PyUnicode_New(ressize, 127); in PyCodec_NameReplaceErrors()
Dpystrhex.c76 retval = PyUnicode_New(resultlen, 127); in _Py_strhex_impl()
Dformatter_unicode.c739 locale_info->thousands_sep = PyUnicode_New(0, 0); in get_locale_info()
Dmarshal.c1139 v = PyUnicode_New(0, 0); in r_object()
Dceval.c2724 PyObject *empty = PyUnicode_New(0, 0); in _PyEval_EvalFrameDefault()
/external/python/cffi/c/
Dwchar_helper_3.h36 PyObject *result = PyUnicode_New(size - count_surrogates, 0x10FFFF); in _my_PyUnicode_FromChar16()
/external/python/cpython3/Objects/
Dunicodeobject.c230 unicode_empty = PyUnicode_New(0, 0); \
1197 copy = PyUnicode_New(length, PyUnicode_MAX_CHAR_VALUE(unicode)); in resize_copy()
1386 PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar) in PyUnicode_New() function
2136 unicode = PyUnicode_New(1, ch); in get_latin1_char()
2161 unicode = PyUnicode_New(1, ch); in unicode_char()
2224 unicode = PyUnicode_New(size - num_surrogates, maxchar); in PyUnicode_FromWideChar()
2326 unicode = PyUnicode_New(size, 127); in _PyUnicode_FromASCII()
2362 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS1()
2383 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS2()
2409 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS4()
[all …]
Dlongobject.c1795 str = PyUnicode_New(strlen, '9'); in long_to_decimal_string_internal()
1961 v = PyUnicode_New(sz, 'x'); in long_format_binary()
Dabstract.c786 empty = PyUnicode_New(0, 0); in PyObject_Format()
Dbytesobject.c1299 v = PyUnicode_New(newsize, 127); in PyBytes_Repr()
/external/python/cpython3/Objects/stringlib/
Dunicode_format.h73 return PyUnicode_New(0, 0); in SubString_new_object_or_empty()
532 format_spec_object = PyUnicode_New(0, 0); in render_field()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h460 PyAPI_FUNC(PyObject*) PyUnicode_New(
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c642 return make_tuple(PyUnicode_New(0, 0), 0); in _multibytecodec_MultibyteCodec_decode_impl()
1431 return PyUnicode_New(0, 0); in mbstreamreader_iread()
/external/python/cpython3/Modules/_io/
Dstringio.c354 return PyUnicode_New(0, 0); in _stringio_readline()
Dtextio.c339 modified = PyUnicode_New(output_len + 1, in _PyIncrementalNewlineDecoder_decode()
/external/python/cpython3/Modules/
D_json.c196 rval = PyUnicode_New(output_size, 127); in ascii_escape_unicode()
262 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
D_elementtree.c1299 return PyUnicode_New(0, 0); in _elementtree_Element_findtext_impl()
Dsocketmodule.c5444 return PyUnicode_New(0, 0);
D_testcapimodule.c2009 if (!(to_copy = PyUnicode_New(PyUnicode_GET_LENGTH(to), in unicode_copycharacters()
/external/python/cpython3/Doc/c-api/
Dunicode.rst405 .. c:function:: PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
437 :c:func:`PyUnicode_New`.
627 :c:func:`PyUnicode_New`. Since Unicode strings are supposed to be immutable,
704 :c:func:`PyUnicode_New`.
/external/python/cpython3/Doc/data/
Drefcounts.dat2760 PyUnicode_New:PyObject*::+1:
2761 PyUnicode_New:Py_ssize_t:size::
2762 PyUnicode_New:Py_UCS4:maxchar::
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c4662 return PyUnicode_New(0, 0); in Array_subscript()
5358 return PyUnicode_New(0, 0); in Pointer_subscript()
/external/python/cpython2/Objects/
Dbytesobject.c1372 v = PyUnicode_New(newsize, 127); in PyBytes_Repr()
/external/python/cpython3/Modules/_decimal/
D_decimal.c3088 res = PyUnicode_New(size, 127); in unicode_fromascii()

12