cpython/Modules/_testcapi/unicode.c

#include <stddef.h>               // ptrdiff_t

#include "parts.h"
#include "util.h"

/* Test PyUnicode_New() */
static PyObject *
unicode_new(PyObject *self, PyObject *args)
{}


static PyObject *
unicode_copy(PyObject *unicode)
{}


/* Test PyUnicode_Fill() */
static PyObject *
unicode_fill(PyObject *self, PyObject *args)
{}


/* Test PyUnicode_FromKindAndData() */
static PyObject *
unicode_fromkindanddata(PyObject *self, PyObject *args)
{}


// Test PyUnicode_AsUCS4().
// Part of the limited C API, but the test needs PyUnicode_FromKindAndData().
static PyObject *
unicode_asucs4(PyObject *self, PyObject *args)
{}


// Test PyUnicode_AsUCS4Copy().
// Part of the limited C API, but the test needs PyUnicode_FromKindAndData().
static PyObject *
unicode_asucs4copy(PyObject *self, PyObject *args)
{}


/* Test PyUnicode_AsUTF8() */
static PyObject *
unicode_asutf8(PyObject *self, PyObject *args)
{}


/* Test PyUnicode_CopyCharacters() */
static PyObject *
unicode_copycharacters(PyObject *self, PyObject *args)
{}


// --- PyUnicodeWriter type -------------------------------------------------

WriterObject;


static PyObject *
writer_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{}


static int
writer_init(PyObject *self_raw, PyObject *args, PyObject *kwargs)
{}


static void
writer_dealloc(PyObject *self_raw)
{}


static inline int
writer_check(WriterObject *self)
{}


static PyObject*
writer_write_char(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_utf8(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_widechar(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_ucs4(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_str(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_repr(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_write_substring(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_decodeutf8stateful(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_get_pointer(PyObject *self_raw, PyObject *args)
{}


static PyObject*
writer_finish(PyObject *self_raw, PyObject *Py_UNUSED(args))
{}


static PyMethodDef writer_methods[] =;

static PyType_Slot Writer_Type_slots[] =;

static PyType_Spec Writer_spec =;


static PyMethodDef TestMethods[] =;

int
_PyTestCapi_Init_Unicode(PyObject *m) {}