/third_party/python/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 | 512 const Py_UCS4 _PyUnicode_ExtendedCase[] = { 4187 double _PyUnicode_ToNumeric(Py_UCS4 ch) in _PyUnicode_ToNumeric() 6208 int _PyUnicode_IsWhitespace(const Py_UCS4 ch) in _PyUnicode_IsWhitespace() 6249 int _PyUnicode_IsLinebreak(const Py_UCS4 ch) in _PyUnicode_IsLinebreak()
|
D | unicodeobject.c | 264 unicode_fill(enum PyUnicode_Kind kind, void *data, Py_UCS4 value, in unicode_fill() 287 Py_UCS4 ch = value; in unicode_fill() 288 Py_UCS4 * to = (Py_UCS4 *)data + start; in unicode_fill() 289 const Py_UCS4 *end = to + length; in unicode_fill() 300 _PyUnicodeWriter_WriteCharInline(_PyUnicodeWriter *writer, Py_UCS4 ch); 353 _PyUnicode_FromUCS4(const Py_UCS4 *s, Py_ssize_t size); 590 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency() 592 Py_UCS4 ch; in _PyUnicode_CheckConsistency() 639 if ((Py_UCS4)ch < 256) { in unicode_result_wchar() 735 Py_UCS4 ch; in backslashreplace() [all …]
|
/third_party/python/Include/cpython/ |
D | unicodeobject.h | 25 ((Py_UCS4)(ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch)) 72 (((((Py_UCS4)(high) & 0x03FF) << 10) | \ 73 ((Py_UCS4)(low) & 0x03FF)) + 0x10000) 242 Py_UCS4 *ucs4; 331 #define PyUnicode_4BYTE_DATA(op) ((Py_UCS4*)PyUnicode_DATA(op)) 376 ((Py_UCS4 *)(data))[(index)] = (Py_UCS4)(value); \ 384 ((Py_UCS4) \ 389 ((const Py_UCS4 *)(data))[(index)] \ 400 (Py_UCS4) \ 405 ((const Py_UCS4 *)(PyUnicode_DATA((unicode))))[(index)] \ [all …]
|
/third_party/python/Modules/ |
D | unicodedata.c | 63 _getrecord_ex(Py_UCS4 code) in _getrecord_ex() 80 const change_record* (*getrecord)(Py_UCS4); 81 Py_UCS4 (*normalization)(Py_UCS4); 101 const char*name, const change_record* (*getrecord)(Py_UCS4), in new_previous_version() argument 102 Py_UCS4 (*normalization)(Py_UCS4)) in new_previous_version() argument 140 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_decimal_impl() 191 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_digit_impl() 228 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_numeric_impl() 273 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_category_impl() 300 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_bidirectional_impl() [all …]
|
D | unicodedata_db.h | 7743 static const change_record* get_change_3_2_0(Py_UCS4 n) in get_change_3_2_0() 7754 static Py_UCS4 normalization_3_2_0(Py_UCS4 n) in normalization_3_2_0()
|
D | _csv.c | 97 Py_UCS4 delimiter; /* field separator */ 98 Py_UCS4 quotechar; /* quote character */ 99 Py_UCS4 escapechar; /* escape character */ 113 Py_UCS4 *field; /* temporary buffer */ 127 Py_UCS4 *rec; /* buffer for parser.join */ 156 get_nullchar_as_None(Py_UCS4 c) in get_nullchar_as_None() 232 _set_char_or_none(const char *name, Py_UCS4 *target, PyObject *src, Py_UCS4 dflt) in _set_char_or_none() 266 _set_char(const char *name, Py_UCS4 *target, PyObject *src, Py_UCS4 dflt) in _set_char() 636 assert((size_t)self->field_size <= PY_SSIZE_T_MAX / sizeof(Py_UCS4)); in parse_grow_buff() 639 Py_UCS4 *field_new = self->field; in parse_grow_buff() [all …]
|
D | _json.c | 117 ascii_escape_unichar(Py_UCS4 c, unsigned char *output, Py_ssize_t chars) in ascii_escape_unichar() 134 Py_UCS4 v = Py_UNICODE_HIGH_SURROGATE(c); in ascii_escape_unichar() 174 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode() 203 Py_UCS4 c = PyUnicode_READ(kind, input, i); in ascii_escape_unicode() 229 Py_UCS4 maxchar; in escape_unicode() 241 Py_UCS4 c = PyUnicode_READ(kind, input, i); in escape_unicode() 271 Py_UCS4 c = PyUnicode_READ(kind, input, i); \ in escape_unicode() 303 Py_UCS4 *output = PyUnicode_4BYTE_DATA(rval); in escape_unicode() 413 Py_UCS4 c; in scanstring_unicode() 416 Py_UCS4 d = 0; in scanstring_unicode() [all …]
|
/third_party/python/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 | 67 Py_UCS4 c = INCHAR1; in ENCODER() 100 Py_UCS4 decoded; in DECODER() 128 Py_UCS4 c = INCHAR1; in ENCODER() 161 Py_UCS4 decoded; in DECODER() 189 Py_UCS4 c = INCHAR1; in ENCODER() 199 Py_UCS4 tc = c - 0x10000; in ENCODER() 231 Py_UCS4 tc; in ENCODER() 269 Py_UCS4 decoded; in DECODER() 283 Py_UCS4 lseq; in DECODER() 296 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); \ 328 Py_UCS4 value = body << 16 | modifier; in find_pairencmap()
|
/third_party/python/Objects/stringlib/ |
D | find_max_char.h | 19 Py_LOCAL_INLINE(Py_UCS4) 57 Py_LOCAL_INLINE(Py_UCS4) 61 const Py_UCS4 mask_limit = MASK_UCS1; in STRINGLIB() 62 const Py_UCS4 max_char_limit = MAX_CHAR_UCS2; in STRINGLIB() 64 const Py_UCS4 mask_limit = MASK_UCS2; in STRINGLIB() 65 const Py_UCS4 max_char_limit = MAX_CHAR_UCS4; in STRINGLIB() 69 Py_UCS4 mask; in STRINGLIB() 73 Py_UCS4 max_char; in STRINGLIB()
|
D | codecs.h | 22 Py_LOCAL_INLINE(Py_UCS4) 27 Py_UCS4 ch; in STRINGLIB() 99 Py_UCS4 ch2; in STRINGLIB() 129 Py_UCS4 ch2, ch3; in STRINGLIB() 179 Py_UCS4 ch2, ch3, ch4; in STRINGLIB() 296 Py_UCS4 ch = data[i++]; in STRINGLIB() 492 Py_LOCAL_INLINE(Py_UCS4) 497 Py_UCS4 ch; in STRINGLIB() 509 Py_UCS4 ch2; in STRINGLIB() 644 Py_UCS4 ch = *in++; in STRINGLIB() [all …]
|
D | unicode_format.h | 212 Py_UCS4 c; in _FieldNameIterator_attr() 240 Py_UCS4 c; in _FieldNameIterator_item() 321 Py_UCS4 c; in field_name_split() 553 int *format_spec_needs_expanding, Py_UCS4 *conversion) in parse_field() 559 Py_UCS4 c = 0; in parse_field() 675 SubString *format_spec, Py_UCS4 *conversion, in MarkupIterator_next() 679 Py_UCS4 c = 0; in MarkupIterator_next() 763 do_conversion(PyObject *obj, Py_UCS4 conversion) in do_conversion() 805 int format_spec_needs_expanding, Py_UCS4 conversion, in output_markup() 876 Py_UCS4 conversion; in do_markup() [all …]
|
D | replace.h | 9 Py_UCS4 u1, Py_UCS4 u2, Py_ssize_t maxcount) in STRINGLIB()
|
D | localeutil.h | 50 Py_UCS4 *maxchar) in InsertThousandsGrouping_fill() 55 Py_UCS4 maxchar2 = PyUnicode_MAX_CHAR_VALUE(thousands_sep); in InsertThousandsGrouping_fill()
|
/third_party/python/Python/ |
D | formatter_unicode.c | 13 unknown_presentation_type(Py_UCS4 presentation_type, in unknown_presentation_type() 32 invalid_thousands_separator_type(char specifier, Py_UCS4 presentation_type) in invalid_thousands_separator_type() 97 is_alignment_token(Py_UCS4 c) in is_alignment_token() 109 is_sign_element(Py_UCS4 c) in is_sign_element() 129 Py_UCS4 fill_char; 130 Py_UCS4 align; 132 Py_UCS4 sign; 136 Py_UCS4 type; 333 calc_padding(Py_ssize_t nchars, Py_ssize_t width, Py_UCS4 align, in calc_padding() 369 Py_UCS4 fill_char, Py_ssize_t n_lpadding, in fill_padding() [all …]
|
/third_party/python/Include/ |
D | unicodeobject.h | 102 typedef uint32_t Py_UCS4; typedef 125 #define Py_UNICODE_REPLACEMENT_CHARACTER ((Py_UCS4) 0xFFFD) 154 PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4( 156 Py_UCS4* buffer, 163 PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4Copy(PyObject *unicode); 184 PyAPI_FUNC(Py_UCS4) PyUnicode_ReadChar( 197 Py_UCS4 character 954 Py_UCS4 ch,
|
/third_party/python/Modules/_io/ |
D | stringio.c | 23 Py_UCS4 *buf; 80 Py_UCS4 *new_buf = NULL; in resize_buffer() 108 if (alloc > PY_SIZE_MAX / sizeof(Py_UCS4)) in resize_buffer() 110 new_buf = (Py_UCS4 *)PyMem_Realloc(self->buf, alloc * sizeof(Py_UCS4)); in resize_buffer() 245 (self->pos - self->string_size) * sizeof(Py_UCS4)); in write_str() 319 Py_UCS4 *output; in _io_StringIO_read_impl() 349 Py_UCS4 *start, *end, old_char; in _stringio_readline() 628 self->buf = (Py_UCS4 *)PyMem_Malloc(0); in stringio_new() 882 Py_UCS4 *buf; in stringio_setstate() 895 memcpy(self->buf, buf, bufsize * sizeof(Py_UCS4)); in stringio_setstate()
|
/third_party/python/Include/internal/ |
D | pycore_ucnhash.h | 21 int (*getname)(Py_UCS4 code, char* buffer, int buflen, 26 int (*getcode)(const char* name, int namelen, Py_UCS4* code,
|
/third_party/markupsafe/ |
D | _speedups.c | 146 Py_UCS4 *inp = PyUnicode_4BYTE_DATA(in); in escape_unicode_kind4() 147 Py_UCS4 *inp_end = inp + PyUnicode_GET_LENGTH(in); in escape_unicode_kind4() 148 Py_UCS4 *outp; in escape_unicode_kind4()
|