diff options
Diffstat (limited to 'Include')
-rw-r--r-- | Include/unicodeobject.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h index d0a2885..2a92fe5 100644 --- a/Include/unicodeobject.h +++ b/Include/unicodeobject.h @@ -517,6 +517,18 @@ extern DL_IMPORT(int) PyUnicode_AsWideChar( #endif +/* --- Unicode ordinals --------------------------------------------------- */ + +/* Create a Unicode Object from the given Unicode code point ordinal. + + The ordinal must be in range(0x10000) on narrow Python builds + (UCS2), and range(0x110000) on wide builds (UCS4). A ValueError is + raised in case it is not. + +*/ + +extern DL_IMPORT(PyObject*) PyUnicode_FromOrdinal(int ordinal); + /* === Builtin Codecs ===================================================== Many of these APIs take two arguments encoding and errors. These |