summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-01 19:12:34 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-01 19:12:34 (GMT)
commitc22ed14ddd640f206e1e334fcb4ed4ab4de0951e (patch)
tree5617434bb920683783ef96c0b4d6ee651c72b3b1 /Doc/c-api
parente11787a4e83b4dec4ef60099fcc953191a8b8ddc (diff)
downloadcpython-c22ed14ddd640f206e1e334fcb4ed4ab4de0951e.zip
cpython-c22ed14ddd640f206e1e334fcb4ed4ab4de0951e.tar.gz
cpython-c22ed14ddd640f206e1e334fcb4ed4ab4de0951e.tar.bz2
document PyUnicode_CompareWithASCIIString
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/unicode.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst
index 653ee6e..e274591 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: