Home
last modified time | relevance | path

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

12

/external/python/cpython3/Python/
Dcodecs.c698 return Py_BuildValue("(Nn)", PyUnicode_New(0, 0), end); in PyCodec_IgnoreErrors()
715 res = PyUnicode_New(len, '?'); in PyCodec_ReplaceErrors()
741 res = PyUnicode_New(len, Py_UNICODE_REPLACEMENT_CHARACTER); in PyCodec_ReplaceErrors()
796 res = PyUnicode_New(ressize, 127); in PyCodec_XMLCharRefReplaceErrors()
875 res = PyUnicode_New(4 * (end - start), 127); in PyCodec_BackslashReplaceErrors()
928 res = PyUnicode_New(ressize, 127); in PyCodec_BackslashReplaceErrors()
1010 res = PyUnicode_New(ressize, 127); in PyCodec_NameReplaceErrors()
Dpystrhex.c23 retval = PyUnicode_New(arglen*2, 127); in _Py_strhex_impl()
Dformatter_unicode.c736 locale_info->thousands_sep = PyUnicode_New(0, 0); in get_locale_info()
Dmarshal.c1200 v = PyUnicode_New(0, 0); in r_object()
Dceval.c2242 PyObject *empty = PyUnicode_New(0, 0); in _PyEval_EvalFrameDefault()
Dcompile.c271 result = PyUnicode_New(1 + nlen + plen, maxchar); in _Py_Mangle()
/external/python/cpython3/Objects/
Dunicodeobject.c207 unicode_empty = PyUnicode_New(0, 0); \
1076 copy = PyUnicode_New(length, PyUnicode_MAX_CHAR_VALUE(unicode)); in resize_copy()
1262 PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar) in PyUnicode_New() function
1994 unicode = PyUnicode_New(1, ch); in get_latin1_char()
2015 unicode = PyUnicode_New(1, ch); in unicode_char()
2078 unicode = PyUnicode_New(size - num_surrogates, maxchar); in PyUnicode_FromWideChar()
2180 unicode = PyUnicode_New(size, 127); in _PyUnicode_FromASCII()
2216 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS1()
2237 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS2()
2263 res = PyUnicode_New(size, max_char); in _PyUnicode_FromUCS4()
[all …]
Dlongobject.c1679 str = PyUnicode_New(strlen, '9'); in long_to_decimal_string_internal()
1845 v = PyUnicode_New(sz, 'x'); in long_format_binary()
Dabstract.c725 empty = PyUnicode_New(0, 0); in PyObject_Format()
Dbytesobject.c1378 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()
527 format_spec_object = PyUnicode_New(0, 0); in render_field()
/external/python/cpython3/Modules/cjkcodecs/
Dmultibytecodec.c652 return make_tuple(PyUnicode_New(0, 0), 0); in _multibytecodec_MultibyteCodec_decode_impl()
1270 return PyUnicode_New(0, 0); in mbstreamreader_iread()
/external/python/cpython3/Modules/_io/
Dstringio.c353 return PyUnicode_New(0, 0); in _stringio_readline()
Dtextio.c337 modified = PyUnicode_New(output_len + 1, in _PyIncrementalNewlineDecoder_decode()
/external/python/cpython3/Modules/
D_json.c206 rval = PyUnicode_New(output_size, 127); in ascii_escape_unicode()
272 rval = PyUnicode_New(output_size, maxchar); in escape_unicode()
Dzipimport.c190 Py_XSETREF(self->prefix, PyUnicode_New(0, 0)); in zipimport_zipimporter___init___impl()
D_elementtree.c1282 return PyUnicode_New(0, 0); in _elementtree_Element_findtext_impl()
D_testcapimodule.c1927 if (!(to_copy = PyUnicode_New(PyUnicode_GET_LENGTH(to), in unicode_copycharacters()
Dsocketmodule.c5160 return PyUnicode_New(0, 0);
/external/python/cpython3/Include/
Dunicodeobject.h586 PyAPI_FUNC(PyObject*) PyUnicode_New(
/external/python/cpython3/Doc/c-api/
Dunicode.rst389 .. c:function:: PyObject* PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar)
421 :c:func:`PyUnicode_New`.
611 :c:func:`PyUnicode_New`. Since Unicode strings are supposed to be immutable,
686 :c:func:`PyUnicode_FromWideChar` or :c:func:`PyUnicode_New`.
/external/python/cpython3/Doc/data/
Drefcounts.dat2719 PyUnicode_New:PyObject*::+1:
2720 PyUnicode_New:Py_ssize_t:size::
2721 PyUnicode_New:Py_UCS4:maxchar::
/external/python/cpython3/Modules/_ctypes/
D_ctypes.c4417 return PyUnicode_New(0, 0); in Array_subscript()
5101 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.c2943 res = PyUnicode_New(size, 127); in unicode_fromascii()

12