Lines Matching full:unicode
8 Unicode implementation based on original code by Fredrik Lundh,
10 Unicode Integration Proposal. (See
11 http://www.egenix.com/files/python/unicode-proposal.txt).
19 * Yet another Unicode string type for Python. This type supports the
31 * This Unicode String Type is
62 /* --- Internal Unicode Format -------------------------------------------- */
64 /* Python 3.x requires unicode */
74 Otherwise, Unicode strings are stored as UCS-2 (with limited support
101 unicode representations. */
120 /* This Unicode character will be used as replacement character during
122 Unicode character U+FFFD is the official REPLACEMENT CHARACTER in
123 Unicode 3.0. */
155 PyObject *unicode,
163 PyAPI_FUNC(Py_UCS4*) PyUnicode_AsUCS4Copy(PyObject *unicode);
167 /* Get the length of the Unicode object. */
170 PyObject *unicode
178 PyObject *unicode /* Unicode object */
185 PyObject *unicode,
195 PyObject *unicode,
201 /* Resize a Unicode object. The length is the number of characters, except
205 *unicode is modified to point to the new (resized) object and 0
212 is returned and *unicode left untouched.
218 PyObject **unicode, /* Pointer to the Unicode object */
222 /* Decode obj to a Unicode object.
228 All other objects (including Unicode objects) raise an exception.
241 /* Copy an instance of a Unicode subtype to a new true Unicode object if
242 necessary. If obj is already a true Unicode object (not a subtype), return
280 /* Create a Unicode Object from the wchar_t buffer w of the given
290 /* Copies the Unicode Object contents into the wchar_t buffer w. At
303 PyObject *unicode, /* Unicode object */
308 /* Convert the Unicode object to a wide character string. The output string
317 PyObject *unicode, /* Unicode object */
323 /* --- Unicode ordinals --------------------------------------------------- */
325 /* Create a Unicode Object from the given Unicode code point ordinal.
359 /* Create a Unicode object by decoding the encoded string s of the
369 /* Decode a Unicode object unicode and return the result as Python
377 PyObject *unicode, /* Unicode object */
382 /* Decode a Unicode object unicode and return the result as Unicode
390 PyObject *unicode, /* Unicode object */
395 /* Encodes a Unicode object and returns the result as Python
404 PyObject *unicode, /* Unicode object */
409 /* Encodes a Unicode object and returns the result as Python string
413 PyObject *unicode, /* Unicode object */
418 /* Encodes a Unicode object and returns the result as Unicode
426 PyObject *unicode, /* Unicode object */
468 PyObject *unicode /* Unicode object */
472 Unicode object unicode and the size of the encoded representation
484 PyObject *unicode,
491 the corresponding Unicode object.
536 PyObject *unicode /* Unicode object */
540 the Unicode data.
550 Unicode BOM mark (U+FEFF). In the other two modes, no BOM mark is
558 the corresponding Unicode object.
603 PyObject *unicode /* Unicode object */
606 /* --- Unicode-Escape Codecs ---------------------------------------------- */
609 const char *string, /* Unicode-Escape encoded string */
615 PyObject *unicode /* Unicode object */
618 /* --- Raw-Unicode-Escape Codecs ------------------------------------------ */
621 const char *string, /* Raw-Unicode-Escape encoded string */
627 PyObject *unicode /* Unicode object */
632 Note: Latin-1 corresponds to the first 256 Unicode ordinals. */
641 PyObject *unicode /* Unicode object */
657 PyObject *unicode /* Unicode object */
665 255) to Unicode strings, integers (which are then interpreted as Unicode
670 Encoding mappings must map Unicode ordinal integers to bytes objects,
685 PyObject *unicode, /* Unicode object */
716 PyObject *unicode /* Unicode object */
722 PyObject *unicode, /* Unicode object */
752 /* Encode a Unicode object to the current locale encoding. The encoder is
758 PyObject *unicode,
770 /* ParseTuple converter: decode bytes objects to unicode using
800 /* Encode a Unicode object to Py_FileSystemDefaultEncoding with the
808 PyObject *unicode
813 These are capable of handling Unicode objects and strings on input
815 Unicode objects or integers as appropriate. */
817 /* Concat two strings giving a new Unicode string. */
840 /* Split a string giving a list of Unicode strings.
882 /* Split a string giving a list of Unicode strings.
902 return the resulting Unicode object.
904 The mapping table must map Unicode ordinal integers to Unicode strings,
905 Unicode ordinal integers or None (causing deletion of the character).
920 the resulting Unicode string. */
971 and return the resulting Unicode object. */
990 /* Compare a Unicode object with C string and return -1, 0, 1 for less than,
1020 the resulting Unicode string. */
1030 element has to coerce to a one element Unicode string. -1 is