Home
last modified time | relevance | path

Searched refs:Py_UCS4 (Results 1 – 25 of 60) sorted by relevance

123

/external/python/cpython3/Objects/
Dunicodectype.c46 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 …]
Dunicodetype_db.h512 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()
Dunicodeobject.c245 unicode_fill(enum PyUnicode_Kind kind, void *data, Py_UCS4 value, in unicode_fill()
268 Py_UCS4 ch = value; in unicode_fill()
269 Py_UCS4 * to = (Py_UCS4 *)data + start; in unicode_fill()
270 const Py_UCS4 *end = to + length; in unicode_fill()
281 _PyUnicodeWriter_WriteCharInline(_PyUnicodeWriter *writer, Py_UCS4 ch);
345 _PyUnicode_FromUCS4(const Py_UCS4 *s, Py_ssize_t size);
596 Py_UCS4 maxchar = 0; in _PyUnicode_CheckConsistency()
598 Py_UCS4 ch; in _PyUnicode_CheckConsistency()
645 if ((Py_UCS4)ch < 256) { in unicode_result_wchar()
684 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_result_ready()
[all …]
/external/python/cpython3/Include/cpython/
Dunicodeobject.h72 (((((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)] \
462 Py_UCS4 maxchar /* maximum code point value in the string */
[all …]
/external/python/cpython3/Modules/
Dunicodedata.c63 _getrecord_ex(Py_UCS4 code) in _getrecord_ex()
80 const change_record* (*getrecord)(Py_UCS4);
81 Py_UCS4 (*normalization)(Py_UCS4);
98 new_previous_version(const char*name, const change_record* (*getrecord)(Py_UCS4), in new_previous_version() argument
99 Py_UCS4 (*normalization)(Py_UCS4)) in new_previous_version() argument
136 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_decimal_impl()
187 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_digit_impl()
224 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_numeric_impl()
269 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_category_impl()
296 Py_UCS4 c = (Py_UCS4)chr; in unicodedata_UCD_bidirectional_impl()
[all …]
Dunicodedata_db.h7743 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.c88 Py_UCS4 delimiter; /* field separator */
89 Py_UCS4 quotechar; /* quote character */
90 Py_UCS4 escapechar; /* escape character */
106 Py_UCS4 *field; /* temporary buffer */
124 Py_UCS4 *rec; /* buffer for parser.join */
159 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()
564 assert((size_t)self->field_size <= PY_SSIZE_T_MAX / sizeof(Py_UCS4)); in parse_grow_buff()
567 Py_UCS4 *field_new = self->field; in parse_grow_buff()
568 PyMem_Resize(field_new, Py_UCS4, field_size_new); in parse_grow_buff()
[all …]
/external/python/cpython3/Modules/cjkcodecs/
D_codecs_iso2022.c105 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.c67 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.c23 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.c17 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.c37 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.c42 Py_UCS4 c = INCHAR1; in ENCODER()
59 Py_UCS4 c2; in ENCODER()
114 Py_UCS4 decoded; in DECODER()
/external/python/cpython3/Objects/stringlib/
Dfind_max_char.h19 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()
Dcodecs.h22 Py_LOCAL_INLINE(Py_UCS4)
27 Py_UCS4 ch; in STRINGLIB()
100 Py_UCS4 ch2; in STRINGLIB()
130 Py_UCS4 ch2, ch3; in STRINGLIB()
180 Py_UCS4 ch2, ch3, ch4; in STRINGLIB()
297 Py_UCS4 ch = data[i++]; in STRINGLIB()
493 Py_LOCAL_INLINE(Py_UCS4)
498 Py_UCS4 ch; in STRINGLIB()
512 Py_UCS4 ch2; in STRINGLIB()
647 Py_UCS4 ch = *in++; in STRINGLIB()
[all …]
Dreplace.h9 Py_UCS4 u1, Py_UCS4 u2, Py_ssize_t maxcount) in STRINGLIB()
Dunicode_format.h212 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 …]
/external/python/cpython2/Modules/
Dunicodedata.c46 _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 …]
Dunicodedata_db.h6180 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/Python/
Dformatter_unicode.c13 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 …]
/external/python/cpython3/Include/
Dunicodeobject.h102 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
934 Py_UCS4 ch,
Ducnhash.h22 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/cpython2/Include/
Ducnhash.h22 int (*getname)(PyObject *self, Py_UCS4 code, char* buffer, int buflen);
26 int (*getcode)(PyObject *self, const char* name, int namelen, Py_UCS4* code);
/external/python/cpython3/Modules/_io/
Dstringio.c23 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()
/external/python/cffi/c/
Dwchar_helper_3.h37 Py_UCS4 *data; in _my_PyUnicode_FromChar16()
99 Py_UCS4 *data = PyUnicode_4BYTE_DATA(unicode); in _my_PyUnicode_SizeAsChar16()
146 if (PyUnicode_AsUCS4(unicode, (Py_UCS4 *)result, resultlen, 0) == NULL) in _my_PyUnicode_AsChar32()

123