unicodeobject.h File Reference

Classes

struct  PyASCIIObject
 
struct  PyCompactUnicodeObject
 
struct  PyUnicodeObject
 
struct  _PyUnicodeWriter
 

Macros

#define PY_UNICODE_TYPE
 
#define Py_UNICODE_ISSPACE(ch)
 
#define Py_UNICODE_ISLOWER(ch)
 
#define Py_UNICODE_ISUPPER(ch)
 
#define Py_UNICODE_ISTITLE(ch)
 
#define Py_UNICODE_ISLINEBREAK(ch)
 
#define Py_UNICODE_TOLOWER(ch)
 
#define Py_UNICODE_TOUPPER(ch)
 
#define Py_UNICODE_TOTITLE(ch)
 
#define Py_UNICODE_ISDECIMAL(ch)
 
#define Py_UNICODE_ISDIGIT(ch)
 
#define Py_UNICODE_ISNUMERIC(ch)
 
#define Py_UNICODE_ISPRINTABLE(ch)
 
#define Py_UNICODE_TODECIMAL(ch)
 
#define Py_UNICODE_TODIGIT(ch)
 
#define Py_UNICODE_TONUMERIC(ch)
 
#define Py_UNICODE_ISALPHA(ch)
 
#define Py_UNICODE_ISALNUM(ch)
 
#define Py_UNICODE_IS_SURROGATE(ch)
 
#define Py_UNICODE_IS_HIGH_SURROGATE(ch)
 
#define Py_UNICODE_IS_LOW_SURROGATE(ch)
 
#define Py_UNICODE_JOIN_SURROGATES(high, low)
 
#define Py_UNICODE_HIGH_SURROGATE(ch)
 
#define Py_UNICODE_LOW_SURROGATE(ch)
 
#define PyUnicode_GET_SIZE(op)
 
#define PyUnicode_GET_DATA_SIZE(op)
 
#define PyUnicode_AS_UNICODE(op)
 
#define PyUnicode_AS_DATA(op)
 
#define SSTATE_NOT_INTERNED
 
#define SSTATE_INTERNED_MORTAL
 
#define SSTATE_INTERNED_IMMORTAL
 
#define PyUnicode_IS_ASCII(op)
 
#define PyUnicode_IS_COMPACT(op)
 
#define PyUnicode_IS_COMPACT_ASCII(op)
 
#define PyUnicode_1BYTE_DATA(op)
 
#define PyUnicode_2BYTE_DATA(op)
 
#define PyUnicode_4BYTE_DATA(op)
 
#define PyUnicode_KIND(op)
 
#define _PyUnicode_COMPACT_DATA(op)
 
#define _PyUnicode_NONCOMPACT_DATA(op)
 
#define PyUnicode_DATA(op)
 
#define PyUnicode_WRITE(kind, data, index, value)
 
#define PyUnicode_READ(kind, data, index)
 
#define PyUnicode_READ_CHAR(unicode, index)
 
#define PyUnicode_GET_LENGTH(op)
 
#define PyUnicode_IS_READY(op)
 
#define PyUnicode_READY(op)
 
#define PyUnicode_MAX_CHAR_VALUE(op)
 
#define PyUnicode_WSTR_LENGTH(op)
 
#define _PyUnicodeWriter_Prepare(WRITER, LENGTH, MAXCHAR)
 
#define _PyUnicodeWriter_PrepareKind(WRITER, KIND)
 
#define _PyUnicode_AsStringAndSize
 
#define _PyUnicode_AsString
 

Typedefs

typedef wchar_t Py_UNICODE
 

Enumerations

enum  PyUnicode_Kind {
  PyUnicode_WCHAR_KIND ,
  PyUnicode_1BYTE_KIND ,
  PyUnicode_2BYTE_KIND ,
  PyUnicode_4BYTE_KIND
}
 

Functions

 Py_DEPRECATED (3.3) static inline void Py_UNICODE_COPY(Py_UNICODE *target
 
 for (i=0;i< length;i++)
 
 PyAPI_FUNC (int) _PyUnicode_CheckConsistency(PyObject *op
 
 PyAPI_FUNC (PyObject *) PyUnicode_New(Py_ssize_t size
 
 PyAPI_FUNC (Py_ssize_t) PyUnicode_CopyCharacters(PyObject *to
 
 PyAPI_FUNC (void) _PyUnicode_FastCopyCharacters(PyObject *to
 
 PyAPI_FUNC (Py_UCS4) _PyUnicode_FindMaxChar(PyObject *unicode
 
 PyAPI_FUNC (const char *) PyUnicode_AsUTF8AndSize(PyObject *unicode
 
 PyAPI_DATA (const unsigned char) _Py_ascii_whitespace[]
 
 PyAPI_FUNC (double) _PyUnicode_ToNumeric(Py_UCS4 ch)
 

Variables

const Py_UNICODEsource
 
const Py_UNICODE Py_ssize_t length
 
Py_UNICODE value
 
int check_content
 
Py_UCS4 maxchar
 
Py_ssize_t to_start
 
Py_ssize_t PyObjectfrom
 
Py_ssize_t PyObject Py_ssize_t from_start
 
Py_ssize_t PyObject Py_ssize_t Py_ssize_t how_many
 
Py_ssize_t start
 
Py_ssize_t Py_ssize_t Py_UCS4 fill_char
 
Py_ssize_t size
 
const void * buffer
 
Py_ssize_t Py_ssize_t end
 
enum PyUnicode_Kind kind
 
Py_UCS4 ch
 
PyObjectstr
 
const char Py_ssize_t len
 
PyObjectobj
 
PyObject PyObjectformat_spec
 
Py_ssize_t const char * encoding
 
Py_ssize_t const char const char * errors
 
Py_ssize_t int base64SetO
 
Py_ssize_t int int base64WhiteSpace
 
Py_ssize_t const char int byteorder
 
Py_ssize_t const char const char ** first_invalid_escape
 
Py_ssize_t PyObjectmapping
 
Py_ssize_t PyObjecttable
 
Py_ssize_t char * output
 
PyObject *const * items
 
PyObject *const Py_ssize_t seqlen
 
_Py_Identifierright
 
int striptype
 
int PyObjectsepobj
 
Py_ssize_t n_buffer
 
Py_ssize_t PyObjectdigits
 
Py_ssize_t PyObject Py_ssize_t d_pos
 
Py_ssize_t PyObject Py_ssize_t Py_ssize_t n_digits
 
Py_ssize_t PyObject Py_ssize_t Py_ssize_t Py_ssize_t min_width
 
Py_ssize_t PyObject Py_ssize_t Py_ssize_t Py_ssize_t const char * grouping
 
Py_ssize_t PyObject Py_ssize_t Py_ssize_t Py_ssize_t const char PyObjectthousands_sep
 
Py_UCS4res
 
const Py_UNICODEs2
 
const Py_UNICODE size_t n
 
Py_UNICODE c
 
 int
 

Macro Definition Documentation

◆ PY_UNICODE_TYPE

#define PY_UNICODE_TYPE

◆ Py_UNICODE_ISSPACE

#define Py_UNICODE_ISSPACE (   ch)

◆ Py_UNICODE_ISLOWER

#define Py_UNICODE_ISLOWER (   ch)

◆ Py_UNICODE_ISUPPER

#define Py_UNICODE_ISUPPER (   ch)

◆ Py_UNICODE_ISTITLE

#define Py_UNICODE_ISTITLE (   ch)

◆ Py_UNICODE_ISLINEBREAK

#define Py_UNICODE_ISLINEBREAK (   ch)

◆ Py_UNICODE_TOLOWER

#define Py_UNICODE_TOLOWER (   ch)

◆ Py_UNICODE_TOUPPER

#define Py_UNICODE_TOUPPER (   ch)

◆ Py_UNICODE_TOTITLE

#define Py_UNICODE_TOTITLE (   ch)

◆ Py_UNICODE_ISDECIMAL

#define Py_UNICODE_ISDECIMAL (   ch)

◆ Py_UNICODE_ISDIGIT

#define Py_UNICODE_ISDIGIT (   ch)

◆ Py_UNICODE_ISNUMERIC

#define Py_UNICODE_ISNUMERIC (   ch)

◆ Py_UNICODE_ISPRINTABLE

#define Py_UNICODE_ISPRINTABLE (   ch)

◆ Py_UNICODE_TODECIMAL

#define Py_UNICODE_TODECIMAL (   ch)

◆ Py_UNICODE_TODIGIT

#define Py_UNICODE_TODIGIT (   ch)

◆ Py_UNICODE_TONUMERIC

#define Py_UNICODE_TONUMERIC (   ch)

◆ Py_UNICODE_ISALPHA

#define Py_UNICODE_ISALPHA (   ch)

◆ Py_UNICODE_ISALNUM

#define Py_UNICODE_ISALNUM (   ch)

◆ Py_UNICODE_IS_SURROGATE

#define Py_UNICODE_IS_SURROGATE (   ch)

◆ Py_UNICODE_IS_HIGH_SURROGATE

#define Py_UNICODE_IS_HIGH_SURROGATE (   ch)

◆ Py_UNICODE_IS_LOW_SURROGATE

#define Py_UNICODE_IS_LOW_SURROGATE (   ch)

◆ Py_UNICODE_JOIN_SURROGATES

#define Py_UNICODE_JOIN_SURROGATES (   high,
  low 
)

◆ Py_UNICODE_HIGH_SURROGATE

#define Py_UNICODE_HIGH_SURROGATE (   ch)

◆ Py_UNICODE_LOW_SURROGATE

#define Py_UNICODE_LOW_SURROGATE (   ch)

◆ PyUnicode_GET_SIZE

#define PyUnicode_GET_SIZE (   op)

◆ PyUnicode_GET_DATA_SIZE

#define PyUnicode_GET_DATA_SIZE (   op)

◆ PyUnicode_AS_UNICODE

#define PyUnicode_AS_UNICODE (   op)

◆ PyUnicode_AS_DATA

#define PyUnicode_AS_DATA (   op)

◆ SSTATE_NOT_INTERNED

#define SSTATE_NOT_INTERNED

◆ SSTATE_INTERNED_MORTAL

#define SSTATE_INTERNED_MORTAL

◆ SSTATE_INTERNED_IMMORTAL

#define SSTATE_INTERNED_IMMORTAL

◆ PyUnicode_IS_ASCII

#define PyUnicode_IS_ASCII (   op)

◆ PyUnicode_IS_COMPACT

#define PyUnicode_IS_COMPACT (   op)

◆ PyUnicode_IS_COMPACT_ASCII

#define PyUnicode_IS_COMPACT_ASCII (   op)

◆ PyUnicode_1BYTE_DATA

#define PyUnicode_1BYTE_DATA (   op)

◆ PyUnicode_2BYTE_DATA

#define PyUnicode_2BYTE_DATA (   op)

◆ PyUnicode_4BYTE_DATA

#define PyUnicode_4BYTE_DATA (   op)

◆ PyUnicode_KIND

#define PyUnicode_KIND (   op)

◆ _PyUnicode_COMPACT_DATA

#define _PyUnicode_COMPACT_DATA (   op)

◆ _PyUnicode_NONCOMPACT_DATA

#define _PyUnicode_NONCOMPACT_DATA (   op)

◆ PyUnicode_DATA

#define PyUnicode_DATA (   op)

◆ PyUnicode_WRITE

#define PyUnicode_WRITE (   kind,
  data,
  index,
  value 
)

◆ PyUnicode_READ

#define PyUnicode_READ (   kind,
  data,
  index 
)

◆ PyUnicode_READ_CHAR

#define PyUnicode_READ_CHAR (   unicode,
  index 
)

◆ PyUnicode_GET_LENGTH

#define PyUnicode_GET_LENGTH (   op)

◆ PyUnicode_IS_READY

#define PyUnicode_IS_READY (   op)

◆ PyUnicode_READY

#define PyUnicode_READY (   op)

◆ PyUnicode_MAX_CHAR_VALUE

#define PyUnicode_MAX_CHAR_VALUE (   op)

◆ PyUnicode_WSTR_LENGTH

#define PyUnicode_WSTR_LENGTH (   op)

◆ _PyUnicodeWriter_Prepare

#define _PyUnicodeWriter_Prepare (   WRITER,
  LENGTH,
  MAXCHAR 
)

◆ _PyUnicodeWriter_PrepareKind

#define _PyUnicodeWriter_PrepareKind (   WRITER,
  KIND 
)

◆ _PyUnicode_AsStringAndSize

#define _PyUnicode_AsStringAndSize

◆ _PyUnicode_AsString

#define _PyUnicode_AsString

Typedef Documentation

◆ Py_UNICODE

typedef wchar_t Py_UNICODE

Enumeration Type Documentation

◆ PyUnicode_Kind

Enumerator
PyUnicode_WCHAR_KIND 
PyUnicode_1BYTE_KIND 
PyUnicode_2BYTE_KIND 
PyUnicode_4BYTE_KIND 

Function Documentation

◆ Py_DEPRECATED()

Py_DEPRECATED ( 3.  3)

◆ for()

for ( )

◆ PyAPI_FUNC() [1/7]

PyAPI_FUNC ( int  )

◆ PyAPI_FUNC() [2/7]

PyAPI_FUNC ( PyObject )

◆ PyAPI_FUNC() [3/7]

PyAPI_FUNC ( Py_ssize_t  )

◆ PyAPI_FUNC() [4/7]

PyAPI_FUNC ( void  )

◆ PyAPI_FUNC() [5/7]

PyAPI_FUNC ( Py_UCS4  )

◆ PyAPI_FUNC() [6/7]

PyAPI_FUNC ( const char *  )

◆ PyAPI_DATA()

PyAPI_DATA ( const unsigned char  )

◆ PyAPI_FUNC() [7/7]

PyAPI_FUNC ( double  )

Variable Documentation

◆ source

const Py_UNICODE* source

◆ length

Py_ssize_t length

◆ value

Py_UNICODE value

◆ check_content

int check_content

◆ maxchar

◆ to_start

Py_ssize_t to_start

◆ from

◆ from_start

◆ how_many

◆ start

◆ fill_char

◆ size

Py_ssize_t size

◆ buffer

const void* buffer

◆ end

◆ kind

enum PyUnicode_Kind kind

◆ ch

Py_UCS4 ch

◆ str

const char* str

◆ len

const char Py_ssize_t len

◆ obj

PyObject* obj

◆ format_spec

PyObject PyObject* format_spec

◆ encoding

Py_ssize_t const char* encoding

◆ errors

Py_ssize_t char const char* errors

◆ base64SetO

int base64SetO

◆ base64WhiteSpace

int int base64WhiteSpace

◆ byteorder

Py_ssize_t const char int * byteorder

◆ first_invalid_escape

Py_ssize_t const char const char** first_invalid_escape

◆ mapping

PyObject * mapping

◆ table

◆ output

Py_ssize_t char* output

◆ items

PyObject* const* items

◆ seqlen

PyObject* const Py_ssize_t seqlen

◆ right

PyObject * right

◆ striptype

int striptype

◆ sepobj

int PyObject* sepobj

◆ n_buffer

Py_ssize_t n_buffer

◆ digits

◆ d_pos

◆ n_digits

◆ min_width

◆ grouping

◆ thousands_sep

◆ res

Py_UCS4 * res

◆ s2

const Py_UNICODE * s2

◆ n

unsigned char size_t n

◆ c

const char int PyObject PyObject int c

◆ int

int