Lines Matching full:unicode
5 /* Py_UNICODE was the native Unicode storage format (code unit) used by
6 Python and represents a single Unicode element in the Unicode type.
12 /* --- Internal Unicode Operations ---------------------------------------- */
66 /* --- Unicode Type ------------------------------------------------------- */
73 /* There are 4 forms of Unicode strings:
187 /* Compact is with respect to the allocation scheme. Compact unicode
230 } data; /* Canonical, smallest-form Unicode buffer */
320 /* Return a void pointer to the raw unicode buffer. */
355 /* Returns the length of the unicode string. The caller has to make sure that
419 static inline Py_UCS4 PyUnicode_READ_CHAR(PyObject *unicode, Py_ssize_t index) in PyUnicode_READ_CHAR() argument
422 assert(PyUnicode_IS_READY(unicode)); in PyUnicode_READ_CHAR()
423 kind = PyUnicode_KIND(unicode); in PyUnicode_READ_CHAR()
425 return PyUnicode_1BYTE_DATA(unicode)[index]; in PyUnicode_READ_CHAR()
428 return PyUnicode_2BYTE_DATA(unicode)[index]; in PyUnicode_READ_CHAR()
431 return PyUnicode_4BYTE_DATA(unicode)[index]; in PyUnicode_READ_CHAR()
434 # define PyUnicode_READ_CHAR(unicode, index) \ argument
435 PyUnicode_READ_CHAR(_PyObject_CAST(unicode), (index))
469 /* With PEP 393, this is the recommended way to allocate a new unicode object.
478 wstr/Py_UNICODE representation. This function is used to convert Unicode
485 PyObject *unicode /* Unicode object */
503 /* Get a copy of a Unicode string. */
505 PyObject *unicode
508 /* Copy character from one unicode object into another, this function performs
546 unicode[start:start+length].
554 PyObject *unicode,
563 PyObject *unicode,
582 /* Compute the maximum character of the substring unicode[start:end].
585 PyObject *unicode,
591 /* Create a Unicode Object from the Py_UNICODE buffer u of the given
596 that modifying the Unicode object contents after construction is
601 const Py_UNICODE *u, /* Unicode buffer */
605 /* Return a read-only pointer to the Unicode object's internal
610 PyObject *unicode /* Unicode object */
616 PyObject *unicode /* Unicode object */
619 /* Return a read-only pointer to the Unicode object's internal
625 PyObject *unicode, /* Unicode object */
740 /* Initialize a Unicode writer.
783 /* Append a Unicode character.
790 /* Append a Unicode string.
794 PyObject *str /* Unicode string */
797 /* Append a substring of a Unicode string.
801 PyObject *str, /* Unicode string */
822 /* Get the value of the writer as a Unicode string. Clear the
845 Unicode object unicode.
857 PyAPI_FUNC(const char *) PyUnicode_AsUTF8(PyObject *unicode);
864 PyObject *unicode, /* Unicode object */
873 PyObject *unicode,
879 PyObject *object, /* Unicode object */
887 the Unicode data.
897 Unicode BOM mark (U+FEFF). In the other two modes, no BOM mark is
901 PyObject* unicode, /* Unicode object */
906 /* --- Unicode-Escape Codecs ---------------------------------------------- */
910 const char *string, /* Unicode-Escape encoded string */
918 const char *string, /* Unicode-Escape encoded string */
927 /* --- Raw-Unicode-Escape Codecs ---------------------------------------------- */
931 const char *string, /* Unicode-Escape encoded string */
940 PyObject* unicode,
946 PyObject* unicode,
951 /* Translate an Unicode object by applying a character mapping table to
952 it and return the resulting Unicode object.
954 The mapping table must map Unicode ordinal integers to Unicode strings,
955 Unicode ordinal integers or None (causing deletion of the character).
962 PyObject *unicode, /* Unicode object */
969 /* Coverts a Unicode object holding a decimal value to an ASCII string
977 PyObject *unicode /* Unicode object */
988 /* Test whether a unicode is equal to ASCII identifier. Return 1 if true,
996 /* Test whether a unicode is equal to ASCII string. Return 1 if true,
1004 /* Externally visible for str.strip(unicode) */
1039 Py_UCS4 ch /* Unicode character */
1043 Py_UCS4 ch /* Unicode character */
1047 Py_UCS4 ch /* Unicode character */
1051 Py_UCS4 ch /* Unicode character */
1055 Py_UCS4 ch /* Unicode character */
1059 const Py_UCS4 ch /* Unicode character */
1063 const Py_UCS4 ch /* Unicode character */
1067 Py_UCS4 ch /* Unicode character */
1071 Py_UCS4 ch /* Unicode character */
1075 Py_UCS4 ch /* Unicode character */
1079 Py_UCS4 ch, /* Unicode character */
1084 Py_UCS4 ch, /* Unicode character */
1089 Py_UCS4 ch, /* Unicode character */
1094 Py_UCS4 ch, /* Unicode character */
1099 Py_UCS4 ch /* Unicode character */
1103 Py_UCS4 ch /* Unicode character */
1107 Py_UCS4 ch /* Unicode character */
1111 Py_UCS4 ch /* Unicode character */
1115 Py_UCS4 ch /* Unicode character */
1119 Py_UCS4 ch /* Unicode character */
1123 Py_UCS4 ch /* Unicode character */
1127 Py_UCS4 ch /* Unicode character */
1131 Py_UCS4 ch /* Unicode character */
1135 Py_UCS4 ch /* Unicode character */
1140 /* Return an interned Unicode object for an Identifier; may fail if there is no memory.*/
1143 /* Fast equality check when the inputs are known to be exact unicode types