Home
last modified time | relevance | path

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

12

/external/python/cpython2/Objects/stringlib/
Dunicodedefs.h23 #define STRINGLIB_NEW PyUnicode_FromUnicode
/external/python/cpython2/PC/
Dmsvcrtmodule.c222 return PyUnicode_FromUnicode(u, 1); in msvcrt_getwch()
267 return PyUnicode_FromUnicode(s, 1); in msvcrt_getwche()
D_winreg.c1302 o = PyUnicode_FromUnicode(retValue, wcslen(retValue)); in PyExpandEnvironmentStrings()
/external/python/cpython2/Python/
Dcodecs.c666 res = PyUnicode_FromUnicode(NULL, end-start); in PyCodec_ReplaceErrors()
689 res = PyUnicode_FromUnicode(NULL, end-start); in PyCodec_ReplaceErrors()
759 res = PyUnicode_FromUnicode(NULL, ressize); in PyCodec_XMLCharRefReplaceErrors()
863 res = PyUnicode_FromUnicode(NULL, ressize); in PyCodec_BackslashReplaceErrors()
Derrors.c406 PyUnicode_FromUnicode(filename, wcslen(filename)) : in PyErr_SetFromErrnoWithUnicodeFilename()
488 PyUnicode_FromUnicode(filename, wcslen(filename)) : in PyErr_SetExcFromWindowsErrWithUnicodeFilename()
524 PyUnicode_FromUnicode(filename, wcslen(filename)) : in PyErr_SetFromWindowsErrWithUnicodeFilename()
Dmodsupport.c401 v = PyUnicode_FromUnicode(u, n); in do_mkvalue()
Dbltinmodule.c2977 if ((result = PyUnicode_FromUnicode(NULL, len)) == NULL) in filterunicode()
/external/python/cpython2/Modules/_io/
Dstringio.c193 return PyUnicode_FromUnicode(self->buf, self->string_size); in stringio_getvalue()
250 return PyUnicode_FromUnicode(output, size); in stringio_read()
280 return PyUnicode_FromUnicode(start, len); in _stringio_readline()
Dtextio.c289 PyObject *modified = PyUnicode_FromUnicode(NULL, output_len + 1); in _PyIncrementalNewlineDecoder_decode()
314 PyObject *modified = PyUnicode_FromUnicode( in _PyIncrementalNewlineDecoder_decode()
413 translated = PyUnicode_FromUnicode(NULL, len); in _PyIncrementalNewlineDecoder_decode()
1370 chars = PyUnicode_FromUnicode( in textiowrapper_get_decoded_chars()
1780 s = PyUnicode_FromUnicode(ptr + start, endpos - start); in _textiowrapper_readline()
1793 remaining = PyUnicode_FromUnicode( in _textiowrapper_readline()
1812 PyObject *s = PyUnicode_FromUnicode( in _textiowrapper_readline()
/external/python/cpython2/Include/
Dunicodeobject.h196 # define PyUnicode_FromUnicode PyUnicodeUCS2_FromUnicode macro
283 # define PyUnicode_FromUnicode PyUnicodeUCS4_FromUnicode macro
464 PyAPI_FUNC(PyObject*) PyUnicode_FromUnicode(
/external/libmojo/third_party/markupsafe/
D_speedups.c80 out = (PyUnicodeObject*)PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(in) + delta); in escape_unicode()
/external/python/cpython2/Objects/
Dunicodeobject.c453 PyObject *PyUnicode_FromUnicode(const Py_UNICODE *u, in PyUnicode_FromUnicode() function
911 string = PyUnicode_FromUnicode(NULL, n); in PyUnicode_FromFormatV()
1143 return PyUnicode_FromUnicode(s, 1); in PyUnicode_FromOrdinal()
1157 return PyUnicode_FromUnicode(PyUnicode_AS_UNICODE(obj), in PyUnicode_FromObject()
1313 unicode = PyUnicode_FromUnicode(s, size); in PyUnicode_Encode()
3507 return PyUnicode_FromUnicode(&r, 1); in PyUnicode_DecodeLatin1()
3840 return PyUnicode_FromUnicode(&r, 1); in PyUnicode_DecodeASCII()
5082 res = PyUnicode_FromUnicode(NULL, size); in PyUnicode_TranslateCharmap()
5501 u = (PyUnicodeObject*) PyUnicode_FromUnicode(NULL, self->length); in fixup()
5906 u = (PyUnicodeObject*) PyUnicode_FromUnicode(NULL, self->length); in replace()
[all …]
Dobject.c526 return PyUnicode_FromUnicode(PyUnicode_AS_UNICODE(v), in PyObject_Unicode()
Dfileobject.c1624 v = PyUnicode_FromUnicode(s, len-1); in PyFile_GetLine()
/external/python/cpython2/Modules/
Dunicodedata.c518 result = PyUnicode_FromUnicode(NULL, space); in nfd_nfkd()
1167 return PyUnicode_FromUnicode(str, 2); in unicodedata_lookup()
1171 return PyUnicode_FromUnicode(str, 1); in unicodedata_lookup()
D_json.c397 PyObject *ustr = PyUnicode_FromUnicode(NULL, 0); in join_list_unicode()
585 chunk = PyUnicode_FromUnicode(&c, 1); in scanstring_str()
654 chunk = PyUnicode_FromUnicode(&buf[end], next - end); in scanstring_unicode()
752 chunk = PyUnicode_FromUnicode(&c, 1); in scanstring_unicode()
1470 numstr = PyUnicode_FromUnicode(&str[start], idx - start); in _match_number_unicode()
Darraymodule.c177 return PyUnicode_FromUnicode(&((Py_UNICODE *) ap->ob_item)[i], 1); in u_getitem()
1516 return PyUnicode_FromUnicode((Py_UNICODE *) self->ob_item, Py_SIZE(self)); in array_tounicode()
D_testcapimodule.c1457 return PyUnicode_FromUnicode(str, size); in getargs_u()
1467 return PyUnicode_FromUnicode(str, size); in getargs_u_hash()
D_tkinter.c1389 result = PyUnicode_FromUnicode(NULL, size); in FromObj()
1398 return PyUnicode_FromUnicode(Tcl_GetUnicode(value), in FromObj()
Dposixmodule.c763 *param = PyUnicode_FromUnicode(PyUnicode_AS_UNICODE(*param), in convert_to_unicode()
2336 v = PyUnicode_FromUnicode(wFileData.cFileName, wcslen(wFileData.cFileName)); in posix_listdir()
2627 v = PyUnicode_FromUnicode(woutbufp, wcslen(woutbufp)); in posix__getfullpathname()
/external/python/cpython2/Modules/cjkcodecs/
Dmultibytecodec.c626 return make_tuple(PyUnicode_FromUnicode(NULL, 0), 0); in MultibyteCodec_Decode()
632 buf.outobj = PyUnicode_FromUnicode(NULL, datalen); in MultibyteCodec_Decode()
844 buf->outobj = PyUnicode_FromUnicode(NULL, size); in decoder_prepare_buffer()
1245 return PyUnicode_FromUnicode(NULL, 0); in mbstreamreader_iread()
/external/python/cpython2/Mac/Modules/cf/
Dpycfbridge.c137 rv = (PyObject *)PyUnicode_FromUnicode(data, size-1); in PyCF_CF2Python_string()
/external/python/cpython2/Doc/data/
Drefcounts.dat1467 PyUnicode_FromUnicode:PyObject*::+1:
1468 PyUnicode_FromUnicode:const Py_UNICODE*:u::
1469 PyUnicode_FromUnicode:int:size::
/external/python/cpython2/Modules/_ctypes/
D_ctypes.c4480 return PyUnicode_FromUnicode(NULL, 0); in Array_subscript()
5265 return PyUnicode_FromUnicode(NULL, 0); in Pointer_subscript()
5768 unicode = (PyUnicodeObject *)PyUnicode_FromUnicode(NULL, size); in My_PyUnicode_FromWideChar()
/external/python/cpython2/Doc/c-api/
Dunicode.rst209 .. c:function:: PyObject* PyUnicode_FromUnicode(const Py_UNICODE *u, Py_ssize_t size)

12