diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-24 08:10:07 +0000 |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2001-01-24 08:10:07 +0000 |
commit | e3638858f2082d2f08ac9001d71de3899bbb41f6 (patch) | |
tree | d4053a33e0212b5a0dad963b3112f5dd5b62f09a | |
parent | e0a3ac826afda5fcf000bbf97f3af515cbca3c90 (diff) | |
download | cpython-e3638858f2082d2f08ac9001d71de3899bbb41f6.tar.gz |
new unicodedata functions (name, lookup)
-rw-r--r-- | Doc/lib/libunicodedata.tex | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Doc/lib/libunicodedata.tex b/Doc/lib/libunicodedata.tex index bcf0563589..5096652f60 100644 --- a/Doc/lib/libunicodedata.tex +++ b/Doc/lib/libunicodedata.tex @@ -21,6 +21,19 @@ UnicodeData File Format 3.0.0 (see \url{http://www.unicode.org/Public/UNIDATA/UnicodeData.html}). It defines the following functions: +\begin{funcdesc}{lookup}{name} + Look up character by name. If a character with the + given name is found, return the corresponding Unicode + character. If not found, \exception{KeyError} is raised. +\end{funcdesc} + +\begin{funcdesc}{name}{unichr\optional{, default}} + Returns the name assigned to the Unicode character + \var{unichr} as a string. If no name is defined, + \var{default} is returned, or, if not given, + \exception{ValueError} is raised. +\end{funcdesc} + \begin{funcdesc}{decimal}{unichr\optional{, default}} Returns the decimal value assigned to the Unicode character \var{unichr} as integer. If no such value is defined, |