/external/python/cpython3/Objects/ |
D | unicodectype.c | 46 gettyperecord(Py_UCS4 code) in gettyperecord() 64 Py_UCS4 _PyUnicode_ToTitlecase(Py_UCS4 ch) in _PyUnicode_ToTitlecase() 76 int _PyUnicode_IsTitlecase(Py_UCS4 ch) in _PyUnicode_IsTitlecase() 86 int _PyUnicode_IsXidStart(Py_UCS4 ch) in _PyUnicode_IsXidStart() 96 int _PyUnicode_IsXidContinue(Py_UCS4 ch) in _PyUnicode_IsXidContinue() 106 int _PyUnicode_ToDecimalDigit(Py_UCS4 ch) in _PyUnicode_ToDecimalDigit() 113 int _PyUnicode_IsDecimalDigit(Py_UCS4 ch) in _PyUnicode_IsDecimalDigit() 123 int _PyUnicode_ToDigit(Py_UCS4 ch) in _PyUnicode_ToDigit() 130 int _PyUnicode_IsDigit(Py_UCS4 ch) in _PyUnicode_IsDigit() 140 int _PyUnicode_IsNumeric(Py_UCS4 ch) in _PyUnicode_IsNumeric() [all …]
|
D | unicodetype_db.h | 504 const Py_UCS4 _PyUnicode_ExtendedCase[] = { 4016 double _PyUnicode_ToNumeric(Py_UCS4 ch) in _PyUnicode_ToNumeric() 5741 int _PyUnicode_IsWhitespace(const Py_UCS4 ch) in _PyUnicode_IsWhitespace() 5782 int _PyUnicode_IsLinebreak(const Py_UCS4 ch) in _PyUnicode_IsLinebreak()
|
D | unicodeobject.c | 208 _PyUnicodeWriter_WriteCharInline(_PyUnicodeWriter *writer, Py_UCS4 ch); 259 _PyUnicode_FromUCS4(const Py_UCS4 *s, Py_ssize_t size); 440 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency() 442 Py_UCS4 ch; in _PyUnicode_CheckConsistency() 487 if ((Py_UCS4)ch < 256) { in unicode_result_wchar() 525 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_result_ready() 579 Py_UCS4 ch; in backslashreplace() 646 Py_UCS4 ch; in xmlcharrefreplace() 730 Py_UCS4 ch; \ in make_bloom_mask() 751 BLOOM_UPDATE(Py_UCS4, mask, ptr, len); in make_bloom_mask() [all …]
|
/external/python/cpython3/Include/ |
D | unicodeobject.h | 116 typedef uint32_t Py_UCS4; typedef 172 (((((Py_UCS4)(high) & 0x03FF) << 10) | \ 173 ((Py_UCS4)(low) & 0x03FF)) + 0x10000) 358 Py_UCS4 *ucs4; 453 #define PyUnicode_4BYTE_DATA(op) ((Py_UCS4*)PyUnicode_DATA(op)) 498 ((Py_UCS4 *)(data))[(index)] = (Py_UCS4)(value); \ 506 ((Py_UCS4) \ 511 ((const Py_UCS4 *)(data))[(index)] \ 522 (Py_UCS4) \ 527 ((const Py_UCS4 *)(PyUnicode_DATA((unicode))))[(index)] \ [all …]
|
D | ucnhash.h | 22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen, 27 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code,
|
/external/python/cpython3/Modules/ |
D | unicodedata.c | 56 _getrecord_ex(Py_UCS4 code) in _getrecord_ex() 73 const change_record* (*getrecord)(Py_UCS4); 74 Py_UCS4 (*normalization)(Py_UCS4); 91 new_previous_version(const char*name, const change_record* (*getrecord)(Py_UCS4), in new_previous_version() argument 92 Py_UCS4 (*normalization)(Py_UCS4)) in new_previous_version() argument 129 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_decimal_impl() 180 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_digit_impl() 217 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_numeric_impl() 262 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_category_impl() 289 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_bidirectional_impl() [all …]
|
D | unicodedata_db.h | 7356 static const change_record* get_change_3_2_0(Py_UCS4 n) in get_change_3_2_0() 7367 static Py_UCS4 normalization_3_2_0(Py_UCS4 n) in normalization_3_2_0()
|
D | _csv.c | 78 Py_UCS4 delimiter; /* field separator */ 79 Py_UCS4 quotechar; /* quote character */ 80 Py_UCS4 escapechar; /* escape character */ 99 Py_UCS4 *field; /* temporary buffer */ 117 Py_UCS4 *rec; /* buffer for parser.join */ 152 get_nullchar_as_None(Py_UCS4 c) in get_nullchar_as_None() 234 _set_char(const char *name, Py_UCS4 *target, PyObject *src, Py_UCS4 dflt) in _set_char() 568 self->field = PyMem_New(Py_UCS4, self->field_size); in parse_grow_buff() 571 Py_UCS4 *field = self->field; in parse_grow_buff() 577 self->field = PyMem_Resize(field, Py_UCS4, self->field_size); in parse_grow_buff() [all …]
|
D | _json.c | 125 ascii_escape_unichar(Py_UCS4 c, unsigned char *output, Py_ssize_t chars) in ascii_escape_unichar() 142 Py_UCS4 v = Py_UNICODE_HIGH_SURROGATE(c); in ascii_escape_unichar() 182 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode() 211 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode() 237 Py_UCS4 maxchar; in escape_unicode() 249 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode() 279 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode() 311 Py_UCS4 *output = PyUnicode_4BYTE_DATA(rval); in escape_unicode() 430 Py_UCS4 c = 0; in scanstring_unicode() 495 Py_UCS4 digit = PyUnicode_READ(kind, buf, next); in scanstring_unicode() [all …]
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | _codecs_iso2022.c | 105 typedef Py_UCS4 (*iso2022_decode_func)(const unsigned char *data); 106 typedef DBCHAR (*iso2022_encode_func)(const Py_UCS4 *data, Py_ssize_t *length); 161 Py_UCS4 c = INCHAR1; in ENCODER() 488 Py_UCS4 decoded; in DECODER() 582 static Py_UCS4 585 Py_UCS4 u; in ksx1001_decoder() 593 ksx1001_encoder(const Py_UCS4 *data, Py_ssize_t *length) in ksx1001_encoder() 619 static Py_UCS4 622 Py_UCS4 u; in jisx0208_decoder() 632 jisx0208_encoder(const Py_UCS4 *data, Py_ssize_t *length) in jisx0208_encoder() [all …]
|
D | _codecs_cn.c | 61 Py_UCS4 c = INCHAR1; in ENCODER() 94 Py_UCS4 decoded; in DECODER() 122 Py_UCS4 c = INCHAR1; in ENCODER() 155 Py_UCS4 decoded; in DECODER() 183 Py_UCS4 c = INCHAR1; in ENCODER() 193 Py_UCS4 tc = c - 0x10000; in ENCODER() 225 Py_UCS4 tc; in ENCODER() 263 Py_UCS4 decoded; in DECODER() 277 Py_UCS4 lseq; in DECODER() 288 lseq = ((Py_UCS4)c * 10 + c2) * 1260 + in DECODER() [all …]
|
D | _codecs_jp.c | 23 Py_UCS4 c = INCHAR1; in ENCODER() 70 c1 = (Py_UCS4)(c - 0xe000) / 188; in ENCODER() 71 c2 = (Py_UCS4)(c - 0xe000) % 188; in ENCODER() 88 Py_UCS4 decoded; in DECODER() 154 Py_UCS4 c = INCHAR1; in ENCODER() 183 Py_UCS4 c2 = INCHAR2; in ENCODER() 245 Py_UCS4 code, decoded; in DECODER() 332 Py_UCS4 c = INCHAR1; in ENCODER() 386 Py_UCS4 decoded; in DECODER() 452 Py_UCS4 c = INCHAR1; in ENCODER() [all …]
|
D | _codecs_tw.c | 17 Py_UCS4 c = INCHAR1; in ENCODER() 49 Py_UCS4 decoded; in DECODER() 76 Py_UCS4 c = INCHAR1; in ENCODER() 108 Py_UCS4 decoded; in DECODER()
|
D | _codecs_kr.c | 37 Py_UCS4 c = INCHAR1; in ENCODER() 111 Py_UCS4 decoded; in DECODER() 175 Py_UCS4 c = INCHAR1; in ENCODER() 208 Py_UCS4 decoded; in DECODER() 265 Py_UCS4 c = INCHAR1; in ENCODER() 365 Py_UCS4 decoded; in DECODER()
|
D | _codecs_hk.c | 42 Py_UCS4 c = INCHAR1; in ENCODER() 59 Py_UCS4 c2; in ENCODER() 114 Py_UCS4 decoded; in DECODER()
|
D | cjkcodecs.h | 36 const Py_UCS4 *map; 59 Py_UCS4 uniseq; 143 Py_UCS4 _c1 = (c1); \ 144 Py_UCS4 _c2 = (c2); \ 326 Py_UCS4 value = body << 16 | modifier; in find_pairencmap()
|
/external/python/cpython2/Modules/ |
D | unicodedata.c | 46 _getrecord_ex(Py_UCS4 code) in _getrecord_ex() 63 const change_record* (*getrecord)(Py_UCS4); 64 Py_UCS4 (*normalization)(Py_UCS4); 78 new_previous_version(const char*name, const change_record* (*getrecord)(Py_UCS4), in new_previous_version() argument 79 Py_UCS4 (*normalization)(Py_UCS4)) in new_previous_version() argument 92 static Py_UCS4 getuchar(PyUnicodeObject *obj) in getuchar() 106 return (Py_UCS4)-1; in getuchar() 125 Py_UCS4 c; in unicodedata_decimal() 130 if (c == (Py_UCS4)-1) in unicodedata_decimal() 175 Py_UCS4 c; in unicodedata_digit() [all …]
|
D | unicodedata_db.h | 6180 static const change_record* get_change_3_2_0(Py_UCS4 n) in get_change_3_2_0() 6191 static Py_UCS4 normalization_3_2_0(Py_UCS4 n) in normalization_3_2_0()
|
/external/python/cpython3/Objects/stringlib/ |
D | find_max_char.h | 19 Py_LOCAL_INLINE(Py_UCS4) 59 Py_LOCAL_INLINE(Py_UCS4) 63 const Py_UCS4 mask_limit = MASK_UCS1; in STRINGLIB() 64 const Py_UCS4 max_char_limit = MAX_CHAR_UCS2; in STRINGLIB() 66 const Py_UCS4 mask_limit = MASK_UCS2; in STRINGLIB() 67 const Py_UCS4 max_char_limit = MAX_CHAR_UCS4; in STRINGLIB() 71 Py_UCS4 mask; in STRINGLIB() 75 Py_UCS4 max_char; in STRINGLIB()
|
D | codecs.h | 20 Py_LOCAL_INLINE(Py_UCS4) 25 Py_UCS4 ch; in STRINGLIB() 98 Py_UCS4 ch2; in STRINGLIB() 128 Py_UCS4 ch2, ch3; in STRINGLIB() 178 Py_UCS4 ch2, ch3, ch4; in STRINGLIB() 295 Py_UCS4 ch = data[i++]; in STRINGLIB() 492 Py_LOCAL_INLINE(Py_UCS4) 497 Py_UCS4 ch; in STRINGLIB() 511 Py_UCS4 ch2; in STRINGLIB() 646 Py_UCS4 ch = *in++; in STRINGLIB() [all …]
|
D | unicode_format.h | 214 Py_UCS4 c; in _FieldNameIterator_attr() 242 Py_UCS4 c; in _FieldNameIterator_item() 323 Py_UCS4 c; in field_name_split() 546 int *format_spec_needs_expanding, Py_UCS4 *conversion) in parse_field() 552 Py_UCS4 c = 0; in parse_field() 668 SubString *format_spec, Py_UCS4 *conversion, in MarkupIterator_next() 672 Py_UCS4 c = 0; in MarkupIterator_next() 756 do_conversion(PyObject *obj, Py_UCS4 conversion) in do_conversion() 798 int format_spec_needs_expanding, Py_UCS4 conversion, in output_markup() 869 Py_UCS4 conversion; in do_markup() [all …]
|
D | replace.h | 9 Py_UCS4 u1, Py_UCS4 u2, Py_ssize_t maxcount) in STRINGLIB()
|
/external/python/cpython3/Python/ |
D | formatter_unicode.c | 12 unknown_presentation_type(Py_UCS4 presentation_type, in unknown_presentation_type() 31 invalid_comma_type(Py_UCS4 presentation_type) in invalid_comma_type() 95 is_alignment_token(Py_UCS4 c) in is_alignment_token() 107 is_sign_element(Py_UCS4 c) in is_sign_element() 127 Py_UCS4 fill_char; 128 Py_UCS4 align; 130 Py_UCS4 sign; 134 Py_UCS4 type; 328 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() 365 Py_UCS4 fill_char, Py_ssize_t n_lpadding, in fill_padding() [all …]
|
/external/python/cpython3/Modules/_io/ |
D | stringio.c | 22 Py_UCS4 *buf; 79 Py_UCS4 *new_buf = NULL; in resize_buffer() 107 if (alloc > PY_SIZE_MAX / sizeof(Py_UCS4)) in resize_buffer() 109 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer() 244 (self->pos - self->string_size) * sizeof(Py_UCS4)); in write_str() 318 Py_UCS4 *output; in _io_StringIO_read_impl() 363 Py_UCS4 *start, *end, old_char; in _stringio_readline() 671 self->buf = (Py_UCS4 *)PyMem_Malloc(0); in stringio_new() 923 Py_UCS4 *buf; in stringio_setstate() 936 memcpy(self->buf, buf, bufsize * sizeof(Py_UCS4)); in stringio_setstate()
|
/external/python/cpython2/Include/ |
D | ucnhash.h | 22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen); 26 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
|