• Home
  • Raw
  • Download

Lines Matching refs:Py_UCS2

279         Py_UCS2 ch = (Py_UCS2)value;  in unicode_fill()
280 Py_UCS2 *to = (Py_UCS2 *)data + start; in unicode_fill()
281 const Py_UCS2 *end = to + length; in unicode_fill()
351 _PyUnicode_FromUCS2(const Py_UCS2 *s, Py_ssize_t size);
908 BLOOM_UPDATE(Py_UCS2, mask, ptr, len); in make_bloom_mask()
1003 if ((Py_UCS2) ch != ch) in findchar()
1006 return ucs2lib_find_char((const Py_UCS2 *) s, size, (Py_UCS2) ch); in findchar()
1008 return ucs2lib_rfind_char((const Py_UCS2 *) s, size, (Py_UCS2) ch); in findchar()
1496 ((Py_UCS2*)data)[size] = 0; in PyUnicode_New()
1628 Py_UCS1, Py_UCS2, in _copy_characters()
1648 Py_UCS2, Py_UCS4, in _copy_characters()
1662 Py_UCS2, Py_UCS1, in _copy_characters()
1682 Py_UCS4, Py_UCS2, in _copy_characters()
1892 _PyUnicode_CONVERT_BYTES(wchar_t, Py_UCS2, in _PyUnicode_Ready()
2122 Py_UCS2 *start = (Py_UCS2 *)data + index; in unicode_write_cstr()
2123 Py_UCS2 *ucs2 = start; in unicode_write_cstr()
2126 *ucs2 = (Py_UCS2)*str; in unicode_write_cstr()
2187 PyUnicode_2BYTE_DATA(unicode)[0] = (Py_UCS2)ch; in unicode_char()
2279 _PyUnicode_CONVERT_BYTES(Py_UNICODE, Py_UCS2, in PyUnicode_FromWideChar()
2472 _PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size) in _PyUnicode_FromUCS2()
2475 Py_UCS2 max_char; in _PyUnicode_FromUCS2()
2488 memcpy(PyUnicode_2BYTE_DATA(res), u, sizeof(Py_UCS2)*size); in _PyUnicode_FromUCS2()
2491 Py_UCS2, Py_UCS1, u, u + size, PyUnicode_1BYTE_DATA(res)); in _PyUnicode_FromUCS2()
2517 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, u, u + size, in _PyUnicode_FromUCS4()
2607 const Py_UCS2 *u = PyUnicode_2BYTE_DATA(unicode); in unicode_adjust_maxchar()
2665 result = PyMem_New(Py_UCS2, len); in unicode_askind()
2670 Py_UCS1, Py_UCS2, in unicode_askind()
2681 Py_UCS2, Py_UCS4, in unicode_askind()
2682 (const Py_UCS2 *)data, in unicode_askind()
2683 ((const Py_UCS2 *)data) + len, in unicode_askind()
2737 const Py_UCS2 *start = (const Py_UCS2 *) data; in as_ucs4()
2738 _PyUnicode_CONVERT_BYTES(Py_UCS2, Py_UCS4, start, start + len, target); in as_ucs4()
3270 const Py_UCS2 *s = PyUnicode_2BYTE_DATA(unicode); in unicode_copy_as_widechar()
5393 ch = ucs2lib_utf8_decode(&s, e, (Py_UCS2 *)unicode, &outpos); in _Py_DecodeUTF8Ex()
5965 pos += ucs2lib_utf32_encode((const Py_UCS2 *)data + pos, len - pos, in _PyUnicode_EncodeUTF32()
6161 (Py_UCS2*)writer.data, &writer.pos, in PyUnicode_DecodeUTF16Stateful()
6317 pos += ucs2lib_utf16_encode((const Py_UCS2 *)data + pos, len - pos, in _PyUnicode_EncodeUTF16()
8325 const Py_UCS2 *mapdata_ucs2 = (const Py_UCS2 *)mapdata; in charmap_decode_string()
8341 Py_UCS2 *outdata = (Py_UCS2 *)writer->data; in charmap_decode_string()
9990 ((const Py_UCS2*)buf1) + start, end - start, in PyUnicode_Count()
10352 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, tmp, tmpend, outdata); in case_operation()
10919 ucs2lib_replace_1char_inplace((Py_UCS2 *)data + pos, in replace_1char_inplace()
10920 (Py_UCS2 *)data + len, in replace_1char_inplace()
11369 COMPARE(Py_UCS1, Py_UCS2); in unicode_compare()
11383 COMPARE(Py_UCS2, Py_UCS1); in unicode_compare()
11387 COMPARE(Py_UCS2, Py_UCS2); in unicode_compare()
11391 COMPARE(Py_UCS2, Py_UCS4); in unicode_compare()
11405 COMPARE(Py_UCS4, Py_UCS2); in unicode_compare()
11947 ((const Py_UCS2*)buf1) + start, end - start, in unicode_count()
13088 Py_UCS2 *ucs2 = PyUnicode_2BYTE_DATA(u); in unicode_repeat()
14321 Py_UCS1, Py_UCS2, in _PyUnicodeWriter_WriteASCIIString()
14323 (Py_UCS2 *)writer->data + writer->pos); in _PyUnicodeWriter_WriteASCIIString()
15794 const Py_UCS2 linebreak[] = { in _PyUnicode_Init()