Lines Matching refs:Py_UCS1
228 Py_UCS1 ch = (unsigned char)value; \
229 Py_UCS1 *to = (Py_UCS1 *)data + start; \
303 _PyUnicode_FromUCS1(const Py_UCS1 *s, Py_ssize_t size);
795 BLOOM_UPDATE(Py_UCS1, mask, ptr, len); in make_bloom_mask()
879 if ((Py_UCS1) ch != ch) in findchar()
882 return ucs1lib_find_char((Py_UCS1 *) s, size, (Py_UCS1) ch); in findchar()
884 return ucs1lib_rfind_char((Py_UCS1 *) s, size, (Py_UCS1) ch); in findchar()
913 Py_UCS1 *data = PyUnicode_1BYTE_DATA(unicode); in unicode_fill_invalid()
1475 (Py_UCS1*)from_data + how_many); in _copy_characters()
1487 Py_UCS1, Py_UCS2, in _copy_characters()
1497 Py_UCS1, Py_UCS4, in _copy_characters()
1521 Py_UCS2, Py_UCS1, in _copy_characters()
1531 Py_UCS4, Py_UCS1, in _copy_characters()
1956 (const Py_UCS1*)str, in unicode_write_cstr()
1957 (const Py_UCS1*)str + len); in unicode_write_cstr()
2204 _PyUnicode_FromUCS1(const Py_UCS1* u, Py_ssize_t size) in _PyUnicode_FromUCS1()
2244 Py_UCS2, Py_UCS1, u, u + size, PyUnicode_1BYTE_DATA(res)); in _PyUnicode_FromUCS2()
2267 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS1, u, u + size, in _PyUnicode_FromUCS4()
2354 const Py_UCS1 *u = PyUnicode_1BYTE_DATA(unicode); in unicode_adjust_maxchar()
2431 Py_UCS1, Py_UCS2, in _PyUnicode_AsKind()
2450 Py_UCS1, Py_UCS4, in _PyUnicode_AsKind()
2495 Py_UCS1 *start = (Py_UCS1 *) data; in as_ucs4()
2496 _PyUnicode_CONVERT_BYTES(Py_UCS1, Py_UCS4, start, start + len, target); in as_ucs4()
4761 ascii_decode(const char *start, const char *end, Py_UCS1 *dest) in ascii_decode()
4781 Py_UCS1 * q = dest; in ascii_decode()
5442 ucs1lib_utf32_encode((const Py_UCS1 *)data, len, &out, native_ordering); in _PyUnicode_EncodeUTF32()
5639 (Py_UCS1*)writer.data, &writer.pos, in PyUnicode_DecodeUTF16Stateful()
5643 (Py_UCS1*)writer.data, &writer.pos, in PyUnicode_DecodeUTF16Stateful()
5784 ucs1lib_utf16_encode((const Py_UCS1 *)data, len, &out, native_ordering); in _PyUnicode_EncodeUTF16()
6967 outpos = ascii_decode(s, e, (Py_UCS1 *)data); in PyUnicode_DecodeASCII()
7829 Py_UCS1 *mapdata_ucs1 = (Py_UCS1 *)mapdata; in charmap_decode_string()
7830 Py_UCS1 *outdata = (Py_UCS1 *)writer->data; in charmap_decode_string()
7841 outdata = (Py_UCS1 *)writer->data; in charmap_decode_string()
7855 Py_UCS1 *outdata = (Py_UCS1 *)writer->data; in charmap_decode_string()
8820 unicode_fast_translate_lookup(PyObject *mapping, Py_UCS1 ch, in unicode_fast_translate_lookup()
8821 Py_UCS1 *translate) in unicode_fast_translate_lookup()
8848 translate[ch] = (Py_UCS1)replace; in unicode_fast_translate_lookup()
8863 translate[ch] = (Py_UCS1)replace; in unicode_fast_translate_lookup()
8884 Py_UCS1 ascii_table[128], ch, ch2; in unicode_fast_translate()
8886 Py_UCS1 *in, *end, *out; in unicode_fast_translate()
9096 Py_UCS1 *out = PyUnicode_1BYTE_DATA(result); in _PyUnicode_TransformDecimalAndSpaceToASCII()
9510 ((Py_UCS1*)buf1) + start, end - start, in PyUnicode_Count()
9515 ((Py_UCS1*)buf1) + start, end - start, in PyUnicode_Count()
9876 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS1, tmp, tmpend, outdata); in case_operation()
10439 ucs1lib_replace_1char_inplace((Py_UCS1 *)data + pos, in replace_1char_inplace()
10440 (Py_UCS1 *)data + len, in replace_1char_inplace()
10877 COMPARE(Py_UCS1, Py_UCS2); in unicode_compare()
10880 COMPARE(Py_UCS1, Py_UCS4); in unicode_compare()
10891 COMPARE(Py_UCS2, Py_UCS1); in unicode_compare()
10910 COMPARE(Py_UCS4, Py_UCS1); in unicode_compare()
11441 ((Py_UCS1*)buf1) + start, end - start, in unicode_count()
12376 Py_UCS1 *data = PyUnicode_1BYTE_DATA(self); in do_strip()
12381 Py_UCS1 ch = data[i]; in do_strip()
12392 Py_UCS1 ch = data[j]; in do_strip()
13687 assert(ucs1lib_find_max_char((Py_UCS1*)ascii, (Py_UCS1*)ascii + len) < 128); in _PyUnicodeWriter_WriteASCIIString()
13710 const Py_UCS1 *str = (const Py_UCS1 *)ascii; in _PyUnicodeWriter_WriteASCIIString()
13711 Py_UCS1 *data = writer->data; in _PyUnicodeWriter_WriteASCIIString()
13719 Py_UCS1, Py_UCS2, in _PyUnicodeWriter_WriteASCIIString()
13727 Py_UCS1, Py_UCS4, in _PyUnicodeWriter_WriteASCIIString()
13746 maxchar = ucs1lib_find_max_char((Py_UCS1*)str, (Py_UCS1*)str + len); in _PyUnicodeWriter_WriteLatin1String()