7.2.1 String Objects

PyStringObject
This subtype of PyObject represents a Python string object.

PyTypeObject PyString_Type
This instance of PyTypeObject represents the Python string type.

int PyString_Check(PyObject *o)

PyObject* PyString_FromStringAndSize(const char *v, int len)

PyObject* PyString_FromString(const char *v)

int PyString_Size(PyObject *string)

char* PyString_AsString(PyObject *string)

void PyString_Concat(PyObject **string, PyObject *newpart)

void PyString_ConcatAndDel(PyObject **string, PyObject *newpart)

int _PyString_Resize(PyObject **string, int newsize)

PyObject* PyString_Format(PyObject *format, PyObject *args)

void PyString_InternInPlace(PyObject **string)

PyObject* PyString_InternFromString(const char *v)

char* PyString_AS_STRING(PyObject *string)

int PyString_GET_SIZE(PyObject *string)


guido@python.org