• Home
  • Raw
  • Download

Lines Matching refs:Py_UCS4

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()
802 Py_UCS4 ch; in xmlcharrefreplace()
890 Py_UCS4 ch; \ in make_bloom_mask()
911 BLOOM_UPDATE(Py_UCS4, mask, ptr, len); in make_bloom_mask()
991 Py_ssize_t size, Py_UCS4 ch, in findchar()
1011 return ucs4lib_find_char((const Py_UCS4 *) s, size, ch); in findchar()
1013 return ucs4lib_rfind_char((const Py_UCS4 *) s, size, ch); in findchar()
1404 PyUnicode_New(Py_ssize_t size, Py_UCS4 maxchar) in PyUnicode_New()
1498 ((Py_UCS4*)data)[size] = 0; in PyUnicode_New()
1527 Py_UCS4 *ucs4_out; in unicode_convert_wchar_to_ucs4()
1598 Py_UCS4 to_maxchar = PyUnicode_MAX_CHAR_VALUE(to); in _copy_characters()
1599 Py_UCS4 ch; in _copy_characters()
1614 Py_UCS4 max_char; in _copy_characters()
1638 Py_UCS1, Py_UCS4, in _copy_characters()
1648 Py_UCS2, Py_UCS4, in _copy_characters()
1672 Py_UCS4, Py_UCS1, in _copy_characters()
1682 Py_UCS4, Py_UCS2, in _copy_characters()
1693 const Py_UCS4 to_maxchar = PyUnicode_MAX_CHAR_VALUE(to); in _copy_characters()
1694 Py_UCS4 ch; in _copy_characters()
1779 Py_UCS4 *maxchar, Py_ssize_t *num_surrogates) in find_maxchar_surrogates()
1782 Py_UCS4 ch; in find_maxchar_surrogates()
1821 Py_UCS4 maxchar = 0; in _PyUnicode_Ready()
2005 Py_UCS4 ch = PyUnicode_READ_CHAR(unicode, 0); in unicode_is_singleton()
2112 Py_UCS4 maxchar = ucs1lib_find_max_char( in unicode_write_cstr()
2132 Py_UCS4 *start = (Py_UCS4 *)data + index; in unicode_write_cstr()
2133 Py_UCS4 *ucs4 = start; in unicode_write_cstr()
2136 *ucs4 = (Py_UCS4)*str; in unicode_write_cstr()
2171 unicode_char(Py_UCS4 ch) in unicode_char()
2222 Py_UCS4 maxchar = 0; in PyUnicode_FromWideChar()
2257 if (size == 1 && (Py_UCS4)*u < 256) in PyUnicode_FromWideChar()
2433 static Py_UCS4
2498 _PyUnicode_FromUCS4(const Py_UCS4 *u, Py_ssize_t size) in _PyUnicode_FromUCS4()
2501 Py_UCS4 max_char; in _PyUnicode_FromUCS4()
2514 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS1, u, u + size, in _PyUnicode_FromUCS4()
2517 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, u, u + size, in _PyUnicode_FromUCS4()
2520 memcpy(PyUnicode_4BYTE_DATA(res), u, sizeof(Py_UCS4)*size); in _PyUnicode_FromUCS4()
2545 Py_UCS4
2588 Py_UCS4 max_char; in unicode_adjust_maxchar()
2613 const Py_UCS4 *u = PyUnicode_4BYTE_DATA(unicode); in unicode_adjust_maxchar()
2676 result = PyMem_New(Py_UCS4, len); in unicode_askind()
2681 Py_UCS2, Py_UCS4, in unicode_askind()
2689 Py_UCS1, Py_UCS4, in unicode_askind()
2701 static Py_UCS4*
2702 as_ucs4(PyObject *string, Py_UCS4 *target, Py_ssize_t targetsize, in as_ucs4()
2717 target = PyMem_New(Py_UCS4, targetlen); in as_ucs4()
2734 _PyUnicode_CONVERT_BYTES(Py_UCS1, Py_UCS4, start, start + len, target); in as_ucs4()
2738 _PyUnicode_CONVERT_BYTES(Py_UCS2, Py_UCS4, start, start + len, target); in as_ucs4()
2741 memcpy(target, data, len * sizeof(Py_UCS4)); in as_ucs4()
2751 Py_UCS4*
2752 PyUnicode_AsUCS4(PyObject *string, Py_UCS4 *target, Py_ssize_t targetsize, in PyUnicode_AsUCS4()
2762 Py_UCS4*
2778 Py_UCS4 maxchar; in unicode_fromformat_write_str()
2991 Py_UCS4 fillchar; in unicode_fromformat_arg()
3229 const Py_UCS4 *s = PyUnicode_4BYTE_DATA(unicode); in unicode_get_widechar_size()
3230 const Py_UCS4 *end = s + res; in unicode_get_widechar_size()
3276 const Py_UCS4 *s = PyUnicode_4BYTE_DATA(unicode); in unicode_copy_as_widechar()
3278 Py_UCS4 ch = *s; in unicode_copy_as_widechar()
3472 return unicode_char((Py_UCS4)ordinal); in PyUnicode_FromOrdinal()
4359 Py_UCS4
4367 return (Py_UCS4)-1; in PyUnicode_ReadChar()
4370 return (Py_UCS4)-1; in PyUnicode_ReadChar()
4374 return (Py_UCS4)-1; in PyUnicode_ReadChar()
4382 PyUnicode_WriteChar(PyObject *unicode, Py_ssize_t index, Py_UCS4 ch) in PyUnicode_WriteChar()
4784 Py_UCS4 surrogate = 0; in PyUnicode_DecodeUTF7Stateful()
4802 Py_UCS4 ch; in PyUnicode_DecodeUTF7Stateful()
4813 Py_UCS4 outCh = (Py_UCS4)(base64buffer >> (base64bits-16)); in PyUnicode_DecodeUTF7Stateful()
4820 Py_UCS4 ch2 = Py_UNICODE_JOIN_SURROGATES(surrogate, outCh); in PyUnicode_DecodeUTF7Stateful()
5001 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_EncodeUTF7()
5223 Py_UCS4 ch; in unicode_decode_utf8()
5292 ch = (Py_UCS4)(unsigned char)(starts[i]); in unicode_decode_utf8()
5389 Py_UCS4 ch; in _Py_DecodeUTF8Ex()
5391 ch = ucs4lib_utf8_decode(&s, e, (Py_UCS4 *)unicode, &outpos); in _Py_DecodeUTF8Ex()
5531 Py_UCS4 ch = text[i]; in _Py_EncodeUTF8Ex()
5786 Py_UCS4 bom = ((unsigned int)q[3] << 24) | (q[2] << 16) | (q[1] << 8) | q[0]; in PyUnicode_DecodeUTF32Stateful()
5818 Py_UCS4 ch = 0; in PyUnicode_DecodeUTF32Stateful()
5819 Py_UCS4 maxch = PyUnicode_MAX_CHAR_VALUE(writer.buffer); in PyUnicode_DecodeUTF32Stateful()
5970 pos += ucs4lib_utf32_encode((const Py_UCS4 *)data + pos, len - pos, in _PyUnicode_EncodeUTF32()
6111 const Py_UCS4 bom = (q[1] << 8) | q[0]; in PyUnicode_DecodeUTF16Stateful()
6147 Py_UCS4 ch = 0; in PyUnicode_DecodeUTF16Stateful()
6166 (Py_UCS4*)writer.data, &writer.pos, in PyUnicode_DecodeUTF16Stateful()
6270 const Py_UCS4 *in = (const Py_UCS4 *)data; in _PyUnicode_EncodeUTF16()
6271 const Py_UCS4 *end = in + len; in _PyUnicode_EncodeUTF16()
6322 pos += ucs4lib_utf16_encode((const Py_UCS4 *)data + pos, len - pos, in _PyUnicode_EncodeUTF16()
6463 Py_UCS4 ch; in _PyUnicode_DecodeUnicodeEscapeInternal()
6744 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnicode_AsUnicodeEscapeString()
6865 Py_UCS4 ch; in _PyUnicode_DecodeRawUnicodeEscapeStateful()
7019 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in PyUnicode_AsRawUnicodeEscapeString()
7186 const Py_UCS4 limit) in unicode_encode_ucs1()
7219 Py_UCS4 ch = PyUnicode_READ(kind, data, pos); in unicode_encode_ucs1()
8070 Py_UCS4 ch = PyUnicode_READ_CHAR(unicode, pos); in encode_code_page_errors()
8146 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in encode_code_page_errors()
8285 Py_UCS4 x; in charmap_decode_string()
8303 Py_UCS4 maxchar = writer->maxchar; in charmap_decode_string()
8328 Py_UCS4 maxchar = writer->maxchar; in charmap_decode_string()
8446 Py_UCS4 value = PyUnicode_READ_CHAR(item, 0); in charmap_decode_mapping()
8607 Py_UCS4 ch; in PyUnicode_BuildEncodingMap()
8689 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in PyUnicode_BuildEncodingMap()
8706 encoding_map_lookup(Py_UCS4 c, PyObject *mapping) in encoding_map_lookup()
8740 charmapencode_lookup(Py_UCS4 c, PyObject *mapping) in charmapencode_lookup()
8803 charmapencode_output(Py_UCS4 c, PyObject *mapping, in charmapencode_output()
8880 Py_UCS4 ch; in charmap_encoding_error()
8988 Py_UCS4 repch = PyUnicode_READ(kind, data, index); in charmap_encoding_error()
9043 Py_UCS4 ch = PyUnicode_READ(kind, data, inpos); in _PyUnicode_EncodeCharmap()
9188 charmaptranslate_lookup(Py_UCS4 c, PyObject *mapping, PyObject **result) in charmaptranslate_lookup()
9239 charmaptranslate_output(Py_UCS4 ch, PyObject *mapping, in charmaptranslate_output()
9261 long ch = (Py_UCS4)PyLong_AS_LONG(item); in charmaptranslate_output()
9318 Py_UCS4 replace; in unicode_fast_translate_lookup()
9460 Py_UCS4 ch; in _PyUnicode_TranslateCharmap()
9569 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_TransformDecimalAndSpaceToASCII()
9598 Py_UCS4 maxchar; in PyUnicode_TransformDecimalToASCII()
9604 Py_UCS4 ch = s[i]; in PyUnicode_TransformDecimalToASCII()
9621 Py_UCS4 ch = s[i]; in PyUnicode_TransformDecimalToASCII()
9658 Py_UCS4 ch; in PyUnicode_EncodeDecimal()
9737 Py_UCS4 ch = PyUnicode_READ(kind2, buf2, 0); in any_find_slice()
9832 Py_UCS4 *maxchar) in _PyUnicode_InsertThousandsGrouping()
9996 ((const Py_UCS4*)buf1) + start, end - start, in PyUnicode_Count()
10030 PyUnicode_FindChar(PyObject *str, Py_UCS4 ch, in PyUnicode_FindChar()
10150 static Py_UCS4
10155 Py_UCS4 c = 0; /* initialize to prevent gcc warning */ in handle_capital_sigma()
10181 Py_UCS4 c, Py_UCS4 *mapped) in lower_ucs4()
10192 do_capitalize(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) in do_capitalize()
10196 Py_UCS4 c, mapped[3]; in do_capitalize()
10216 do_swapcase(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) { in do_swapcase()
10220 Py_UCS4 c = PyUnicode_READ(kind, data, i), mapped[3]; in do_swapcase()
10241 do_upper_or_lower(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, in do_upper_or_lower()
10242 Py_UCS4 *maxchar, int lower) in do_upper_or_lower()
10247 Py_UCS4 c = PyUnicode_READ(kind, data, i), mapped[3]; in do_upper_or_lower()
10262 do_upper(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) in do_upper()
10268 do_lower(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) in do_lower()
10274 do_casefold(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) in do_casefold()
10279 Py_UCS4 c = PyUnicode_READ(kind, data, i); in do_casefold()
10280 Py_UCS4 mapped[3]; in do_casefold()
10291 do_title(int kind, const void *data, Py_ssize_t length, Py_UCS4 *res, Py_UCS4 *maxchar) in do_title()
10298 const Py_UCS4 c = PyUnicode_READ(kind, data, i); in do_title()
10299 Py_UCS4 mapped[3]; in do_title()
10319 Py_ssize_t (*perform)(int, const void *, Py_ssize_t, Py_UCS4 *, Py_UCS4 *)) in case_operation() argument
10326 Py_UCS4 maxchar = 0, *tmp, *tmpend; in case_operation()
10333 if ((size_t) length > PY_SSIZE_T_MAX / (3 * sizeof(Py_UCS4))) { in case_operation()
10337 tmp = PyMem_Malloc(sizeof(Py_UCS4) * 3 * length); in case_operation()
10349 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS1, tmp, tmpend, outdata); in case_operation()
10352 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, tmp, tmpend, outdata); in case_operation()
10355 memcpy(outdata, tmp, sizeof(Py_UCS4) * newlength); in case_operation()
10397 Py_UCS4 maxchar; in _PyUnicode_JoinArray()
10398 Py_UCS4 item_maxchar; in _PyUnicode_JoinArray()
10563 Py_UCS4 fill_char) in _PyUnicode_FastFill()
10577 Py_UCS4 fill_char) in PyUnicode_Fill()
10614 Py_UCS4 fill) in pad()
10617 Py_UCS4 maxchar; in pad()
10908 Py_UCS4 u1, Py_UCS4 u2, Py_ssize_t maxcount) in replace_1char_inplace()
10925 ucs4lib_replace_1char_inplace((Py_UCS4 *)data + pos, in replace_1char_inplace()
10926 (Py_UCS4 *)data + len, in replace_1char_inplace()
10947 Py_UCS4 maxchar, maxchar_str1, maxchar_str2; in replace()
10977 Py_UCS4 u1, u2; in replace()
11273 Py_UCS4 *fillcharloc = (Py_UCS4 *)addr; in convert_uc()
11305 unicode_center_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_center_impl()
11332 Py_UCS4 c1, c2; \ in unicode_compare()
11372 COMPARE(Py_UCS1, Py_UCS4); in unicode_compare()
11391 COMPARE(Py_UCS2, Py_UCS4); in unicode_compare()
11402 COMPARE(Py_UCS4, Py_UCS1); in unicode_compare()
11405 COMPARE(Py_UCS4, Py_UCS2); in unicode_compare()
11417 COMPARE(Py_UCS4, Py_UCS4); in unicode_compare()
11488 Py_UCS4 chr; in PyUnicode_CompareWithASCIIString()
11706 Py_UCS4 ch = PyUnicode_READ(kind2, buf2, 0); in PyUnicode_Contains()
11743 Py_UCS4 maxchar, maxchar2; in PyUnicode_Concat()
11794 Py_UCS4 maxchar, maxchar2; in PyUnicode_Append()
11953 ((const Py_UCS4*)buf1) + start, end - start, in unicode_count()
12007 Py_UCS4 ch; in unicode_expandtabs_impl()
12118 Py_UCS4 ch; in unicode_getitem()
12249 const Py_UCS4 ch = PyUnicode_READ(kind, data, i); in unicode_islower_impl()
12294 const Py_UCS4 ch = PyUnicode_READ(kind, data, i); in unicode_isupper_impl()
12330 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_istitle_impl()
12342 const Py_UCS4 ch = PyUnicode_READ(kind, data, i); in unicode_istitle_impl()
12395 const Py_UCS4 ch = PyUnicode_READ(kind, data, i); in unicode_isspace_impl()
12467 const Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_isalnum_impl()
12476 const Py_UCS4 ch = PyUnicode_READ(kind, data, i); in unicode_isalnum_impl()
12547 const Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in unicode_isdigit_impl()
12616 Py_UCS4 ch = PyUnicode_READ(kind, data, 0); in _PyUnicode_ScanIdentifier()
12657 Py_UCS4 ch = wstr[i++]; in PyUnicode_IsIdentifier()
12785 unicode_ljust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_ljust_impl()
12847 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in _PyUnicode_XStrip()
12860 Py_UCS4 ch = PyUnicode_READ(kind, data, j); in _PyUnicode_XStrip()
12953 Py_UCS4 ch = PyUnicode_READ(kind, data, i); in do_strip()
12964 Py_UCS4 ch = PyUnicode_READ(kind, data, j); in do_strip()
13082 Py_UCS4 fill_char = PyUnicode_READ(kind, PyUnicode_DATA(str), 0); in unicode_repeat()
13092 Py_UCS4 *ucs4 = PyUnicode_4BYTE_DATA(u); in unicode_repeat()
13215 Py_UCS4 max, quote; in unicode_repr()
13233 Py_UCS4 ch = PyUnicode_READ(ikind, idata, i); in unicode_repr()
13292 Py_UCS4 ch = PyUnicode_READ(ikind, idata, i); in unicode_repr()
13456 unicode_rjust_impl(PyObject *self, Py_ssize_t width, Py_UCS4 fillchar) in unicode_rjust_impl()
13911 Py_UCS4 chr; in unicode_zfill_impl()
14103 Py_ssize_t length, Py_UCS4 maxchar) in _PyUnicodeWriter_PrepareInternal()
14182 Py_UCS4 maxchar; in _PyUnicodeWriter_PrepareKindInternal()
14200 _PyUnicodeWriter_WriteCharInline(_PyUnicodeWriter *writer, Py_UCS4 ch) in _PyUnicodeWriter_WriteCharInline()
14211 _PyUnicodeWriter_WriteChar(_PyUnicodeWriter *writer, Py_UCS4 ch) in _PyUnicodeWriter_WriteChar()
14219 Py_UCS4 maxchar; in _PyUnicodeWriter_WriteStr()
14251 Py_UCS4 maxchar; in _PyUnicodeWriter_WriteSubstring()
14329 Py_UCS1, Py_UCS4, in _PyUnicodeWriter_WriteASCIIString()
14331 (Py_UCS4 *)writer->data + writer->pos); in _PyUnicodeWriter_WriteASCIIString()
14346 Py_UCS4 maxchar; in _PyUnicodeWriter_WriteLatin1String()
14588 Py_UCS4 ch, max_char, kind_limit; in unicode_subscript()
14629 Py_UCS4 ch = PyUnicode_READ(src_kind, src_data, cur); in unicode_subscript()
14664 Py_UCS4 ch;
14978 static Py_UCS4
14995 return (Py_UCS4) -1; in formatchar()
15002 return (Py_UCS4) -1; in formatchar()
15005 return (Py_UCS4) x; in formatchar()
15011 return (Py_UCS4) -1; in formatchar()
15284 Py_UCS4 ch = formatchar(v); in unicode_format_arg_format()
15285 if (ch == (Py_UCS4) -1) in unicode_format_arg_format()
15321 Py_UCS4 signchar; in unicode_format_arg_output()
15323 Py_UCS4 maxchar; in unicode_format_arg_output()
15326 Py_UCS4 fill; in unicode_format_arg_output()
15359 Py_UCS4 ch = PyUnicode_READ(kind, pbuf, pindex); in unicode_format_arg_output()
15388 Py_UCS4 strmaxchar = _PyUnicode_FindMaxChar(str, 0, pindex+len); in unicode_format_arg_output()
16021 Py_UCS4 chr = PyUnicode_READ(kind, data, it->it_index); in unicodeiter_next()