- PyUnicode_Append
alias PyUnicode_Append = PyUnicodeUCS2_Append
alias PyUnicode_Append = PyUnicodeUCS4_Append
Concat two strings and put the result in *pleft
(sets *pleft to NULL on error)
- PyUnicode_AppendAndDel
alias PyUnicode_AppendAndDel = PyUnicodeUCS2_AppendAndDel
alias PyUnicode_AppendAndDel = PyUnicodeUCS4_AppendAndDel
Concat two strings, put the result in *pleft and drop the right object
(sets *pleft to NULL on error)
- PyUnicode_AsASCIIString
alias PyUnicode_AsASCIIString = PyUnicodeUCS2_AsASCIIString
alias PyUnicode_AsASCIIString = PyUnicodeUCS4_AsASCIIString
- PyUnicode_AsCharmapString
alias PyUnicode_AsCharmapString = PyUnicodeUCS2_AsCharmapString
alias PyUnicode_AsCharmapString = PyUnicodeUCS4_AsCharmapString
- PyUnicode_AsDecodedObject
alias PyUnicode_AsDecodedObject = PyUnicodeUCS4_AsDecodedObject
alias PyUnicode_AsDecodedObject = PyUnicodeUCS2_AsDecodedObject
Decode a Unicode object unicode and return the result as Python
Availability: 3.*
object.
- PyUnicode_AsDecodedUnicode
alias PyUnicode_AsDecodedUnicode = PyUnicodeUCS4_AsDecodedUnicode
alias PyUnicode_AsDecodedUnicode = PyUnicodeUCS2_AsDecodedUnicode
Decode a Unicode object unicode and return the result as Unicode
Availability: 3.*
object.
- PyUnicode_AsEncodedObject
alias PyUnicode_AsEncodedObject = PyUnicodeUCS4_AsEncodedObject
alias PyUnicode_AsEncodedObject = PyUnicodeUCS2_AsEncodedObject
Encodes a Unicode object and returns the result as Python object.
- PyUnicode_AsEncodedString
alias PyUnicode_AsEncodedString = PyUnicodeUCS4_AsEncodedString
alias PyUnicode_AsEncodedString = PyUnicodeUCS2_AsEncodedString
Encodes a Unicode object and returns the result as Python string
object.
- PyUnicode_AsEncodedUnicode
alias PyUnicode_AsEncodedUnicode = PyUnicodeUCS4_AsEncodedUnicode
alias PyUnicode_AsEncodedUnicode = PyUnicodeUCS2_AsEncodedUnicode
Encodes a Unicode object and returns the result as Unicode
Availability: >= 3.*
object.
- PyUnicode_AsLatin1String
alias PyUnicode_AsLatin1String = PyUnicodeUCS2_AsLatin1String
alias PyUnicode_AsLatin1String = PyUnicodeUCS4_AsLatin1String
- PyUnicode_AsMBCSString
alias PyUnicode_AsMBCSString = PyUnicodeUCS2_AsMBCSString
alias PyUnicode_AsMBCSString = PyUnicodeUCS4_AsMBCSString
Availability: Windows only
- PyUnicode_AsRawUnicodeEscapeString
alias PyUnicode_AsRawUnicodeEscapeString = PyUnicodeUCS2_AsRawUnicodeEscapeString
alias PyUnicode_AsRawUnicodeEscapeString = PyUnicodeUCS4_AsRawUnicodeEscapeString
- PyUnicode_AsUTF16String
alias PyUnicode_AsUTF16String = PyUnicodeUCS2_AsUTF16String
alias PyUnicode_AsUTF16String = PyUnicodeUCS4_AsUTF16String
Returns a Python string using the UTF-16 encoding in native byte
order. The string always starts with a BOM mark.
- PyUnicode_AsUTF32String
alias PyUnicode_AsUTF32String = PyUnicodeUCS4_AsUTF32String
alias PyUnicode_AsUTF32String = PyUnicodeUCS2_AsUTF32String
Returns a Python string using the UTF-32 encoding in native byte
Availability: >= 2.6
order. The string always starts with a BOM mark.
- PyUnicode_AsUTF8String
alias PyUnicode_AsUTF8String = PyUnicodeUCS2_AsUTF8String
alias PyUnicode_AsUTF8String = PyUnicodeUCS4_AsUTF8String
- PyUnicode_AsUnicode
alias PyUnicode_AsUnicode = PyUnicodeUCS4_AsUnicode
alias PyUnicode_AsUnicode = PyUnicodeUCS2_AsUnicode
Return a read-only pointer to the Unicode object's internal
Py_UNICODE buffer.
- PyUnicode_AsUnicodeEscapeString
alias PyUnicode_AsUnicodeEscapeString = PyUnicodeUCS2_AsUnicodeEscapeString
alias PyUnicode_AsUnicodeEscapeString = PyUnicodeUCS4_AsUnicodeEscapeString
- PyUnicode_AsWideChar
alias PyUnicode_AsWideChar = PyUnicodeUCS4_AsWideChar
alias PyUnicode_AsWideChar = PyUnicodeUCS2_AsWideChar
Copies the Unicode Object contents into the wchar_t buffer w. At
most size wchar_t characters are copied.
- PyUnicode_ClearFreeList
alias PyUnicode_ClearFreeList = PyUnicodeUCS4_ClearFreeList
alias PyUnicode_ClearFreeList = PyUnicodeUCS2_ClearFreeList
- PyUnicode_Compare
alias PyUnicode_Compare = PyUnicodeUCS4_Compare
alias PyUnicode_Compare = PyUnicodeUCS2_Compare
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicode_CompareWithASCIIString
alias PyUnicode_CompareWithASCIIString = PyUnicodeUCS4_CompareWithASCIIString
alias PyUnicode_CompareWithASCIIString = PyUnicodeUCS2_CompareWithASCIIString
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicode_Concat
alias PyUnicode_Concat = PyUnicodeUCS2_Concat
alias PyUnicode_Concat = PyUnicodeUCS4_Concat
Concat two strings giving a new Unicode string.
- PyUnicode_Contains
alias PyUnicode_Contains = PyUnicodeUCS4_Contains
alias PyUnicode_Contains = PyUnicodeUCS2_Contains
Checks whether element is contained in container and return 1/0
accordingly.
- PyUnicode_Count
alias PyUnicode_Count = PyUnicodeUCS2_Count
alias PyUnicode_Count = PyUnicodeUCS4_Count
Count the number of occurrences of substr in str[start:end].
- PyUnicode_Decode
alias PyUnicode_Decode = PyUnicodeUCS4_Decode
alias PyUnicode_Decode = PyUnicodeUCS2_Decode
Create a Unicode object by decoding the encoded string s of the
given size.
- PyUnicode_DecodeASCII
alias PyUnicode_DecodeASCII = PyUnicodeUCS2_DecodeASCII
alias PyUnicode_DecodeASCII = PyUnicodeUCS4_DecodeASCII
- PyUnicode_DecodeCharmap
alias PyUnicode_DecodeCharmap = PyUnicodeUCS2_DecodeCharmap
alias PyUnicode_DecodeCharmap = PyUnicodeUCS4_DecodeCharmap
- PyUnicode_DecodeLatin1
alias PyUnicode_DecodeLatin1 = PyUnicodeUCS2_DecodeLatin1
alias PyUnicode_DecodeLatin1 = PyUnicodeUCS4_DecodeLatin1
- PyUnicode_DecodeMBCS
alias PyUnicode_DecodeMBCS = PyUnicodeUCS2_DecodeMBCS
alias PyUnicode_DecodeMBCS = PyUnicodeUCS4_DecodeMBCS
Availability: Windows only
- PyUnicode_DecodeRawUnicodeEscape
alias PyUnicode_DecodeRawUnicodeEscape = PyUnicodeUCS2_DecodeRawUnicodeEscape
alias PyUnicode_DecodeRawUnicodeEscape = PyUnicodeUCS4_DecodeRawUnicodeEscape
- PyUnicode_DecodeUTF16
alias PyUnicode_DecodeUTF16 = PyUnicodeUCS2_DecodeUTF16
alias PyUnicode_DecodeUTF16 = PyUnicodeUCS4_DecodeUTF16
Decodes length bytes from a UTF-16 encoded buffer string and returns
the corresponding Unicode object.
- PyUnicode_DecodeUTF16Stateful
alias PyUnicode_DecodeUTF16Stateful = PyUnicodeUCS2_DecodeUTF16Stateful
alias PyUnicode_DecodeUTF16Stateful = PyUnicodeUCS4_DecodeUTF16Stateful
- PyUnicode_DecodeUTF32
alias PyUnicode_DecodeUTF32 = PyUnicodeUCS4_DecodeUTF32
alias PyUnicode_DecodeUTF32 = PyUnicodeUCS2_DecodeUTF32
- PyUnicode_DecodeUTF32Stateful
alias PyUnicode_DecodeUTF32Stateful = PyUnicodeUCS4_DecodeUTF32Stateful
alias PyUnicode_DecodeUTF32Stateful = PyUnicodeUCS2_DecodeUTF32Stateful
- PyUnicode_DecodeUTF7
alias PyUnicode_DecodeUTF7 = PyUnicodeUCS4_DecodeUTF7
alias PyUnicode_DecodeUTF7 = PyUnicodeUCS2_DecodeUTF7
- PyUnicode_DecodeUTF7Stateful
alias PyUnicode_DecodeUTF7Stateful = PyUnicodeUCS4_DecodeUTF7Stateful
alias PyUnicode_DecodeUTF7Stateful = PyUnicodeUCS2_DecodeUTF7Stateful
- PyUnicode_DecodeUTF8
alias PyUnicode_DecodeUTF8 = PyUnicodeUCS2_DecodeUTF8
alias PyUnicode_DecodeUTF8 = PyUnicodeUCS4_DecodeUTF8
- PyUnicode_DecodeUTF8Stateful
alias PyUnicode_DecodeUTF8Stateful = PyUnicodeUCS2_DecodeUTF8Stateful
alias PyUnicode_DecodeUTF8Stateful = PyUnicodeUCS4_DecodeUTF8Stateful
- PyUnicode_DecodeUnicodeEscape
alias PyUnicode_DecodeUnicodeEscape = PyUnicodeUCS2_DecodeUnicodeEscape
alias PyUnicode_DecodeUnicodeEscape = PyUnicodeUCS4_DecodeUnicodeEscape
- PyUnicode_Encode
alias PyUnicode_Encode = PyUnicodeUCS4_Encode
alias PyUnicode_Encode = PyUnicodeUCS2_Encode
Encodes a Py_UNICODE buffer of the given size and returns a
Python string object.
- PyUnicode_EncodeASCII
alias PyUnicode_EncodeASCII = PyUnicodeUCS2_EncodeASCII
alias PyUnicode_EncodeASCII = PyUnicodeUCS4_EncodeASCII
- PyUnicode_EncodeCharmap
alias PyUnicode_EncodeCharmap = PyUnicodeUCS2_EncodeCharmap
alias PyUnicode_EncodeCharmap = PyUnicodeUCS4_EncodeCharmap
- PyUnicode_EncodeDecimal
alias PyUnicode_EncodeDecimal = PyUnicodeUCS2_EncodeDecimal
alias PyUnicode_EncodeDecimal = PyUnicodeUCS4_EncodeDecimal
Takes a Unicode string holding a decimal value and writes it into
an output buffer using standard ASCII digit codes.
- PyUnicode_EncodeLatin1
alias PyUnicode_EncodeLatin1 = PyUnicodeUCS2_EncodeLatin1
alias PyUnicode_EncodeLatin1 = PyUnicodeUCS4_EncodeLatin1
- PyUnicode_EncodeMBCS
alias PyUnicode_EncodeMBCS = PyUnicodeUCS2_EncodeMBCS
alias PyUnicode_EncodeMBCS = PyUnicodeUCS4_EncodeMBCS
Availability: Windows only
- PyUnicode_EncodeRawUnicodeEscape
alias PyUnicode_EncodeRawUnicodeEscape = PyUnicodeUCS2_EncodeRawUnicodeEscape
alias PyUnicode_EncodeRawUnicodeEscape = PyUnicodeUCS4_EncodeRawUnicodeEscape
- PyUnicode_EncodeUTF16
alias PyUnicode_EncodeUTF16 = PyUnicodeUCS2_EncodeUTF16
alias PyUnicode_EncodeUTF16 = PyUnicodeUCS4_EncodeUTF16
Returns a Python string object holding the UTF-16 encoded value of
the Unicode data.
- PyUnicode_EncodeUTF32
alias PyUnicode_EncodeUTF32 = PyUnicodeUCS4_EncodeUTF32
alias PyUnicode_EncodeUTF32 = PyUnicodeUCS2_EncodeUTF32
Returns a Python string object holding the UTF-32 encoded value of
the Unicode data.
- PyUnicode_EncodeUTF7
alias PyUnicode_EncodeUTF7 = PyUnicodeUCS2_EncodeUTF7
alias PyUnicode_EncodeUTF7 = PyUnicodeUCS4_EncodeUTF7
- PyUnicode_EncodeUTF8
alias PyUnicode_EncodeUTF8 = PyUnicodeUCS2_EncodeUTF8
alias PyUnicode_EncodeUTF8 = PyUnicodeUCS4_EncodeUTF8
- PyUnicode_EncodeUnicodeEscape
alias PyUnicode_EncodeUnicodeEscape = PyUnicodeUCS2_EncodeUnicodeEscape
alias PyUnicode_EncodeUnicodeEscape = PyUnicodeUCS4_EncodeUnicodeEscape
- PyUnicode_Find
alias PyUnicode_Find = PyUnicodeUCS4_Find
alias PyUnicode_Find = PyUnicodeUCS2_Find
Return the first position of substr in str[start:end] using the
given search direction or -1 if not found. -2 is returned in case
an error occurred and an exception is set.
- PyUnicode_Format
alias PyUnicode_Format = PyUnicodeUCS4_Format
alias PyUnicode_Format = PyUnicodeUCS2_Format
Apply a argument tuple or dictionary to a format string and return
the resulting Unicode string.
- PyUnicode_FromEncodedObject
alias PyUnicode_FromEncodedObject = PyUnicodeUCS4_FromEncodedObject
alias PyUnicode_FromEncodedObject = PyUnicodeUCS2_FromEncodedObject
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicode_FromFormat
alias PyUnicode_FromFormat = PyUnicodeUCS4_FromFormat
alias PyUnicode_FromFormat = PyUnicodeUCS2_FromFormat
- PyUnicode_FromFormatV
alias PyUnicode_FromFormatV = PyUnicodeUCS4_FromFormatV
alias PyUnicode_FromFormatV = PyUnicodeUCS2_FromFormatV
- PyUnicode_FromObject
alias PyUnicode_FromObject = PyUnicodeUCS4_FromObject
alias PyUnicode_FromObject = PyUnicodeUCS2_FromObject
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicode_FromOrdinal
alias PyUnicode_FromOrdinal = PyUnicodeUCS4_FromOrdinal
alias PyUnicode_FromOrdinal = PyUnicodeUCS2_FromOrdinal
Create a Unicode Object from the given Unicode code point ordinal.
- PyUnicode_FromString
alias PyUnicode_FromString = PyUnicodeUCS4_FromString
alias PyUnicode_FromString = PyUnicodeUCS2_FromString
Similar to PyUnicode_FromUnicode(), but u points to null-terminated
Availability: >= 2.6
Latin-1 encoded bytes
- PyUnicode_FromStringAndSize
alias PyUnicode_FromStringAndSize = PyUnicodeUCS4_FromStringAndSize
alias PyUnicode_FromStringAndSize = PyUnicodeUCS2_FromStringAndSize
Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes Availability: >= 2.6
- PyUnicode_FromUnicode
alias PyUnicode_FromUnicode = PyUnicodeUCS2_FromUnicode
alias PyUnicode_FromUnicode = PyUnicodeUCS4_FromUnicode
Create a Unicode Object from the Py_UNICODE buffer u of the given
size.
- PyUnicode_FromWideChar
alias PyUnicode_FromWideChar = PyUnicodeUCS2_FromWideChar
alias PyUnicode_FromWideChar = PyUnicodeUCS4_FromWideChar
Create a Unicode Object from the whcar_t buffer w of the given
size.
- PyUnicode_GetDefaultEncoding
alias PyUnicode_GetDefaultEncoding = PyUnicodeUCS2_GetDefaultEncoding
alias PyUnicode_GetDefaultEncoding = PyUnicodeUCS4_GetDefaultEncoding
Returns the currently active default encoding.
- PyUnicode_GetMax
alias PyUnicode_GetMax = PyUnicodeUCS2_GetMax
alias PyUnicode_GetMax = PyUnicodeUCS4_GetMax
Get the maximum ordinal for a Unicode character.
- PyUnicode_GetSize
alias PyUnicode_GetSize = PyUnicodeUCS2_GetSize
alias PyUnicode_GetSize = PyUnicodeUCS4_GetSize
Get the length of the Unicode object.
- PyUnicode_IsIdentifier
alias PyUnicode_IsIdentifier = PyUnicodeUCS4_IsIdentifier
alias PyUnicode_IsIdentifier = PyUnicodeUCS2_IsIdentifier
Checks whether argument is a valid identifier. Availability: 3.*
- PyUnicode_Join
alias PyUnicode_Join = PyUnicodeUCS2_Join
alias PyUnicode_Join = PyUnicodeUCS4_Join
Join a sequence of strings using the given separator and return
the resulting Unicode string.
- PyUnicode_Partition
alias PyUnicode_Partition = PyUnicodeUCS2_Partition
alias PyUnicode_Partition = PyUnicodeUCS4_Partition
Partition a string using a given separator. Availability: >= 2.5
- PyUnicode_RPartition
alias PyUnicode_RPartition = PyUnicodeUCS2_RPartition
alias PyUnicode_RPartition = PyUnicodeUCS4_RPartition
Partition a string using a given separator, searching from the end
of the string.
- PyUnicode_RSplit
alias PyUnicode_RSplit = PyUnicodeUCS2_RSplit
alias PyUnicode_RSplit = PyUnicodeUCS4_RSplit
Split a string giving a list of Unicode strings.
- PyUnicode_Replace
alias PyUnicode_Replace = PyUnicodeUCS2_Replace
alias PyUnicode_Replace = PyUnicodeUCS4_Replace
Replace at most maxcount occurrences of substr in str with replstr
and return the resulting Unicode object.
- PyUnicode_Resize
alias PyUnicode_Resize = PyUnicodeUCS2_Resize
alias PyUnicode_Resize = PyUnicodeUCS4_Resize
Resize an already allocated Unicode object to the new size length.
- PyUnicode_RichCompare
alias PyUnicode_RichCompare = PyUnicodeUCS2_RichCompare
alias PyUnicode_RichCompare = PyUnicodeUCS4_RichCompare
Rich compare two strings and return one of the following:
- PyUnicode_SetDefaultEncoding
alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS2_SetDefaultEncoding
alias PyUnicode_SetDefaultEncoding = PyUnicodeUCS4_SetDefaultEncoding
Sets the currently active default encoding.
- PyUnicode_Split
alias PyUnicode_Split = PyUnicodeUCS2_Split
alias PyUnicode_Split = PyUnicodeUCS4_Split
Split a string giving a list of Unicode strings.
- PyUnicode_Splitlines
alias PyUnicode_Splitlines = PyUnicodeUCS2_Splitlines
alias PyUnicode_Splitlines = PyUnicodeUCS4_Splitlines
Ditto PyUnicode_Split, but split at line breaks.
- PyUnicode_Tailmatch
alias PyUnicode_Tailmatch = PyUnicodeUCS2_Tailmatch
alias PyUnicode_Tailmatch = PyUnicodeUCS4_Tailmatch
Return 1 if substr matches str[start:end] at the given tail end, 0
otherwise.
- PyUnicode_Translate
alias PyUnicode_Translate = PyUnicodeUCS2_Translate
alias PyUnicode_Translate = PyUnicodeUCS4_Translate
Translate a string by applying a character mapping table to it and
return the resulting Unicode object.
- PyUnicode_TranslateCharmap
alias PyUnicode_TranslateCharmap = PyUnicodeUCS4_TranslateCharmap
alias PyUnicode_TranslateCharmap = PyUnicodeUCS2_TranslateCharmap
Translate a Py_UNICODE buffer of the given length by applying a
character mapping table to it and return the resulting Unicode
object.
- Py_UCS4
alias Py_UCS4 = Py_UNICODE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- Py_UNICODE
alias Py_UNICODE = wchar
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- Py_UNICODE
alias Py_UNICODE = uint
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- Py_UNICODE
alias Py_UNICODE = ushort
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
- _PyUnicode_AsDefaultEncodedString
alias _PyUnicode_AsDefaultEncodedString = _PyUnicodeUCS2_AsDefaultEncodedString
alias _PyUnicode_AsDefaultEncodedString = _PyUnicodeUCS4_AsDefaultEncodedString
Return a Python string holding the default encoded value of the
Unicode object.
- _PyUnicode_DecodeUnicodeInternal
alias _PyUnicode_DecodeUnicodeInternal = _PyUnicodeUCS4_DecodeUnicodeInternal
alias _PyUnicode_DecodeUnicodeInternal = _PyUnicodeUCS2_DecodeUnicodeInternal
- _PyUnicode_FormatAdvanced
alias _PyUnicode_FormatAdvanced = _PyUnicodeUCS2_FormatAdvanced
alias _PyUnicode_FormatAdvanced = _PyUnicodeUCS4_FormatAdvanced
Format the object based on the format_spec, as defined in PEP 3101
Availability: >= 2.6
(Advanced String Formatting).
- _PyUnicode_IsAlpha
alias _PyUnicode_IsAlpha = _PyUnicodeUCS2_IsAlpha
alias _PyUnicode_IsAlpha = _PyUnicodeUCS4_IsAlpha
- _PyUnicode_IsDecimalDigit
alias _PyUnicode_IsDecimalDigit = _PyUnicodeUCS2_IsDecimalDigit
alias _PyUnicode_IsDecimalDigit = _PyUnicodeUCS4_IsDecimalDigit
- _PyUnicode_IsDigit
alias _PyUnicode_IsDigit = _PyUnicodeUCS2_IsDigit
alias _PyUnicode_IsDigit = _PyUnicodeUCS4_IsDigit
- _PyUnicode_IsLinebreak
alias _PyUnicode_IsLinebreak = _PyUnicodeUCS2_IsLinebreak
alias _PyUnicode_IsLinebreak = _PyUnicodeUCS4_IsLinebreak
- _PyUnicode_IsLowercase
alias _PyUnicode_IsLowercase = _PyUnicodeUCS2_IsLowercase
alias _PyUnicode_IsLowercase = _PyUnicodeUCS4_IsLowercase
- _PyUnicode_IsNumeric
alias _PyUnicode_IsNumeric = _PyUnicodeUCS2_IsNumeric
alias _PyUnicode_IsNumeric = _PyUnicodeUCS4_IsNumeric
- _PyUnicode_IsTitlecase
alias _PyUnicode_IsTitlecase = _PyUnicodeUCS2_IsTitlecase
alias _PyUnicode_IsTitlecase = _PyUnicodeUCS4_IsTitlecase
- _PyUnicode_IsUppercase
alias _PyUnicode_IsUppercase = _PyUnicodeUCS2_IsUppercase
alias _PyUnicode_IsUppercase = _PyUnicodeUCS4_IsUppercase
- _PyUnicode_IsWhitespace
alias _PyUnicode_IsWhitespace = _PyUnicodeUCS2_IsWhitespace
alias _PyUnicode_IsWhitespace = _PyUnicodeUCS4_IsWhitespace
- _PyUnicode_ToDecimalDigit
alias _PyUnicode_ToDecimalDigit = _PyUnicodeUCS2_ToDecimalDigit
alias _PyUnicode_ToDecimalDigit = _PyUnicodeUCS4_ToDecimalDigit
- _PyUnicode_ToDigit
alias _PyUnicode_ToDigit = _PyUnicodeUCS2_ToDigit
alias _PyUnicode_ToDigit = _PyUnicodeUCS4_ToDigit
- _PyUnicode_ToLowercase
alias _PyUnicode_ToLowercase = _PyUnicodeUCS2_ToLowercase
alias _PyUnicode_ToLowercase = _PyUnicodeUCS4_ToLowercase
- _PyUnicode_ToNumeric
alias _PyUnicode_ToNumeric = _PyUnicodeUCS2_ToNumeric
alias _PyUnicode_ToNumeric = _PyUnicodeUCS4_ToNumeric
- _PyUnicode_ToTitlecase
alias _PyUnicode_ToTitlecase = _PyUnicodeUCS2_ToTitlecase
alias _PyUnicode_ToTitlecase = _PyUnicodeUCS4_ToTitlecase
- _PyUnicode_ToUppercase
alias _PyUnicode_ToUppercase = _PyUnicodeUCS2_ToUppercase
alias _PyUnicode_ToUppercase = _PyUnicodeUCS4_ToUppercase
- PyUnicodeUCS2_Append
void PyUnicodeUCS2_Append(PyObject** pleft, PyObject* right)
Concat two strings and put the result in *pleft
(sets *pleft to NULL on error)
- PyUnicodeUCS2_AppendAndDel
void PyUnicodeUCS2_AppendAndDel(PyObject** pleft, PyObject* right)
Concat two strings, put the result in *pleft and drop the right object
(sets *pleft to NULL on error)
- PyUnicodeUCS2_AsASCIIString
PyObject* PyUnicodeUCS2_AsASCIIString(PyObject* unicode)
- PyUnicodeUCS2_AsCharmapString
PyObject* PyUnicodeUCS2_AsCharmapString(PyObject* unicode, PyObject* mapping)
- PyUnicodeUCS2_AsDecodedObject
PyObject* PyUnicodeUCS2_AsDecodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Python
Availability: 3.*
object.
- PyUnicodeUCS2_AsDecodedUnicode
PyObject* PyUnicodeUCS2_AsDecodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Unicode
Availability: 3.*
object.
- PyUnicodeUCS2_AsEncodedObject
PyObject* PyUnicodeUCS2_AsEncodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python object.
- PyUnicodeUCS2_AsEncodedString
PyObject* PyUnicodeUCS2_AsEncodedString(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python string
object.
- PyUnicodeUCS2_AsEncodedUnicode
PyObject* PyUnicodeUCS2_AsEncodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Unicode
Availability: >= 3.*
object.
- PyUnicodeUCS2_AsLatin1String
PyObject* PyUnicodeUCS2_AsLatin1String(PyObject* unicode)
- PyUnicodeUCS2_AsMBCSString
PyObject* PyUnicodeUCS2_AsMBCSString(PyObject* unicode)
Availability: Windows only
- PyUnicodeUCS2_AsRawUnicodeEscapeString
PyObject* PyUnicodeUCS2_AsRawUnicodeEscapeString(PyObject* unicode)
- PyUnicodeUCS2_AsUTF16String
PyObject* PyUnicodeUCS2_AsUTF16String(PyObject* unicode)
Returns a Python string using the UTF-16 encoding in native byte
order. The string always starts with a BOM mark.
- PyUnicodeUCS2_AsUTF32String
PyObject* PyUnicodeUCS2_AsUTF32String(PyObject* unicode)
Returns a Python string using the UTF-32 encoding in native byte
Availability: >= 2.6
order. The string always starts with a BOM mark.
- PyUnicodeUCS2_AsUTF8String
PyObject* PyUnicodeUCS2_AsUTF8String(PyObject* unicode)
- PyUnicodeUCS2_AsUnicode
Py_UNICODE* PyUnicodeUCS2_AsUnicode(PyObject* unicode)
Return a read-only pointer to the Unicode object's internal
Py_UNICODE buffer.
- PyUnicodeUCS2_AsUnicodeEscapeString
PyObject* PyUnicodeUCS2_AsUnicodeEscapeString(PyObject* unicode)
- PyUnicodeUCS2_AsWideChar
Py_ssize_t PyUnicodeUCS2_AsWideChar(PyUnicodeObject* unicode, const(wchar)* w, Py_ssize_t size)
Copies the Unicode Object contents into the wchar_t buffer w. At
most size wchar_t characters are copied.
- PyUnicodeUCS2_ClearFreeList
int PyUnicodeUCS2_ClearFreeList()
- PyUnicodeUCS2_Compare
int PyUnicodeUCS2_Compare(PyObject* left, PyObject* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicodeUCS2_CompareWithASCIIString
int PyUnicodeUCS2_CompareWithASCIIString(PyObject* left, const(char)* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicodeUCS2_Concat
PyObject* PyUnicodeUCS2_Concat(PyObject* left, PyObject* right)
Concat two strings giving a new Unicode string.
- PyUnicodeUCS2_Contains
int PyUnicodeUCS2_Contains(PyObject* container, PyObject* element)
Checks whether element is contained in container and return 1/0
accordingly.
- PyUnicodeUCS2_Count
Py_ssize_t PyUnicodeUCS2_Count(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end)
Count the number of occurrences of substr in str[start:end].
- PyUnicodeUCS2_Decode
PyObject* PyUnicodeUCS2_Decode(const(char)* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Create a Unicode object by decoding the encoded string s of the
given size.
- PyUnicodeUCS2_DecodeASCII
PyObject* PyUnicodeUCS2_DecodeASCII(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_DecodeCharmap
PyObject* PyUnicodeUCS2_DecodeCharmap(const(char)* string, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicodeUCS2_DecodeLatin1
PyObject* PyUnicodeUCS2_DecodeLatin1(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_DecodeMBCS
PyObject* PyUnicodeUCS2_DecodeMBCS(const(char)* string, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicodeUCS2_DecodeRawUnicodeEscape
PyObject* PyUnicodeUCS2_DecodeRawUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_DecodeUTF16
PyObject* PyUnicodeUCS2_DecodeUTF16(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
Decodes length bytes from a UTF-16 encoded buffer string and returns
the corresponding Unicode object.
- PyUnicodeUCS2_DecodeUTF16Stateful
PyObject* PyUnicodeUCS2_DecodeUTF16Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicodeUCS2_DecodeUTF32
PyObject* PyUnicodeUCS2_DecodeUTF32(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
- PyUnicodeUCS2_DecodeUTF32Stateful
PyObject* PyUnicodeUCS2_DecodeUTF32Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicodeUCS2_DecodeUTF7
PyObject* PyUnicodeUCS2_DecodeUTF7(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_DecodeUTF7Stateful
PyObject* PyUnicodeUCS2_DecodeUTF7Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicodeUCS2_DecodeUTF8
PyObject* PyUnicodeUCS2_DecodeUTF8(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_DecodeUTF8Stateful
PyObject* PyUnicodeUCS2_DecodeUTF8Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicodeUCS2_DecodeUnicodeEscape
PyObject* PyUnicodeUCS2_DecodeUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_Encode
PyObject* PyUnicodeUCS2_Encode(Py_UNICODE* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Encodes a Py_UNICODE buffer of the given size and returns a
Python string object.
- PyUnicodeUCS2_EncodeASCII
PyObject* PyUnicodeUCS2_EncodeASCII(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_EncodeCharmap
PyObject* PyUnicodeUCS2_EncodeCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicodeUCS2_EncodeDecimal
int PyUnicodeUCS2_EncodeDecimal(Py_UNICODE* s, Py_ssize_t length, char* output, const(char)* errors)
Takes a Unicode string holding a decimal value and writes it into
an output buffer using standard ASCII digit codes.
- PyUnicodeUCS2_EncodeLatin1
PyObject* PyUnicodeUCS2_EncodeLatin1(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_EncodeMBCS
PyObject* PyUnicodeUCS2_EncodeMBCS(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicodeUCS2_EncodeRawUnicodeEscape
PyObject* PyUnicodeUCS2_EncodeRawUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicodeUCS2_EncodeUTF16
PyObject* PyUnicodeUCS2_EncodeUTF16(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-16 encoded value of
the Unicode data.
- PyUnicodeUCS2_EncodeUTF32
PyObject* PyUnicodeUCS2_EncodeUTF32(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-32 encoded value of
the Unicode data.
- PyUnicodeUCS2_EncodeUTF7
PyObject* PyUnicodeUCS2_EncodeUTF7(Py_UNICODE* data, Py_ssize_t length, int encodeSetO, int encodeWhiteSpace, const(char)* errors)
- PyUnicodeUCS2_EncodeUTF8
PyObject* PyUnicodeUCS2_EncodeUTF8(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS2_EncodeUnicodeEscape
PyObject* PyUnicodeUCS2_EncodeUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicodeUCS2_Find
Py_ssize_t PyUnicodeUCS2_Find(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return the first position of substr in str[start:end] using the
given search direction or -1 if not found. -2 is returned in case
an error occurred and an exception is set.
- PyUnicodeUCS2_Format
PyObject* PyUnicodeUCS2_Format(PyObject* format, PyObject* args)
Apply a argument tuple or dictionary to a format string and return
the resulting Unicode string.
- PyUnicodeUCS2_FromEncodedObject
PyObject* PyUnicodeUCS2_FromEncodedObject(PyObject* obj, const(char)* encoding, const(char)* errors)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicodeUCS2_FromFormat
PyObject* PyUnicodeUCS2_FromFormat(const(char)* , ...)
- PyUnicodeUCS2_FromFormatV
PyObject* PyUnicodeUCS2_FromFormatV(const(char)* , va_list )
- PyUnicodeUCS2_FromObject
PyObject* PyUnicodeUCS2_FromObject(PyObject* obj)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicodeUCS2_FromOrdinal
PyObject* PyUnicodeUCS2_FromOrdinal(int ordinal)
Create a Unicode Object from the given Unicode code point ordinal.
- PyUnicodeUCS2_FromString
PyObject* PyUnicodeUCS2_FromString(const(char)* u)
Similar to PyUnicode_FromUnicode(), but u points to null-terminated
Availability: >= 2.6
Latin-1 encoded bytes
- PyUnicodeUCS2_FromStringAndSize
PyObject* PyUnicodeUCS2_FromStringAndSize(const(char)* u, Py_ssize_t size)
Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes Availability: >= 2.6
- PyUnicodeUCS2_FromUnicode
PyObject* PyUnicodeUCS2_FromUnicode(Py_UNICODE* u, Py_ssize_t size)
Create a Unicode Object from the Py_UNICODE buffer u of the given
size.
- PyUnicodeUCS2_FromWideChar
PyObject* PyUnicodeUCS2_FromWideChar(const(wchar)* w, Py_ssize_t size)
Create a Unicode Object from the whcar_t buffer w of the given
size.
- PyUnicodeUCS2_GetDefaultEncoding
const(char)* PyUnicodeUCS2_GetDefaultEncoding()
Returns the currently active default encoding.
- PyUnicodeUCS2_GetMax
Py_UNICODE PyUnicodeUCS2_GetMax()
Get the maximum ordinal for a Unicode character.
- PyUnicodeUCS2_GetSize
Py_ssize_t PyUnicodeUCS2_GetSize(PyObject* unicode)
Get the length of the Unicode object.
- PyUnicodeUCS2_IsIdentifier
int PyUnicodeUCS2_IsIdentifier(PyObject* s)
Checks whether argument is a valid identifier. Availability: 3.*
- PyUnicodeUCS2_Join
PyObject* PyUnicodeUCS2_Join(PyObject* separator, PyObject* seq)
Join a sequence of strings using the given separator and return
the resulting Unicode string.
- PyUnicodeUCS2_Partition
PyObject* PyUnicodeUCS2_Partition(PyObject* s, PyObject* sep)
Partition a string using a given separator. Availability: >= 2.5
- PyUnicodeUCS2_RPartition
PyObject* PyUnicodeUCS2_RPartition(PyObject* s, PyObject* sep)
Partition a string using a given separator, searching from the end
of the string.
- PyUnicodeUCS2_RSplit
PyObject* PyUnicodeUCS2_RSplit(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicodeUCS2_Replace
PyObject* PyUnicodeUCS2_Replace(PyObject* str, PyObject* substr, PyObject* replstr, Py_ssize_t maxcount)
Replace at most maxcount occurrences of substr in str with replstr
and return the resulting Unicode object.
- PyUnicodeUCS2_Resize
int PyUnicodeUCS2_Resize(PyObject** unicode, Py_ssize_t length)
Resize an already allocated Unicode object to the new size length.
- PyUnicodeUCS2_RichCompare
PyObject* PyUnicodeUCS2_RichCompare(PyObject* left, PyObject* right, int op)
Rich compare two strings and return one of the following:
- PyUnicodeUCS2_SetDefaultEncoding
int PyUnicodeUCS2_SetDefaultEncoding(const(char)* encoding)
Sets the currently active default encoding.
- PyUnicodeUCS2_Split
PyObject* PyUnicodeUCS2_Split(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicodeUCS2_Splitlines
PyObject* PyUnicodeUCS2_Splitlines(PyObject* s, int keepends)
Ditto PyUnicode_Split, but split at line breaks.
- PyUnicodeUCS2_Tailmatch
Py_ssize_t PyUnicodeUCS2_Tailmatch(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if substr matches str[start:end] at the given tail end, 0
otherwise.
- PyUnicodeUCS2_Translate
PyObject* PyUnicodeUCS2_Translate(PyObject* str, PyObject* table, const(char)* errors)
Translate a string by applying a character mapping table to it and
return the resulting Unicode object.
- PyUnicodeUCS2_TranslateCharmap
PyObject* PyUnicodeUCS2_TranslateCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* table, const(char)* errors)
Translate a Py_UNICODE buffer of the given length by applying a
character mapping table to it and return the resulting Unicode
object.
- PyUnicodeUCS4_Append
void PyUnicodeUCS4_Append(PyObject** pleft, PyObject* right)
Concat two strings and put the result in *pleft
(sets *pleft to NULL on error)
- PyUnicodeUCS4_AppendAndDel
void PyUnicodeUCS4_AppendAndDel(PyObject** pleft, PyObject* right)
Concat two strings, put the result in *pleft and drop the right object
(sets *pleft to NULL on error)
- PyUnicodeUCS4_AsASCIIString
PyObject* PyUnicodeUCS4_AsASCIIString(PyObject* unicode)
- PyUnicodeUCS4_AsCharmapString
PyObject* PyUnicodeUCS4_AsCharmapString(PyObject* unicode, PyObject* mapping)
- PyUnicodeUCS4_AsDecodedObject
PyObject* PyUnicodeUCS4_AsDecodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Python
Availability: 3.*
object.
- PyUnicodeUCS4_AsDecodedUnicode
PyObject* PyUnicodeUCS4_AsDecodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Unicode
Availability: 3.*
object.
- PyUnicodeUCS4_AsEncodedObject
PyObject* PyUnicodeUCS4_AsEncodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python object.
- PyUnicodeUCS4_AsEncodedString
PyObject* PyUnicodeUCS4_AsEncodedString(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python string
object.
- PyUnicodeUCS4_AsEncodedUnicode
PyObject* PyUnicodeUCS4_AsEncodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Unicode
Availability: >= 3.*
object.
- PyUnicodeUCS4_AsLatin1String
PyObject* PyUnicodeUCS4_AsLatin1String(PyObject* unicode)
- PyUnicodeUCS4_AsMBCSString
PyObject* PyUnicodeUCS4_AsMBCSString(PyObject* unicode)
Availability: Windows only
- PyUnicodeUCS4_AsRawUnicodeEscapeString
PyObject* PyUnicodeUCS4_AsRawUnicodeEscapeString(PyObject* unicode)
- PyUnicodeUCS4_AsUTF16String
PyObject* PyUnicodeUCS4_AsUTF16String(PyObject* unicode)
Returns a Python string using the UTF-16 encoding in native byte
order. The string always starts with a BOM mark.
- PyUnicodeUCS4_AsUTF32String
PyObject* PyUnicodeUCS4_AsUTF32String(PyObject* unicode)
Returns a Python string using the UTF-32 encoding in native byte
Availability: >= 2.6
order. The string always starts with a BOM mark.
- PyUnicodeUCS4_AsUTF8String
PyObject* PyUnicodeUCS4_AsUTF8String(PyObject* unicode)
- PyUnicodeUCS4_AsUnicode
Py_UNICODE* PyUnicodeUCS4_AsUnicode(PyObject* unicode)
Return a read-only pointer to the Unicode object's internal
Py_UNICODE buffer.
- PyUnicodeUCS4_AsUnicodeEscapeString
PyObject* PyUnicodeUCS4_AsUnicodeEscapeString(PyObject* unicode)
- PyUnicodeUCS4_AsWideChar
Py_ssize_t PyUnicodeUCS4_AsWideChar(PyUnicodeObject* unicode, const(wchar)* w, Py_ssize_t size)
Copies the Unicode Object contents into the wchar_t buffer w. At
most size wchar_t characters are copied.
- PyUnicodeUCS4_ClearFreeList
int PyUnicodeUCS4_ClearFreeList()
- PyUnicodeUCS4_Compare
int PyUnicodeUCS4_Compare(PyObject* left, PyObject* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicodeUCS4_CompareWithASCIIString
int PyUnicodeUCS4_CompareWithASCIIString(PyObject* left, const(char)* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicodeUCS4_Concat
PyObject* PyUnicodeUCS4_Concat(PyObject* left, PyObject* right)
Concat two strings giving a new Unicode string.
- PyUnicodeUCS4_Contains
int PyUnicodeUCS4_Contains(PyObject* container, PyObject* element)
Checks whether element is contained in container and return 1/0
accordingly.
- PyUnicodeUCS4_Count
Py_ssize_t PyUnicodeUCS4_Count(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end)
Count the number of occurrences of substr in str[start:end].
- PyUnicodeUCS4_Decode
PyObject* PyUnicodeUCS4_Decode(const(char)* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Create a Unicode object by decoding the encoded string s of the
given size.
- PyUnicodeUCS4_DecodeASCII
PyObject* PyUnicodeUCS4_DecodeASCII(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_DecodeCharmap
PyObject* PyUnicodeUCS4_DecodeCharmap(const(char)* string, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicodeUCS4_DecodeLatin1
PyObject* PyUnicodeUCS4_DecodeLatin1(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_DecodeMBCS
PyObject* PyUnicodeUCS4_DecodeMBCS(const(char)* string, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicodeUCS4_DecodeRawUnicodeEscape
PyObject* PyUnicodeUCS4_DecodeRawUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_DecodeUTF16
PyObject* PyUnicodeUCS4_DecodeUTF16(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
Decodes length bytes from a UTF-16 encoded buffer string and returns
the corresponding Unicode object.
- PyUnicodeUCS4_DecodeUTF16Stateful
PyObject* PyUnicodeUCS4_DecodeUTF16Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicodeUCS4_DecodeUTF32
PyObject* PyUnicodeUCS4_DecodeUTF32(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
- PyUnicodeUCS4_DecodeUTF32Stateful
PyObject* PyUnicodeUCS4_DecodeUTF32Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicodeUCS4_DecodeUTF7
PyObject* PyUnicodeUCS4_DecodeUTF7(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_DecodeUTF7Stateful
PyObject* PyUnicodeUCS4_DecodeUTF7Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicodeUCS4_DecodeUTF8
PyObject* PyUnicodeUCS4_DecodeUTF8(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_DecodeUTF8Stateful
PyObject* PyUnicodeUCS4_DecodeUTF8Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicodeUCS4_DecodeUnicodeEscape
PyObject* PyUnicodeUCS4_DecodeUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_Encode
PyObject* PyUnicodeUCS4_Encode(Py_UNICODE* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Encodes a Py_UNICODE buffer of the given size and returns a
Python string object.
- PyUnicodeUCS4_EncodeASCII
PyObject* PyUnicodeUCS4_EncodeASCII(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_EncodeCharmap
PyObject* PyUnicodeUCS4_EncodeCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicodeUCS4_EncodeDecimal
int PyUnicodeUCS4_EncodeDecimal(Py_UNICODE* s, Py_ssize_t length, char* output, const(char)* errors)
Takes a Unicode string holding a decimal value and writes it into
an output buffer using standard ASCII digit codes.
- PyUnicodeUCS4_EncodeLatin1
PyObject* PyUnicodeUCS4_EncodeLatin1(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_EncodeMBCS
PyObject* PyUnicodeUCS4_EncodeMBCS(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicodeUCS4_EncodeRawUnicodeEscape
PyObject* PyUnicodeUCS4_EncodeRawUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicodeUCS4_EncodeUTF16
PyObject* PyUnicodeUCS4_EncodeUTF16(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-16 encoded value of
the Unicode data.
- PyUnicodeUCS4_EncodeUTF32
PyObject* PyUnicodeUCS4_EncodeUTF32(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-32 encoded value of
the Unicode data.
- PyUnicodeUCS4_EncodeUTF7
PyObject* PyUnicodeUCS4_EncodeUTF7(Py_UNICODE* data, Py_ssize_t length, int encodeSetO, int encodeWhiteSpace, const(char)* errors)
- PyUnicodeUCS4_EncodeUTF8
PyObject* PyUnicodeUCS4_EncodeUTF8(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicodeUCS4_EncodeUnicodeEscape
PyObject* PyUnicodeUCS4_EncodeUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicodeUCS4_Find
Py_ssize_t PyUnicodeUCS4_Find(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return the first position of substr in str[start:end] using the
given search direction or -1 if not found. -2 is returned in case
an error occurred and an exception is set.
- PyUnicodeUCS4_Format
PyObject* PyUnicodeUCS4_Format(PyObject* format, PyObject* args)
Apply a argument tuple or dictionary to a format string and return
the resulting Unicode string.
- PyUnicodeUCS4_FromEncodedObject
PyObject* PyUnicodeUCS4_FromEncodedObject(PyObject* obj, const(char)* encoding, const(char)* errors)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicodeUCS4_FromFormat
PyObject* PyUnicodeUCS4_FromFormat(const(char)* , ...)
- PyUnicodeUCS4_FromFormatV
PyObject* PyUnicodeUCS4_FromFormatV(const(char)* , va_list )
- PyUnicodeUCS4_FromObject
PyObject* PyUnicodeUCS4_FromObject(PyObject* obj)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicodeUCS4_FromOrdinal
PyObject* PyUnicodeUCS4_FromOrdinal(int ordinal)
Create a Unicode Object from the given Unicode code point ordinal.
- PyUnicodeUCS4_FromString
PyObject* PyUnicodeUCS4_FromString(const(char)* u)
Similar to PyUnicode_FromUnicode(), but u points to null-terminated
Availability: >= 2.6
Latin-1 encoded bytes
- PyUnicodeUCS4_FromStringAndSize
PyObject* PyUnicodeUCS4_FromStringAndSize(const(char)* u, Py_ssize_t size)
Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes Availability: >= 2.6
- PyUnicodeUCS4_FromUnicode
PyObject* PyUnicodeUCS4_FromUnicode(Py_UNICODE* u, Py_ssize_t size)
Create a Unicode Object from the Py_UNICODE buffer u of the given
size.
- PyUnicodeUCS4_FromWideChar
PyObject* PyUnicodeUCS4_FromWideChar(const(wchar)* w, Py_ssize_t size)
Create a Unicode Object from the whcar_t buffer w of the given
size.
- PyUnicodeUCS4_GetDefaultEncoding
const(char)* PyUnicodeUCS4_GetDefaultEncoding()
Returns the currently active default encoding.
- PyUnicodeUCS4_GetMax
Py_UNICODE PyUnicodeUCS4_GetMax()
Get the maximum ordinal for a Unicode character.
- PyUnicodeUCS4_GetSize
Py_ssize_t PyUnicodeUCS4_GetSize(PyObject* unicode)
Get the length of the Unicode object.
- PyUnicodeUCS4_IsIdentifier
int PyUnicodeUCS4_IsIdentifier(PyObject* s)
Checks whether argument is a valid identifier. Availability: 3.*
- PyUnicodeUCS4_Join
PyObject* PyUnicodeUCS4_Join(PyObject* separator, PyObject* seq)
Join a sequence of strings using the given separator and return
the resulting Unicode string.
- PyUnicodeUCS4_Partition
PyObject* PyUnicodeUCS4_Partition(PyObject* s, PyObject* sep)
Partition a string using a given separator. Availability: >= 2.5
- PyUnicodeUCS4_RPartition
PyObject* PyUnicodeUCS4_RPartition(PyObject* s, PyObject* sep)
Partition a string using a given separator, searching from the end
of the string.
- PyUnicodeUCS4_RSplit
PyObject* PyUnicodeUCS4_RSplit(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicodeUCS4_Replace
PyObject* PyUnicodeUCS4_Replace(PyObject* str, PyObject* substr, PyObject* replstr, Py_ssize_t maxcount)
Replace at most maxcount occurrences of substr in str with replstr
and return the resulting Unicode object.
- PyUnicodeUCS4_Resize
int PyUnicodeUCS4_Resize(PyObject** unicode, Py_ssize_t length)
Resize an already allocated Unicode object to the new size length.
- PyUnicodeUCS4_RichCompare
PyObject* PyUnicodeUCS4_RichCompare(PyObject* left, PyObject* right, int op)
Rich compare two strings and return one of the following:
- PyUnicodeUCS4_SetDefaultEncoding
int PyUnicodeUCS4_SetDefaultEncoding(const(char)* encoding)
Sets the currently active default encoding.
- PyUnicodeUCS4_Split
PyObject* PyUnicodeUCS4_Split(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicodeUCS4_Splitlines
PyObject* PyUnicodeUCS4_Splitlines(PyObject* s, int keepends)
Ditto PyUnicode_Split, but split at line breaks.
- PyUnicodeUCS4_Tailmatch
Py_ssize_t PyUnicodeUCS4_Tailmatch(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if substr matches str[start:end] at the given tail end, 0
otherwise.
- PyUnicodeUCS4_Translate
PyObject* PyUnicodeUCS4_Translate(PyObject* str, PyObject* table, const(char)* errors)
Translate a string by applying a character mapping table to it and
return the resulting Unicode object.
- PyUnicodeUCS4_TranslateCharmap
PyObject* PyUnicodeUCS4_TranslateCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* table, const(char)* errors)
Translate a Py_UNICODE buffer of the given length by applying a
character mapping table to it and return the resulting Unicode
object.
- PyUnicode_AS_DATA
const(char)* PyUnicode_AS_DATA(PyUnicodeObject* op)
- PyUnicode_AS_UNICODE
Py_UNICODE* PyUnicode_AS_UNICODE(PyUnicodeObject* op)
- PyUnicode_Append
void PyUnicode_Append(PyObject** pleft, PyObject* right)
Concat two strings and put the result in *pleft
(sets *pleft to NULL on error)
- PyUnicode_AppendAndDel
void PyUnicode_AppendAndDel(PyObject** pleft, PyObject* right)
Concat two strings, put the result in *pleft and drop the right object
(sets *pleft to NULL on error)
- PyUnicode_AsASCIIString
PyObject* PyUnicode_AsASCIIString(PyObject* unicode)
- PyUnicode_AsCharmapString
PyObject* PyUnicode_AsCharmapString(PyObject* unicode, PyObject* mapping)
- PyUnicode_AsDecodedObject
PyObject* PyUnicode_AsDecodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Python
Availability: 3.*
object.
- PyUnicode_AsDecodedUnicode
PyObject* PyUnicode_AsDecodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Decode a Unicode object unicode and return the result as Unicode
Availability: 3.*
object.
- PyUnicode_AsEncodedObject
PyObject* PyUnicode_AsEncodedObject(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python object.
- PyUnicode_AsEncodedString
PyObject* PyUnicode_AsEncodedString(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Python string
object.
- PyUnicode_AsEncodedUnicode
PyObject* PyUnicode_AsEncodedUnicode(PyObject* unicode, const(char)* encoding, const(char)* errors)
Encodes a Unicode object and returns the result as Unicode
Availability: >= 3.*
object.
- PyUnicode_AsLatin1String
PyObject* PyUnicode_AsLatin1String(PyObject* unicode)
- PyUnicode_AsMBCSString
PyObject* PyUnicode_AsMBCSString(PyObject* unicode)
Availability: Windows only
- PyUnicode_AsRawUnicodeEscapeString
PyObject* PyUnicode_AsRawUnicodeEscapeString(PyObject* unicode)
- PyUnicode_AsUTF16String
PyObject* PyUnicode_AsUTF16String(PyObject* unicode)
Returns a Python string using the UTF-16 encoding in native byte
order. The string always starts with a BOM mark.
- PyUnicode_AsUTF32String
PyObject* PyUnicode_AsUTF32String(PyObject* unicode)
Returns a Python string using the UTF-32 encoding in native byte
Availability: >= 2.6
order. The string always starts with a BOM mark.
- PyUnicode_AsUTF8String
PyObject* PyUnicode_AsUTF8String(PyObject* unicode)
- PyUnicode_AsUnicode
Py_UNICODE* PyUnicode_AsUnicode(PyObject* unicode)
Return a read-only pointer to the Unicode object's internal
Py_UNICODE buffer.
- PyUnicode_AsUnicodeCopy
Py_UNICODE* PyUnicode_AsUnicodeCopy(PyObject* unicode)
Create a copy of a unicode string ending with a nul character. Return NULL
and raise a MemoryError exception on memory allocation failure, otherwise
Availability: >= 3.2
return a new allocated buffer (use PyMem_Free() to free the buffer).
- PyUnicode_AsUnicodeEscapeString
PyObject* PyUnicode_AsUnicodeEscapeString(PyObject* unicode)
- PyUnicode_AsWideChar
Py_ssize_t PyUnicode_AsWideChar(PyUnicodeObject* unicode, const(wchar)* w, Py_ssize_t size)
Copies the Unicode Object contents into the wchar_t buffer w. At
most size wchar_t characters are copied.
- PyUnicode_Check
int PyUnicode_Check(PyObject* op)
- PyUnicode_CheckExact
int PyUnicode_CheckExact(PyObject* op)
- PyUnicode_ClearFreeList
int PyUnicode_ClearFreeList()
- PyUnicode_Compare
int PyUnicode_Compare(PyObject* left, PyObject* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicode_CompareWithASCIIString
int PyUnicode_CompareWithASCIIString(PyObject* left, const(char)* right)
Compare two strings and return -1, 0, 1 for less than, equal,
greater than resp.
- PyUnicode_Concat
PyObject* PyUnicode_Concat(PyObject* left, PyObject* right)
Concat two strings giving a new Unicode string.
- PyUnicode_Contains
int PyUnicode_Contains(PyObject* container, PyObject* element)
Checks whether element is contained in container and return 1/0
accordingly.
- PyUnicode_Count
Py_ssize_t PyUnicode_Count(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end)
Count the number of occurrences of substr in str[start:end].
- PyUnicode_Decode
PyObject* PyUnicode_Decode(const(char)* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Create a Unicode object by decoding the encoded string s of the
given size.
- PyUnicode_DecodeASCII
PyObject* PyUnicode_DecodeASCII(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_DecodeCharmap
PyObject* PyUnicode_DecodeCharmap(const(char)* string, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicode_DecodeFSDefault
PyObject* PyUnicode_DecodeFSDefault(const(char)* s)
Decode a null-terminated string using Py_FileSystemDefaultEncoding
and the "surrogateescape" error handler.
- PyUnicode_DecodeFSDefaultAndSize
PyObject* PyUnicode_DecodeFSDefaultAndSize(const(char)* s, Py_ssize_t size)
Decode a string using Py_FileSystemDefaultEncoding
and the "surrogateescape" error handler.
- PyUnicode_DecodeLatin1
PyObject* PyUnicode_DecodeLatin1(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_DecodeMBCS
PyObject* PyUnicode_DecodeMBCS(const(char)* string, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicode_DecodeRawUnicodeEscape
PyObject* PyUnicode_DecodeRawUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_DecodeUTF16
PyObject* PyUnicode_DecodeUTF16(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
Decodes length bytes from a UTF-16 encoded buffer string and returns
the corresponding Unicode object.
- PyUnicode_DecodeUTF16Stateful
PyObject* PyUnicode_DecodeUTF16Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicode_DecodeUTF32
PyObject* PyUnicode_DecodeUTF32(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder)
- PyUnicode_DecodeUTF32Stateful
PyObject* PyUnicode_DecodeUTF32Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, int* byteorder, Py_ssize_t* consumed)
- PyUnicode_DecodeUTF7
PyObject* PyUnicode_DecodeUTF7(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_DecodeUTF7Stateful
PyObject* PyUnicode_DecodeUTF7Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicode_DecodeUTF8
PyObject* PyUnicode_DecodeUTF8(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_DecodeUTF8Stateful
PyObject* PyUnicode_DecodeUTF8Stateful(const(char)* string, Py_ssize_t length, const(char)* errors, Py_ssize_t* consumed)
- PyUnicode_DecodeUnicodeEscape
PyObject* PyUnicode_DecodeUnicodeEscape(const(char)* string, Py_ssize_t length, const(char)* errors)
- PyUnicode_Encode
PyObject* PyUnicode_Encode(Py_UNICODE* s, Py_ssize_t size, const(char)* encoding, const(char)* errors)
Encodes a Py_UNICODE buffer of the given size and returns a
Python string object.
- PyUnicode_EncodeASCII
PyObject* PyUnicode_EncodeASCII(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicode_EncodeCharmap
PyObject* PyUnicode_EncodeCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* mapping, const(char)* errors)
- PyUnicode_EncodeDecimal
int PyUnicode_EncodeDecimal(Py_UNICODE* s, Py_ssize_t length, char* output, const(char)* errors)
Takes a Unicode string holding a decimal value and writes it into
an output buffer using standard ASCII digit codes.
- PyUnicode_EncodeFSDefault
PyObject* PyUnicode_EncodeFSDefault(PyObject* unicode)
Encode a Unicode object to Py_FileSystemDefaultEncoding with the
"surrogateescape" error handler, and return bytes.
- PyUnicode_EncodeLatin1
PyObject* PyUnicode_EncodeLatin1(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicode_EncodeMBCS
PyObject* PyUnicode_EncodeMBCS(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
Availability: Windows only
- PyUnicode_EncodeRawUnicodeEscape
PyObject* PyUnicode_EncodeRawUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicode_EncodeUTF16
PyObject* PyUnicode_EncodeUTF16(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-16 encoded value of
the Unicode data.
- PyUnicode_EncodeUTF32
PyObject* PyUnicode_EncodeUTF32(Py_UNICODE* data, Py_ssize_t length, const(char)* errors, int byteorder)
Returns a Python string object holding the UTF-32 encoded value of
the Unicode data.
- PyUnicode_EncodeUTF7
PyObject* PyUnicode_EncodeUTF7(Py_UNICODE* data, Py_ssize_t length, int encodeSetO, int encodeWhiteSpace, const(char)* errors)
- PyUnicode_EncodeUTF8
PyObject* PyUnicode_EncodeUTF8(Py_UNICODE* data, Py_ssize_t length, const(char)* errors)
- PyUnicode_EncodeUnicodeEscape
PyObject* PyUnicode_EncodeUnicodeEscape(Py_UNICODE* data, Py_ssize_t length)
- PyUnicode_FSConverter
int PyUnicode_FSConverter(PyObject* , void* )
ParseTuple converter: encode str objects to bytes using
Availability: >= 3.2
PyUnicode_EncodeFSDefault(); bytes objects are output as-is.
- PyUnicode_FSDecoder
int PyUnicode_FSDecoder(PyObject* , void* )
ParseTuple converter: decode bytes objects to unicode using
Availability: >= 3.2
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.
- PyUnicode_Find
Py_ssize_t PyUnicode_Find(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return the first position of substr in str[start:end] using the
given search direction or -1 if not found. -2 is returned in case
an error occurred and an exception is set.
- PyUnicode_Format
PyObject* PyUnicode_Format(PyObject* format, PyObject* args)
Apply a argument tuple or dictionary to a format string and return
the resulting Unicode string.
- PyUnicode_FromEncodedObject
PyObject* PyUnicode_FromEncodedObject(PyObject* obj, const(char)* encoding, const(char)* errors)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicode_FromFormat
PyObject* PyUnicode_FromFormat(const(char)* , ...)
- PyUnicode_FromFormatV
PyObject* PyUnicode_FromFormatV(const(char)* , va_list )
- PyUnicode_FromObject
PyObject* PyUnicode_FromObject(PyObject* obj)
Coerce obj to an Unicode object and return a reference with
_*incremented* refcount.
- PyUnicode_FromOrdinal
PyObject* PyUnicode_FromOrdinal(int ordinal)
Create a Unicode Object from the given Unicode code point ordinal.
- PyUnicode_FromString
PyObject* PyUnicode_FromString(const(char)* u)
Similar to PyUnicode_FromUnicode(), but u points to null-terminated
Availability: >= 2.6
Latin-1 encoded bytes
- PyUnicode_FromStringAndSize
PyObject* PyUnicode_FromStringAndSize(const(char)* u, Py_ssize_t size)
Similar to PyUnicode_FromUnicode(), but u points to Latin-1 encoded bytes Availability: >= 2.6
- PyUnicode_FromUnicode
PyObject* PyUnicode_FromUnicode(Py_UNICODE* u, Py_ssize_t size)
Create a Unicode Object from the Py_UNICODE buffer u of the given
size.
- PyUnicode_FromWideChar
PyObject* PyUnicode_FromWideChar(const(wchar)* w, Py_ssize_t size)
Create a Unicode Object from the whcar_t buffer w of the given
size.
- PyUnicode_GET_DATA_SIZE
size_t PyUnicode_GET_DATA_SIZE(PyUnicodeObject* op)
- PyUnicode_GET_SIZE
size_t PyUnicode_GET_SIZE(PyUnicodeObject* op)
- PyUnicode_GetDefaultEncoding
const(char)* PyUnicode_GetDefaultEncoding()
Returns the currently active default encoding.
- PyUnicode_GetMax
Py_UNICODE PyUnicode_GetMax()
Get the maximum ordinal for a Unicode character.
- PyUnicode_GetSize
Py_ssize_t PyUnicode_GetSize(PyObject* unicode)
Get the length of the Unicode object.
- PyUnicode_IsIdentifier
int PyUnicode_IsIdentifier(PyObject* s)
Checks whether argument is a valid identifier. Availability: 3.*
- PyUnicode_Join
PyObject* PyUnicode_Join(PyObject* separator, PyObject* seq)
Join a sequence of strings using the given separator and return
the resulting Unicode string.
- PyUnicode_Partition
PyObject* PyUnicode_Partition(PyObject* s, PyObject* sep)
Partition a string using a given separator. Availability: >= 2.5
- PyUnicode_RPartition
PyObject* PyUnicode_RPartition(PyObject* s, PyObject* sep)
Partition a string using a given separator, searching from the end
of the string.
- PyUnicode_RSplit
PyObject* PyUnicode_RSplit(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicode_Replace
PyObject* PyUnicode_Replace(PyObject* str, PyObject* substr, PyObject* replstr, Py_ssize_t maxcount)
Replace at most maxcount occurrences of substr in str with replstr
and return the resulting Unicode object.
- PyUnicode_Resize
int PyUnicode_Resize(PyObject** unicode, Py_ssize_t length)
Resize an already allocated Unicode object to the new size length.
- PyUnicode_RichCompare
PyObject* PyUnicode_RichCompare(PyObject* left, PyObject* right, int op)
Rich compare two strings and return one of the following:
- PyUnicode_SetDefaultEncoding
int PyUnicode_SetDefaultEncoding(const(char)* encoding)
Sets the currently active default encoding.
- PyUnicode_Split
PyObject* PyUnicode_Split(PyObject* s, PyObject* sep, Py_ssize_t maxsplit)
Split a string giving a list of Unicode strings.
- PyUnicode_Splitlines
PyObject* PyUnicode_Splitlines(PyObject* s, int keepends)
Ditto PyUnicode_Split, but split at line breaks.
- PyUnicode_Tailmatch
Py_ssize_t PyUnicode_Tailmatch(PyObject* str, PyObject* substr, Py_ssize_t start, Py_ssize_t end, int direction)
Return 1 if substr matches str[start:end] at the given tail end, 0
otherwise.
- PyUnicode_TransformDecimalToASCII
PyObject* PyUnicode_TransformDecimalToASCII(Py_UNICODE* s, Py_ssize_t length)
- PyUnicode_Translate
PyObject* PyUnicode_Translate(PyObject* str, PyObject* table, const(char)* errors)
Translate a string by applying a character mapping table to it and
return the resulting Unicode object.
- PyUnicode_TranslateCharmap
PyObject* PyUnicode_TranslateCharmap(Py_UNICODE* data, Py_ssize_t length, PyObject* table, const(char)* errors)
Translate a Py_UNICODE buffer of the given length by applying a
character mapping table to it and return the resulting Unicode
object.
- Py_UNICODE_COPY
void Py_UNICODE_COPY(void* target, void* source, size_t length)
- Py_UNICODE_FILL
void Py_UNICODE_FILL(Py_UNICODE* target, Py_UNICODE value, size_t length)
- Py_UNICODE_ISALNUM
int Py_UNICODE_ISALNUM(Py_UNICODE ch)
- Py_UNICODE_MATCH
int Py_UNICODE_MATCH(PyUnicodeObject* string, size_t offset, PyUnicodeObject* substring)
- Py_UNICODE_strcat
Py_UNICODE* Py_UNICODE_strcat(Py_UNICODE* s1, const(Py_UNICODE)* s2)
- Py_UNICODE_strchr
Py_UNICODE* Py_UNICODE_strchr(const(Py_UNICODE)* s, Py_UNICODE c)
- Py_UNICODE_strcmp
int Py_UNICODE_strcmp(const(Py_UNICODE)* s1, const(Py_UNICODE)* s2)
- Py_UNICODE_strcpy
Py_UNICODE* Py_UNICODE_strcpy(Py_UNICODE* s1, const(Py_UNICODE)* s2)
- Py_UNICODE_strlen
size_t Py_UNICODE_strlen(const(Py_UNICODE)* u)
- Py_UNICODE_strncmp
int Py_UNICODE_strncmp(const(Py_UNICODE)* s1, const(Py_UNICODE)* s2, size_t n)
- Py_UNICODE_strncpy
Py_UNICODE* Py_UNICODE_strncpy(Py_UNICODE* s1, const(Py_UNICODE)* s2, size_t n)
- Py_UNICODE_strrchr
Py_UNICODE* Py_UNICODE_strrchr(const(Py_UNICODE)* s, Py_UNICODE c)
- _PyUnicodeUCS2_AsDefaultEncodedString
PyObject* _PyUnicodeUCS2_AsDefaultEncodedString(PyObject* , const(char)* )
Return a Python string holding the default encoded value of the
Unicode object.
- _PyUnicodeUCS2_DecodeUnicodeInternal
PyObject* _PyUnicodeUCS2_DecodeUnicodeInternal(const(char)* string, Py_ssize_t length, const(char)* errors)
- _PyUnicodeUCS2_FormatAdvanced
PyObject* _PyUnicodeUCS2_FormatAdvanced(PyObject* obj, Py_UNICODE* format_spec, Py_ssize_t format_spec_len)
Format the object based on the format_spec, as defined in PEP 3101
Availability: >= 2.6
(Advanced String Formatting).
- _PyUnicodeUCS2_IsAlpha
int _PyUnicodeUCS2_IsAlpha(Py_UNICODE ch)
- _PyUnicodeUCS2_IsDecimalDigit
int _PyUnicodeUCS2_IsDecimalDigit(Py_UNICODE ch)
- _PyUnicodeUCS2_IsDigit
int _PyUnicodeUCS2_IsDigit(Py_UNICODE ch)
- _PyUnicodeUCS2_IsLinebreak
int _PyUnicodeUCS2_IsLinebreak(Py_UNICODE ch)
- _PyUnicodeUCS2_IsLowercase
int _PyUnicodeUCS2_IsLowercase(Py_UNICODE ch)
- _PyUnicodeUCS2_IsNumeric
int _PyUnicodeUCS2_IsNumeric(Py_UNICODE ch)
- _PyUnicodeUCS2_IsTitlecase
int _PyUnicodeUCS2_IsTitlecase(Py_UNICODE ch)
- _PyUnicodeUCS2_IsUppercase
int _PyUnicodeUCS2_IsUppercase(Py_UNICODE ch)
- _PyUnicodeUCS2_IsWhitespace
int _PyUnicodeUCS2_IsWhitespace(Py_UNICODE ch)
- _PyUnicodeUCS2_ToDecimalDigit
int _PyUnicodeUCS2_ToDecimalDigit(Py_UNICODE ch)
- _PyUnicodeUCS2_ToDigit
int _PyUnicodeUCS2_ToDigit(Py_UNICODE ch)
- _PyUnicodeUCS2_ToLowercase
Py_UNICODE _PyUnicodeUCS2_ToLowercase(Py_UNICODE ch)
- _PyUnicodeUCS2_ToNumeric
double _PyUnicodeUCS2_ToNumeric(Py_UNICODE ch)
- _PyUnicodeUCS2_ToTitlecase
Py_UNICODE _PyUnicodeUCS2_ToTitlecase(Py_UNICODE ch)
- _PyUnicodeUCS2_ToUppercase
Py_UNICODE _PyUnicodeUCS2_ToUppercase(Py_UNICODE ch)
- _PyUnicodeUCS4_AsDefaultEncodedString
PyObject* _PyUnicodeUCS4_AsDefaultEncodedString(PyObject* , const(char)* )
Return a Python string holding the default encoded value of the
Unicode object.
- _PyUnicodeUCS4_DecodeUnicodeInternal
PyObject* _PyUnicodeUCS4_DecodeUnicodeInternal(const(char)* string, Py_ssize_t length, const(char)* errors)
- _PyUnicodeUCS4_FormatAdvanced
PyObject* _PyUnicodeUCS4_FormatAdvanced(PyObject* obj, Py_UNICODE* format_spec, Py_ssize_t format_spec_len)
Format the object based on the format_spec, as defined in PEP 3101
Availability: >= 2.6
(Advanced String Formatting).
- _PyUnicodeUCS4_IsAlpha
int _PyUnicodeUCS4_IsAlpha(Py_UNICODE ch)
- _PyUnicodeUCS4_IsDecimalDigit
int _PyUnicodeUCS4_IsDecimalDigit(Py_UNICODE ch)
- _PyUnicodeUCS4_IsDigit
int _PyUnicodeUCS4_IsDigit(Py_UNICODE ch)
- _PyUnicodeUCS4_IsLinebreak
int _PyUnicodeUCS4_IsLinebreak(Py_UNICODE ch)
- _PyUnicodeUCS4_IsLowercase
int _PyUnicodeUCS4_IsLowercase(Py_UNICODE ch)
- _PyUnicodeUCS4_IsNumeric
int _PyUnicodeUCS4_IsNumeric(Py_UNICODE ch)
- _PyUnicodeUCS4_IsTitlecase
int _PyUnicodeUCS4_IsTitlecase(Py_UNICODE ch)
- _PyUnicodeUCS4_IsUppercase
int _PyUnicodeUCS4_IsUppercase(Py_UNICODE ch)
- _PyUnicodeUCS4_IsWhitespace
int _PyUnicodeUCS4_IsWhitespace(Py_UNICODE ch)
- _PyUnicodeUCS4_ToDecimalDigit
int _PyUnicodeUCS4_ToDecimalDigit(Py_UNICODE ch)
- _PyUnicodeUCS4_ToDigit
int _PyUnicodeUCS4_ToDigit(Py_UNICODE ch)
- _PyUnicodeUCS4_ToLowercase
Py_UNICODE _PyUnicodeUCS4_ToLowercase(Py_UNICODE ch)
- _PyUnicodeUCS4_ToNumeric
double _PyUnicodeUCS4_ToNumeric(Py_UNICODE ch)
- _PyUnicodeUCS4_ToTitlecase
Py_UNICODE _PyUnicodeUCS4_ToTitlecase(Py_UNICODE ch)
- _PyUnicodeUCS4_ToUppercase
Py_UNICODE _PyUnicodeUCS4_ToUppercase(Py_UNICODE ch)
- _PyUnicode_AsDefaultEncodedString
PyObject* _PyUnicode_AsDefaultEncodedString(PyObject* , const(char)* )
Return a Python string holding the default encoded value of the
Unicode object.
- _PyUnicode_DecodeUnicodeInternal
PyObject* _PyUnicode_DecodeUnicodeInternal(const(char)* string, Py_ssize_t length, const(char)* errors)
- _PyUnicode_FormatAdvanced
PyObject* _PyUnicode_FormatAdvanced(PyObject* obj, Py_UNICODE* format_spec, Py_ssize_t format_spec_len)
Format the object based on the format_spec, as defined in PEP 3101
Availability: >= 2.6
(Advanced String Formatting).
- _PyUnicode_FormatLong
PyObject* _PyUnicode_FormatLong(PyObject* , int , int , int )
- _PyUnicode_InsertThousandsGrouping
Py_ssize_t _PyUnicode_InsertThousandsGrouping(Py_UNICODE* buffer, Py_ssize_t n_buffer, Py_UNICODE* digits, Py_ssize_t n_digits, Py_ssize_t min_width, const(char)* grouping, const(char)* thousands_sep)
Using explicit passed-in values, insert the thousands grouping
into the string pointed to by buffer. For the argument descriptions,
Availability: 3.*
see Objects/stringlib/localeutil.h
- _PyUnicode_InsertThousandsGroupingLocale
Py_ssize_t _PyUnicode_InsertThousandsGroupingLocale(Py_UNICODE* buffer, Py_ssize_t n_buffer, Py_UNICODE* digits, Py_ssize_t n_digits, Py_ssize_t min_width)
Using the current locale, insert the thousands grouping
into the string pointed to by buffer. For the argument descriptions,
Availability: >= 3.2
see Objects/stringlib/localeutil.h
- _PyUnicode_IsAlpha
int _PyUnicode_IsAlpha(Py_UNICODE ch)
- _PyUnicode_IsDecimalDigit
int _PyUnicode_IsDecimalDigit(Py_UNICODE ch)
- _PyUnicode_IsDigit
int _PyUnicode_IsDigit(Py_UNICODE ch)
- _PyUnicode_IsLinebreak
int _PyUnicode_IsLinebreak(Py_UNICODE ch)
- _PyUnicode_IsLowercase
int _PyUnicode_IsLowercase(Py_UNICODE ch)
- _PyUnicode_IsNumeric
int _PyUnicode_IsNumeric(Py_UNICODE ch)
- _PyUnicode_IsTitlecase
int _PyUnicode_IsTitlecase(Py_UNICODE ch)
- _PyUnicode_IsTitlecase
int _PyUnicode_IsTitlecase(Py_UCS4 ch)
- _PyUnicode_IsUppercase
int _PyUnicode_IsUppercase(Py_UNICODE ch)
- _PyUnicode_IsWhitespace
int _PyUnicode_IsWhitespace(Py_UNICODE ch)
- _PyUnicode_IsXidStart
int _PyUnicode_IsXidStart(Py_UCS4 ch)
- _PyUnicode_ToDecimalDigit
int _PyUnicode_ToDecimalDigit(Py_UNICODE ch)
- _PyUnicode_ToDigit
int _PyUnicode_ToDigit(Py_UNICODE ch)
- _PyUnicode_ToLowercase
Py_UNICODE _PyUnicode_ToLowercase(Py_UNICODE ch)
- _PyUnicode_ToNumeric
double _PyUnicode_ToNumeric(Py_UNICODE ch)
- _PyUnicode_ToTitlecase
Py_UNICODE _PyUnicode_ToTitlecase(Py_UNICODE ch)
- _PyUnicode_ToUppercase
Py_UNICODE _PyUnicode_ToUppercase(Py_UNICODE ch)
- _PyUnicode_XStrip
PyObject* _PyUnicode_XStrip(PyUnicodeObject* self, int striptype, PyObject* sepobj)
Externally visible for str.strip(unicode)
- substitute_and_alias
string substitute_and_alias(string code)
Undocumented in source. Be warned that the author may not have intended to support it.
Mirror unicodeobject.h
Unicode API names are mangled to assure that UCS-2 and UCS-4 builds produce different external names and thus cause import errors in case Python interpreters and extensions with mixed compiled in Unicode width assumptions are combined.