• Home
  • Raw
  • Download

Lines Matching refs:Py_UCS2

260         Py_UCS2 ch = (Py_UCS2)value;  in unicode_fill()
261 Py_UCS2 *to = (Py_UCS2 *)data + start; in unicode_fill()
262 const Py_UCS2 *end = to + length; in unicode_fill()
343 _PyUnicode_FromUCS2(const Py_UCS2 *s, Py_ssize_t size);
912 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()
1480 ((Py_UCS2*)data)[size] = 0; in PyUnicode_New()
1612 Py_UCS1, Py_UCS2, in _copy_characters()
1632 Py_UCS2, Py_UCS4, in _copy_characters()
1646 Py_UCS2, Py_UCS1, in _copy_characters()
1666 Py_UCS4, Py_UCS2, in _copy_characters()
1876 _PyUnicode_CONVERT_BYTES(wchar_t, Py_UCS2, in _PyUnicode_Ready()
2099 Py_UCS2 *start = (Py_UCS2 *)data + index; in unicode_write_cstr()
2100 Py_UCS2 *ucs2 = start; in unicode_write_cstr()
2103 *ucs2 = (Py_UCS2)*str; in unicode_write_cstr()
2167 PyUnicode_2BYTE_DATA(unicode)[0] = (Py_UCS2)ch; in unicode_char()
2237 _PyUnicode_CONVERT_BYTES(Py_UNICODE, Py_UCS2, in PyUnicode_FromWideChar()
2371 _PyUnicode_FromUCS2(const Py_UCS2 *u, Py_ssize_t size) in _PyUnicode_FromUCS2()
2374 Py_UCS2 max_char; in _PyUnicode_FromUCS2()
2387 memcpy(PyUnicode_2BYTE_DATA(res), u, sizeof(Py_UCS2)*size); in _PyUnicode_FromUCS2()
2390 Py_UCS2, Py_UCS1, u, u + size, PyUnicode_1BYTE_DATA(res)); in _PyUnicode_FromUCS2()
2416 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, u, u + size, in _PyUnicode_FromUCS4()
2506 const Py_UCS2 *u = PyUnicode_2BYTE_DATA(unicode); in unicode_adjust_maxchar()
2564 result = PyMem_New(Py_UCS2, len); in unicode_askind()
2569 Py_UCS1, Py_UCS2, in unicode_askind()
2580 Py_UCS2, Py_UCS4, in unicode_askind()
2581 (const Py_UCS2 *)data, in unicode_askind()
2582 ((const Py_UCS2 *)data) + len, in unicode_askind()
2636 const Py_UCS2 *start = (const Py_UCS2 *) data; in as_ucs4()
2637 _PyUnicode_CONVERT_BYTES(Py_UCS2, Py_UCS4, start, start + len, target); in as_ucs4()
3162 const Py_UCS2 *s = PyUnicode_2BYTE_DATA(unicode); in unicode_copy_as_widechar()
5195 ch = ucs2lib_utf8_decode(&s, e, (Py_UCS2 *)unicode, &outpos); in _Py_DecodeUTF8Ex()
5767 pos += ucs2lib_utf32_encode((const Py_UCS2 *)data + pos, len - pos, in _PyUnicode_EncodeUTF32()
5963 (Py_UCS2*)writer.data, &writer.pos, in PyUnicode_DecodeUTF16Stateful()
6119 pos += ucs2lib_utf16_encode((const Py_UCS2 *)data + pos, len - pos, in _PyUnicode_EncodeUTF16()
8058 const Py_UCS2 *mapdata_ucs2 = (const Py_UCS2 *)mapdata; in charmap_decode_string()
8074 Py_UCS2 *outdata = (Py_UCS2 *)writer->data; in charmap_decode_string()
9721 ((const Py_UCS2*)buf1) + start, end - start, in PyUnicode_Count()
10083 _PyUnicode_CONVERT_BYTES(Py_UCS4, Py_UCS2, tmp, tmpend, outdata); in case_operation()
10650 ucs2lib_replace_1char_inplace((Py_UCS2 *)data + pos, in replace_1char_inplace()
10651 (Py_UCS2 *)data + len, in replace_1char_inplace()
11103 COMPARE(Py_UCS1, Py_UCS2); in unicode_compare()
11117 COMPARE(Py_UCS2, Py_UCS1); in unicode_compare()
11121 COMPARE(Py_UCS2, Py_UCS2); in unicode_compare()
11125 COMPARE(Py_UCS2, Py_UCS4); in unicode_compare()
11139 COMPARE(Py_UCS4, Py_UCS2); in unicode_compare()
11675 ((const Py_UCS2*)buf1) + start, end - start, in unicode_count()
12816 Py_UCS2 *ucs2 = PyUnicode_2BYTE_DATA(u); in unicode_repeat()
14061 Py_UCS1, Py_UCS2, in _PyUnicodeWriter_WriteASCIIString()
14063 (Py_UCS2 *)writer->data + writer->pos); in _PyUnicodeWriter_WriteASCIIString()
15536 Py_UCS2 linebreak[] = { in _PyUnicode_Init()