From: Benjamin Peterson Date: Tue, 1 Jul 2008 19:12:34 +0000 (+0000) Subject: document PyUnicode_CompareWithASCIIString X-Git-Tag: v3.0b2~132 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c22ed14ddd640f206e1e334fcb4ed4ab4de0951e;p=thirdparty%2FPython%2Fcpython.git document PyUnicode_CompareWithASCIIString --- diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 653ee6eecace..e2745910faf0 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -869,6 +869,12 @@ They all return *NULL* or ``-1`` if an exception occurs. respectively. +.. cfunction:: int PyUnicode_CompareWithASCIIString(PyObject *uni, char *string) + + Compare a unicode object, *uni*, with *string* and return -1, 0, 1 for less + than, equal, and greater than, respectively. + + .. cfunction:: int PyUnicode_RichCompare(PyObject *left, PyObject *right, int op) Rich compare two unicode strings and return one of the following: