Home
last modified time | relevance | path

Searched refs:Py_UCS2 (Results 1 – 12 of 12) sorted by relevance

/external/python/cpython3/Objects/stringlib/
Dcodecs.h647 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
710 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
716 Py_UCS2 ch1 = Py_UNICODE_HIGH_SURROGATE(ch); in STRINGLIB()
717 Py_UCS2 ch2 = Py_UNICODE_LOW_SURROGATE(ch); in STRINGLIB()
724 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
Ducs2lib.h11 #define STRINGLIB_CHAR Py_UCS2
/external/python/cpython3/Include/
Dunicodeobject.h113 typedef uint16_t Py_UCS2; typedef
353 Py_UCS2 *ucs2;
452 #define PyUnicode_2BYTE_DATA(op) ((Py_UCS2*)PyUnicode_DATA(op))
493 ((Py_UCS2 *)(data))[(index)] = (Py_UCS2)(value); \
510 ((const Py_UCS2 *)(data))[(index)] : \
526 ((const Py_UCS2 *)(PyUnicode_DATA((unicode))))[(index)] : \
/external/python/cpython3/Modules/
Dunicodename_db.h27929 Py_UCS2 seq[4];
D_json.c311 Py_UCS2 *output = PyUnicode_2BYTE_DATA(rval); in escape_unicode()
D_sre.c242 #define SRE_CHAR Py_UCS2
D_testcapimodule.c97 CHECK_SIZEOF(Py_UCS2, 2); in test_sizeof_c_types()
100 CHECK_SIGNNESS(Py_UCS2, 0); in test_sizeof_c_types()
/external/python/cpython3/Objects/
Dunicodeobject.c235 Py_UCS2 ch = (Py_UCS2)value; \
236 Py_UCS2 *to = (Py_UCS2 *)data + start; \
237 const Py_UCS2 *end = to + length; \
305 _PyUnicode_FromUCS2(const Py_UCS2 *s, Py_ssize_t size);
798 BLOOM_UPDATE(Py_UCS2, mask, ptr, len); in make_bloom_mask()
886 if ((Py_UCS2) ch != ch) in findchar()
889 return ucs2lib_find_char((Py_UCS2 *) s, size, (Py_UCS2) ch); in findchar()
891 return ucs2lib_rfind_char((Py_UCS2 *) s, size, (Py_UCS2) ch); in findchar()
1356 ((Py_UCS2*)data)[size] = 0; in PyUnicode_New()
1487 Py_UCS1, Py_UCS2, in _copy_characters()
[all …]
Dlongobject.c1737 Py_UCS2 *p; in long_to_decimal_string_internal()
1738 WRITE_UNICODE_DIGITS(Py_UCS2); in long_to_decimal_string_internal()
1914 Py_UCS2 *p; in long_format_binary()
1915 WRITE_UNICODE_DIGITS(Py_UCS2); in long_format_binary()
/external/python/cpython3/Python/
Dcodecs.c1333 Py_UCS2 ch[4]; /* decode up to 4 bad bytes. */ in PyCodec_SurrogateEscapeErrors()
/external/python/cpython3/Doc/c-api/
Dunicode.rst45 Py_UCS2
120 Py_UCS2* PyUnicode_2BYTE_DATA(PyObject *o)
/external/python/cpython3/Doc/whatsnew/
D3.3.rst2190 * :c:type:`Py_UCS1`, :c:type:`Py_UCS2`, :c:type:`Py_UCS4` types