Home
last modified time | relevance | path

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

/external/python/markupsafe/src/markupsafe/
D_speedups.c120 Py_UCS2 *inp = PyUnicode_2BYTE_DATA(in); in escape_unicode_kind2()
121 Py_UCS2 *inp_end = inp + PyUnicode_GET_LENGTH(in); in escape_unicode_kind2()
122 Py_UCS2 *outp; in escape_unicode_kind2()
/external/python/cpython3/Include/cpython/
Dunicodeobject.h241 Py_UCS2 *ucs2;
330 #define PyUnicode_2BYTE_DATA(op) ((Py_UCS2*)PyUnicode_DATA(op))
371 ((Py_UCS2 *)(data))[(index)] = (Py_UCS2)(value); \
388 ((const Py_UCS2 *)(data))[(index)] : \
404 ((const Py_UCS2 *)(PyUnicode_DATA((unicode))))[(index)] : \
/external/python/cpython3/Modules/
Dunicodename_db.h29466 Py_UCS2 seq[4];
D_json.c301 Py_UCS2 *output = PyUnicode_2BYTE_DATA(rval); in escape_unicode()
D_sre.c235 #define SRE_CHAR Py_UCS2
D_testcapimodule.c112 CHECK_SIZEOF(Py_UCS2, 2); in test_sizeof_c_types()
115 CHECK_SIGNNESS(Py_UCS2, 0); in test_sizeof_c_types()
/external/python/cpython3/Objects/stringlib/
Dcodecs.h648 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
711 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
717 Py_UCS2 ch1 = Py_UNICODE_HIGH_SURROGATE(ch); in STRINGLIB()
718 Py_UCS2 ch2 = Py_UNICODE_LOW_SURROGATE(ch); in STRINGLIB()
725 *out++ = SWAB2((Py_UCS2)ch); in STRINGLIB()
Ducs2lib.h11 #define STRINGLIB_CHAR Py_UCS2
/external/python/cpython3/Objects/
Dunicodeobject.c260 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()
[all …]
Dlongobject.c1853 Py_UCS2 *p; in long_to_decimal_string_internal()
1854 WRITE_UNICODE_DIGITS(Py_UCS2); in long_to_decimal_string_internal()
2030 Py_UCS2 *p; in long_format_binary()
2031 WRITE_UNICODE_DIGITS(Py_UCS2); in long_format_binary()
/external/python/cpython3/Include/
Dunicodeobject.h103 typedef uint16_t Py_UCS2; typedef
/external/python/cpython3/Python/
Dcodecs.c730 Py_UCS2 *outp; in PyCodec_ReplaceErrors()
1328 Py_UCS2 ch[4]; /* decode up to 4 bad bytes. */ in PyCodec_SurrogateEscapeErrors()
/external/python/cpython3/Doc/c-api/
Dunicode.rst50 Py_UCS2
128 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