projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e11787a
)
document PyUnicode_CompareWithASCIIString
author
Benjamin Peterson
<benjamin@python.org>
Tue, 1 Jul 2008 19:12:34 +0000
(19:12 +0000)
committer
Benjamin Peterson
<benjamin@python.org>
Tue, 1 Jul 2008 19:12:34 +0000
(19:12 +0000)
Doc/c-api/unicode.rst
patch
|
blob
|
history
diff --git
a/Doc/c-api/unicode.rst
b/Doc/c-api/unicode.rst
index 653ee6eecacee019e6c3ecc314107fc41011cfc4..e2745910faf02ecb105e0b8bdc33e00db8ef55b3 100644
(file)
--- 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: