summaryrefslogtreecommitdiffstats
path: root/Doc/api
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-07-03 13:38:10 (GMT)
committerFred Drake <fdrake@acm.org>2000-07-03 13:38:10 (GMT)
commitae96aab1fedb23c5527906eef17bbfc54d7c04f7 (patch)
treed856aa11eddf25a60b7d7e3d11245327d0b39294 /Doc/api
parenta9c103bc09bbad19c001eaf170e27fc09e34e152 (diff)
downloadcpython-ae96aab1fedb23c5527906eef17bbfc54d7c04f7.zip
cpython-ae96aab1fedb23c5527906eef17bbfc54d7c04f7.tar.gz
cpython-ae96aab1fedb23c5527906eef17bbfc54d7c04f7.tar.bz2
Marc-Andre Lemburg <mal@lemburg.com>:
Update the API docs for the new macros Py_UNICODE_ISALPHA() and Py_UNICODE_ISALNUM().
Diffstat (limited to 'Doc/api')
-rw-r--r--Doc/api/api.tex10
1 files changed, 9 insertions, 1 deletions
diff --git a/Doc/api/api.tex b/Doc/api/api.tex
index d1548e3..a124db3 100644
--- a/Doc/api/api.tex
+++ b/Doc/api/api.tex
@@ -1993,7 +1993,7 @@ Returns 1/0 depending on whether \var{ch} is a lowercase character.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{Py_UNICODE_ISUPPER}{Py_UNICODE ch}
-Returns 1/0 depending on whether \var{ch} is a uppercase character.
+Returns 1/0 depending on whether \var{ch} is an uppercase character.
\end{cfuncdesc}
\begin{cfuncdesc}{int}{Py_UNICODE_ISTITLE}{Py_UNICODE ch}
@@ -2016,6 +2016,14 @@ Returns 1/0 depending on whether \var{ch} is a digit character.
Returns 1/0 depending on whether \var{ch} is a numeric character.
\end{cfuncdesc}
+\begin{cfuncdesc}{int}{Py_UNICODE_ISALPHA}{Py_UNICODE ch}
+Returns 1/0 depending on whether \var{ch} is an alphabetic character.
+\end{cfuncdesc}
+
+\begin{cfuncdesc}{int}{Py_UNICODE_ISALNUM}{Py_UNICODE ch}
+Returns 1/0 depending on whether \var{ch} is an alphanumeric character.
+\end{cfuncdesc}
+
These APIs can be used for fast direct character conversions:
\begin{cfuncdesc}{Py_UNICODE}{Py_UNICODE_TOLOWER}{Py_UNICODE ch}