Home
last modified time | relevance | path

Searched refs:PyUnicodeObject (Results 1 – 25 of 28) sorted by relevance

12

/external/python/cpython2/Objects/
Dunicodeobject.c97 static PyUnicodeObject *free_list = NULL;
101 static PyUnicodeObject *unicode_empty = NULL;
117 static PyUnicodeObject *unicode_latin1[256] = {NULL};
260 int unicode_resize(register PyUnicodeObject *unicode, in unicode_resize()
317 PyUnicodeObject *_PyUnicode_New(Py_ssize_t length) in _PyUnicode_New()
319 register PyUnicodeObject *unicode; in _PyUnicode_New()
329 return (PyUnicodeObject *)PyErr_NoMemory(); in _PyUnicode_New()
335 free_list = *(PyUnicodeObject **)unicode; in _PyUnicode_New()
354 unicode = PyObject_New(PyUnicodeObject, &PyUnicode_Type); in _PyUnicode_New()
388 void unicode_dealloc(register PyUnicodeObject *unicode) in unicode_dealloc()
[all …]
/external/python/cpython3/Objects/stringlib/
Deq.h9 PyUnicodeObject *a = (PyUnicodeObject *)aa; in unicode_eq()
10 PyUnicodeObject *b = (PyUnicodeObject *)bb; in unicode_eq()
Ducs4lib.h8 #define STRINGLIB_OBJECT PyUnicodeObject
Ducs1lib.h8 #define STRINGLIB_OBJECT PyUnicodeObject
Ducs2lib.h8 #define STRINGLIB_OBJECT PyUnicodeObject
Dunicodedefs.h11 #define STRINGLIB_OBJECT PyUnicodeObject
Dasciilib.h8 #define STRINGLIB_OBJECT PyUnicodeObject
/external/libchrome/third_party/markupsafe/
D_speedups.c15 #define UNICHR(x) (PyUnicode_AS_UNICODE((PyUnicodeObject*)PyUnicode_DecodeASCII(x, strlen(x), NULL)…
56 escape_unicode(PyUnicodeObject *in) in escape_unicode()
58 PyUnicodeObject *out; in escape_unicode()
80 out = (PyUnicodeObject*)PyUnicode_FromUnicode(NULL, PyUnicode_GET_SIZE(in) + delta); in escape_unicode()
149 s = escape_unicode((PyUnicodeObject*)unicode); in escape()
153 s = escape_unicode((PyUnicodeObject*)text); in escape()
/external/python/cpython2/Modules/
Dunicodedata.c92 static Py_UCS4 getuchar(PyUnicodeObject *obj) in getuchar()
121 PyUnicodeObject *v; in unicodedata_decimal()
172 PyUnicodeObject *v; in unicodedata_digit()
206 PyUnicodeObject *v; in unicodedata_numeric()
255 PyUnicodeObject *v; in unicodedata_category()
284 PyUnicodeObject *v; in unicodedata_bidirectional()
315 PyUnicodeObject *v; in unicodedata_combining()
344 PyUnicodeObject *v; in unicodedata_mirrored()
374 PyUnicodeObject *v; in unicodedata_east_asian_width()
403 PyUnicodeObject *v; in unicodedata_decomposition()
[all …]
D_localemodule.c323 if (PyUnicode_AsWideChar((PyUnicodeObject*)os1, ws1, len1) == -1) in PyLocale_strcoll()
332 if (PyUnicode_AsWideChar((PyUnicodeObject*)os2, ws2, len2) == -1) in PyLocale_strcoll()
Dpyexpat.c1244 PyUnicodeObject *_u_string = NULL; in PyUnknownEncodingHandler()
1249 _u_string = (PyUnicodeObject *) in PyUnknownEncodingHandler()
/external/python/cpython2/Include/
Dunicodeobject.h423 } PyUnicodeObject; typedef
433 (((PyUnicodeObject *)(op))->length)
435 (((PyUnicodeObject *)(op))->length * sizeof(Py_UNICODE))
437 (((PyUnicodeObject *)(op))->str)
439 ((const char *)((PyUnicodeObject *)(op))->str)
592 PyUnicodeObject *unicode, /* Unicode object */
1331 PyUnicodeObject *self,
/external/python/cpython2/Objects/stringlib/
Dfind.h157 PyUnicodeObject **substring, in stringlib_parse_args_finds_unicode()
167 *substring = (PyUnicodeObject *)tmp_substring; in stringlib_parse_args_finds_unicode()
Dunicodedefs.h9 #define STRINGLIB_OBJECT PyUnicodeObject
/external/python/cpython3/Include/cpython/
Dunicodeobject.h247 } PyUnicodeObject; typedef
353 (assert(((PyUnicodeObject*)(op))->data.any), \
354 ((((PyUnicodeObject *)(op))->data.any)))
/external/python/cpython3/Doc/c-api/
Dfile.rst69 void *userData)`, where *path* is guaranteed to be :c:type:`PyUnicodeObject`.
Dunicode.rst68 PyUnicodeObject
858 objects are output as-is. *result* must be a :c:type:`PyUnicodeObject*` which
/external/python/cpython2/Modules/_ctypes/
Dctypes.h430 extern Py_ssize_t PyUnicode_AsWideChar_fixed(PyUnicodeObject *, wchar_t *, Py_ssize_t);
Dcfield.c1285 PyUnicode_AsWideChar((PyUnicodeObject *)value, (wchar_t *)ptr, size); in U_set()
1458 if (-1 == PyUnicode_AsWideChar((PyUnicodeObject *)value, in Z_set()
D_ctypes.c1362 result = PyUnicode_AsWideChar((PyUnicodeObject *)value, in WCharArray_set_value()
5856 PyUnicodeObject *unicode; in My_PyUnicode_FromWideChar()
5863 unicode = (PyUnicodeObject *)PyUnicode_FromUnicode(NULL, size); in My_PyUnicode_FromWideChar()
5884 Py_ssize_t My_PyUnicode_AsWideChar(PyUnicodeObject *unicode, in My_PyUnicode_AsWideChar()
Dcallproc.c707 if (-1 == PyUnicode_AsWideChar((PyUnicodeObject *)obj, in ConvParam()
/external/python/cpython2/Doc/c-api/
Dunicode.rst39 .. c:type:: PyUnicodeObject
72 Return the size of the object. *o* has to be a :c:type:`PyUnicodeObject` (not
83 :c:type:`PyUnicodeObject` (not checked).
93 has to be a :c:type:`PyUnicodeObject` (not checked).
99 :c:type:`PyUnicodeObject` (not checked).
391 .. c:function:: Py_ssize_t PyUnicode_AsWideChar(PyUnicodeObject *unicode, wchar_t *w, Py_ssize_t si…
Darg.rst250 ``U`` (Unicode string) [PyUnicodeObject \*]
/external/python/cpython3/Python/
Dtraceback.c709 data = ((PyUnicodeObject *)text)->data.any; in _Py_DumpASCII()
/external/python/cpython3/Objects/
Dunicodeobject.c135 (((PyUnicodeObject*)(op))->data.any)
315 static PyUnicodeObject *_PyUnicode_New(Py_ssize_t length);
475 PyUnicodeObject *unicode = (PyUnicodeObject *)op; in _PyUnicode_CheckConsistency()
1147 static PyUnicodeObject *
1150 PyUnicodeObject *unicode; in _PyUnicode_New()
1156 return (PyUnicodeObject*)unicode_empty; in _PyUnicode_New()
1161 return (PyUnicodeObject *)PyErr_NoMemory(); in _PyUnicode_New()
1169 unicode = PyObject_New(PyUnicodeObject, &PyUnicode_Type); in _PyUnicode_New()
1274 PyUnicodeObject *unicode = (PyUnicodeObject *)op; in _PyUnicode_Dump()
13881 size = sizeof(PyUnicodeObject); in unicode_sizeof_impl()
[all …]

12