/external/python/cpython2/Objects/ |
D | unicodectype.c | 26 const Py_UNICODE upper; 27 const Py_UNICODE lower; 28 const Py_UNICODE title; 37 gettyperecord(Py_UNICODE code) in gettyperecord() 57 Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch) in _PyUnicode_ToTitlecase() 74 int _PyUnicode_IsTitlecase(Py_UNICODE ch) in _PyUnicode_IsTitlecase() 84 int _PyUnicode_ToDecimalDigit(Py_UNICODE ch) in _PyUnicode_ToDecimalDigit() 91 int _PyUnicode_IsDecimalDigit(Py_UNICODE ch) in _PyUnicode_IsDecimalDigit() 101 int _PyUnicode_ToDigit(Py_UNICODE ch) in _PyUnicode_ToDigit() 108 int _PyUnicode_IsDigit(Py_UNICODE ch) in _PyUnicode_IsDigit() [all …]
|
D | unicodeobject.c | 188 Py_UNICODE 229 Py_LOCAL_INLINE(BLOOM_MASK) make_bloom_mask(Py_UNICODE* ptr, Py_ssize_t len) in make_bloom_mask() 243 Py_LOCAL_INLINE(int) unicode_member(Py_UNICODE chr, Py_UNICODE* set, Py_ssize_t setlen) in unicode_member() 289 sizeof(Py_UNICODE) * (length + 1)); in unicode_resize() 291 unicode->str = (Py_UNICODE *)oldstr; in unicode_resize() 328 if (length > ((PY_SSIZE_T_MAX / sizeof(Py_UNICODE)) - 1)) { in _PyUnicode_New() 347 size_t new_size = sizeof(Py_UNICODE) * ((size_t)length + 1); in _PyUnicode_New() 348 unicode->str = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New() 357 new_size = sizeof(Py_UNICODE) * ((size_t)length + 1); in _PyUnicode_New() 358 unicode->str = (Py_UNICODE*) PyObject_MALLOC(new_size); in _PyUnicode_New() [all …]
|
D | unicodetype_db.h | 1901 double _PyUnicode_ToNumeric(Py_UNICODE ch) in _PyUnicode_ToNumeric() 3274 int _PyUnicode_IsWhitespace(register const Py_UNICODE ch) in _PyUnicode_IsWhitespace() 3320 int _PyUnicode_IsLinebreak(register const Py_UNICODE ch) in _PyUnicode_IsLinebreak()
|
/external/python/cpython3/Include/cpython/ |
D | unicodeobject.h | 14 /* Py_DEPRECATED(3.3) */ typedef wchar_t Py_UNICODE; typedef 54 Py_UNICODE_COPY(Py_UNICODE *target, const Py_UNICODE *source, Py_ssize_t length) { in Py_UNICODE_COPY() 55 memcpy(target, source, (size_t)(length) * sizeof(Py_UNICODE)); in Py_UNICODE_COPY() 59 Py_UNICODE_FILL(Py_UNICODE *target, Py_UNICODE value, Py_ssize_t length) { in Py_UNICODE_FILL() 552 const Py_UNICODE *u, /* Unicode buffer */ 580 Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 586 Py_DEPRECATED(3.3) PyAPI_FUNC(const Py_UNICODE *) _PyUnicode_AsUnicode( 595 Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicodeAndSize( 601 Py_DEPRECATED(3.3) PyAPI_FUNC(Py_UNICODE) PyUnicode_GetMax(void); 781 const Py_UNICODE *s, /* Unicode char buffer */ [all …]
|
D | pyerrors.h | 94 PyObject *, const Py_UNICODE *); 110 int, const Py_UNICODE *); 113 PyObject *,int, const Py_UNICODE *); 158 const Py_UNICODE *object, 170 const Py_UNICODE *object,
|
/external/python/cpython2/Include/ |
D | unicodeobject.h | 137 typedef PY_UNICODE_TYPE Py_UNICODE; typedef 394 Py_MEMCPY((target), (source), (length)*sizeof(Py_UNICODE)) 397 do {Py_ssize_t i_; Py_UNICODE *t_ = (target); Py_UNICODE v_ = (value);\ 407 !memcmp((string)->str + (offset), (substring)->str, (substring)->length*sizeof(Py_UNICODE))) 418 Py_UNICODE *str; /* Raw Unicode buffer */ 435 (((PyUnicodeObject *)(op))->length * sizeof(Py_UNICODE)) 448 #define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UNICODE) 0xFFFD) 465 const Py_UNICODE *u, /* Unicode buffer */ 484 PyAPI_FUNC(Py_UNICODE *) PyUnicode_AsUnicode( 495 PyAPI_FUNC(Py_UNICODE) PyUnicode_GetMax(void); [all …]
|
D | pyerrors.h | 193 PyObject *, const Py_UNICODE *); 205 int, const Py_UNICODE *); 212 PyObject *,int, const Py_UNICODE *); 251 const char *, const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *); 255 const Py_UNICODE *, Py_ssize_t, Py_ssize_t, Py_ssize_t, const char *);
|
/external/python/cpython3/PC/clinic/ |
D | winreg.c.h | 145 const Py_UNICODE *computer_name, HKEY key); 151 const Py_UNICODE *computer_name; in winreg_ConnectRegistry() 192 winreg_CreateKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key); 199 const Py_UNICODE *sub_key; in winreg_CreateKey() 246 const Py_UNICODE *sub_key, int reserved, 256 const Py_UNICODE *sub_key; in winreg_CreateKeyEx() 297 winreg_DeleteKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key); 304 const Py_UNICODE *sub_key; in winreg_DeleteKey() 346 const Py_UNICODE *sub_key, REGSAM access, 356 const Py_UNICODE *sub_key; in winreg_DeleteKeyEx() [all …]
|
/external/python/cffi/c/ |
D | wchar_helper.h | 41 register Py_UNICODE *u; in _my_PyUnicode_FromChar32() 68 return PyUnicode_FromUnicode((const Py_UNICODE *)w, size); in _my_PyUnicode_FromChar16() 76 return PyUnicode_FromUnicode((const Py_UNICODE *)w, size); in _my_PyUnicode_FromChar32() 86 Py_UNICODE *u_base = PyUnicode_AS_UNICODE(result); in _my_PyUnicode_FromChar16() 87 Py_UNICODE *u = u_base; in _my_PyUnicode_FromChar16() 127 Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode); in _my_PyUnicode_AsSingleChar16() 148 Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode); in _my_PyUnicode_AsSingleChar32() 170 Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode); in _my_PyUnicode_SizeAsChar16() 187 Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode); in _my_PyUnicode_SizeAsChar32() 203 Py_UNICODE *u = PyUnicode_AS_UNICODE(unicode); in _my_PyUnicode_AsChar16() [all …]
|
/external/python/cpython2/Modules/_io/ |
D | stringio.c | 12 Py_UNICODE *buf; 59 Py_UNICODE *new_buf = NULL; in resize_buffer() 87 if (alloc > ((size_t)-1) / sizeof(Py_UNICODE)) in resize_buffer() 89 new_buf = (Py_UNICODE *)PyMem_Realloc(self->buf, in resize_buffer() 90 alloc * sizeof(Py_UNICODE)); in resize_buffer() 111 Py_UNICODE *str; in write_str() 164 (self->pos - self->string_size) * sizeof(Py_UNICODE)); in write_str() 169 memcpy(self->buf + self->pos, str, len * sizeof(Py_UNICODE)); in write_str() 217 Py_UNICODE *output; in stringio_read() 257 Py_UNICODE *start, *end, old_char; in _stringio_readline() [all …]
|
D | textio.c | 288 Py_UNICODE *out; in _PyIncrementalNewlineDecoder_decode() 295 output_len * sizeof(Py_UNICODE)); in _PyIncrementalNewlineDecoder_decode() 329 Py_UNICODE *in_str; in _PyIncrementalNewlineDecoder_decode() 344 only_lf = (memchr(in_str, '\r', len * sizeof(Py_UNICODE)) == NULL); in _PyIncrementalNewlineDecoder_decode() 352 memchr(in_str, '\n', len * sizeof(Py_UNICODE)) != NULL) { in _PyIncrementalNewlineDecoder_decode() 353 Py_UNICODE *s, *end; in _PyIncrementalNewlineDecoder_decode() 357 Py_UNICODE c; in _PyIncrementalNewlineDecoder_decode() 374 Py_UNICODE *s, *end; in _PyIncrementalNewlineDecoder_decode() 381 Py_UNICODE c; in _PyIncrementalNewlineDecoder_decode() 406 Py_UNICODE *out_str; in _PyIncrementalNewlineDecoder_decode() [all …]
|
/external/libchrome/third_party/markupsafe/ |
D | _speedups.c | 26 static Py_UNICODE *escaped_chars_repl[ESCAPED_CHARS_TABLE_SIZE]; 59 Py_UNICODE *inp = PyUnicode_AS_UNICODE(in); in escape_unicode() 60 const Py_UNICODE *inp_end = PyUnicode_AS_UNICODE(in) + PyUnicode_GET_SIZE(in); in escape_unicode() 61 Py_UNICODE *next_escp; in escape_unicode() 62 Py_UNICODE *outp; in escape_unicode()
|
/external/python/cpython2/Doc/c-api/ |
D | unicode.rst | 21 .. c:type:: Py_UNICODE 25 for :c:type:`Py_UNICODE` and store Unicode values internally as UCS2. It is also 28 :c:type:`Py_UNICODE` and store Unicode data internally as UCS4. On platforms 30 Unicode build variant, :c:type:`Py_UNICODE` is a typedef alias for 32 platforms, :c:type:`Py_UNICODE` is a typedef alias for either :c:type:`unsigned 90 .. c:function:: Py_UNICODE* PyUnicode_AS_UNICODE(PyObject *o) 92 Return a pointer to the internal :c:type:`Py_UNICODE` buffer of the object. *o* 117 .. c:function:: int Py_UNICODE_ISSPACE(Py_UNICODE ch) 122 .. c:function:: int Py_UNICODE_ISLOWER(Py_UNICODE ch) 127 .. c:function:: int Py_UNICODE_ISUPPER(Py_UNICODE ch) [all …]
|
/external/python/cpython3/Doc/c-api/ |
D | unicode.rst | 20 :c:type:`Py_UNICODE*` and UTF-8 representations are created on demand and cached 21 in the Unicode object. The :c:type:`Py_UNICODE*` representation is deprecated 34 :c:type:`Py_UNICODE*` representation; you will have to call 60 .. c:type:: Py_UNICODE 213 Return the size of the deprecated :c:type:`Py_UNICODE` representation, in 224 Return the size of the deprecated :c:type:`Py_UNICODE` representation in 232 .. c:function:: Py_UNICODE* PyUnicode_AS_UNICODE(PyObject *o) 235 Return a pointer to a :c:type:`Py_UNICODE` representation of the object. The 244 :c:type:`Py_UNICODE` representation does not exist and needs to be created 272 .. c:function:: int Py_UNICODE_ISSPACE(Py_UNICODE ch) [all …]
|
/external/python/cpython2/PC/ |
D | msvcrtmodule.c | 212 Py_UNICODE ch; in msvcrt_getwch() 213 Py_UNICODE u[1]; in msvcrt_getwch() 257 Py_UNICODE ch; in msvcrt_getwche() 258 Py_UNICODE s[1]; in msvcrt_getwche() 298 Py_UNICODE *ch; in msvcrt_putwch() 344 Py_UNICODE ch; in msvcrt_ungetwch()
|
/external/python/cpython2/Modules/cjkcodecs/ |
D | multibytecodec.h | 36 const Py_UNICODE **inbuf, Py_ssize_t inleft, 47 Py_UNICODE **outbuf, Py_ssize_t outleft); 84 Py_UNICODE pending[MAXENCPENDING]; \
|
D | _codecs_cn.c | 46 Py_UNICODE c = IN1; in ENCODER() 102 Py_UNICODE c = IN1; in ENCODER() 211 Py_UNICODE tc; in ENCODER() 334 Py_UNICODE c = IN1; in ENCODER()
|
D | _codecs_tw.c | 17 Py_UNICODE c = **inbuf; in ENCODER() 72 Py_UNICODE c = IN1; in ENCODER()
|
/external/python/cpython2/Python/ |
D | codecs.c | 661 Py_UNICODE *p; in PyCodec_ReplaceErrors() 677 Py_UNICODE res = Py_UNICODE_REPLACEMENT_CHARACTER; in PyCodec_ReplaceErrors() 684 Py_UNICODE *p; in PyCodec_ReplaceErrors() 713 Py_UNICODE *p; in PyCodec_XMLCharRefReplaceErrors() 714 Py_UNICODE *startp; in PyCodec_XMLCharRefReplaceErrors() 715 Py_UNICODE *e; in PyCodec_XMLCharRefReplaceErrors() 716 Py_UNICODE *outp; in PyCodec_XMLCharRefReplaceErrors() 825 static Py_UNICODE hexdigits[] = { 838 Py_UNICODE *p; in PyCodec_BackslashReplaceErrors() 839 Py_UNICODE *startp; in PyCodec_BackslashReplaceErrors() [all …]
|
/external/python/cpython2/Doc/data/ |
D | refcounts.dat | 674 PyLong_FromUnicode:Py_UNICODE:u:: 1419 PyUnicode_AS_UNICODE:Py_UNICODE*::: 1426 Py_UNICODE_ISSPACE:Py_UNICODE:ch:: 1429 Py_UNICODE_ISLOWER:Py_UNICODE:ch:: 1432 Py_UNICODE_ISUPPER:Py_UNICODE:ch:: 1435 Py_UNICODE_ISTITLE:Py_UNICODE:ch:: 1438 Py_UNICODE_ISLINEBREAK:Py_UNICODE:ch:: 1441 Py_UNICODE_ISDECIMAL:Py_UNICODE:ch:: 1444 Py_UNICODE_ISDIGIT:Py_UNICODE:ch:: 1447 Py_UNICODE_ISNUMERIC:Py_UNICODE:ch:: [all …]
|
/external/python/cpython3/PC/ |
D | winreg.c | 842 const Py_UNICODE *computer_name, HKEY key) in winreg_ConnectRegistry_impl() 882 winreg_CreateKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key) in winreg_CreateKey_impl() 931 const Py_UNICODE *sub_key, int reserved, in winreg_CreateKeyEx_impl() 975 winreg_DeleteKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key) in winreg_DeleteKey_impl() 1016 const Py_UNICODE *sub_key, REGSAM access, in winreg_DeleteKeyEx_impl() 1064 winreg_DeleteValue_impl(PyObject *module, HKEY key, const Py_UNICODE *value) in winreg_DeleteValue_impl() 1245 const Py_UNICODE *string) in winreg_ExpandEnvironmentStrings_impl() 1343 winreg_LoadKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key, in winreg_LoadKey_impl() 1344 const Py_UNICODE *file_name) in winreg_LoadKey_impl() 1381 winreg_OpenKey_impl(PyObject *module, HKEY key, const Py_UNICODE *sub_key, in winreg_OpenKey_impl() [all …]
|
/external/python/cpython2/Modules/ |
D | unicodedata.c | 94 Py_UNICODE *v = PyUnicode_AS_UNICODE(obj); in getuchar() 500 Py_UNICODE *i, *end, *o; in nfd_nfkd() 502 Py_UNICODE stack[20]; in nfd_nfkd() 528 Py_UNICODE code = stack[--stackptr]; in nfd_nfkd() 597 Py_UNICODE tmp = o[1]; in nfd_nfkd() 613 find_nfc_index(PyObject *self, struct reindex* nfc, Py_UNICODE code) in find_nfc_index() 632 Py_UNICODE *i, *i1, *o, *end; in nfc_nfkc() 634 Py_UNICODE code; in nfc_nfkc() 635 Py_UNICODE *skipped[20]; in nfc_nfkc() 745 Py_UNICODE *i, *end; in is_normalized() [all …]
|
D | _json.c | 82 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars); 155 ascii_escape_char(Py_UNICODE c, char *output, Py_ssize_t chars) in ascii_escape_char() 173 Py_UNICODE v = c - 0x10000; in ascii_escape_char() 205 Py_UNICODE *input_unicode; in ascii_escape_unicode() 232 Py_UNICODE c = input_unicode[i]; in ascii_escape_unicode() 282 Py_UNICODE c = (Py_UNICODE)(unsigned char)input_str[i]; in ascii_escape_str() 287 c = (Py_UNICODE)(unsigned char)input_str[j]; in ascii_escape_str() 332 Py_UNICODE c = (Py_UNICODE)(unsigned char)input_str[i]; in ascii_escape_str() 459 Py_UNICODE c = 0; in scanstring_str() 531 Py_UNICODE digit = buf[next]; in scanstring_str() [all …]
|
/external/python/cpython3/Doc/data/ |
D | refcounts.dat | 1209 PyLong_FromUnicode:Py_UNICODE*:u:: 2378 PyUnicode_AS_UNICODE:Py_UNICODE*::: 2385 Py_UNICODE_ISALNUM:Py_UNICODE:ch:: 2388 Py_UNICODE_ISALPHA:Py_UNICODE:ch:: 2391 Py_UNICODE_ISSPACE:Py_UNICODE:ch:: 2394 Py_UNICODE_ISLOWER:Py_UNICODE:ch:: 2397 Py_UNICODE_ISUPPER:Py_UNICODE:ch:: 2400 Py_UNICODE_ISTITLE:Py_UNICODE:ch:: 2403 Py_UNICODE_ISLINEBREAK:Py_UNICODE:ch:: 2406 Py_UNICODE_ISDECIMAL:Py_UNICODE:ch:: [all …]
|
/external/python/cpython2/Objects/stringlib/ |
D | formatter.h | 920 strtounicode(Py_UNICODE *buffer, const char *charbuffer, Py_ssize_t len) in strtounicode() 924 buffer[i] = (Py_UNICODE)charbuffer[i]; in strtounicode() 951 Py_UNICODE *unicode_tmp = NULL; in format_float_internal() 1018 unicode_tmp = (Py_UNICODE*)PyMem_Malloc((n_digits)*sizeof(Py_UNICODE)); in format_float_internal() 1115 Py_UNICODE *re_unicode_tmp = NULL; in format_complex_internal() 1116 Py_UNICODE *im_unicode_tmp = NULL; in format_complex_internal() 1196 re_unicode_tmp = (Py_UNICODE*)PyMem_Malloc((n_re_digits)*sizeof(Py_UNICODE)); in format_complex_internal() 1204 im_unicode_tmp = (Py_UNICODE*)PyMem_Malloc((n_im_digits)*sizeof(Py_UNICODE)); in format_complex_internal()
|