Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
aed90aba
Commit
aed90aba
authored
Jul 27, 2006
by
Andrew M. Kuchling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update URL; add example
parent
6d0eaff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
Doc/lib/libunicodedata.tex
Doc/lib/libunicodedata.tex
+19
-1
No files found.
Doc/lib/libunicodedata.tex
View file @
aed90aba
...
...
@@ -18,7 +18,7 @@ this database is based on the \file{UnicodeData.txt} file version
The module uses the same names and symbols as defined by the
UnicodeData File Format 4.1.0 (see
\url
{
http://www.unicode.org/Public/4.1
-Update/UnicodeData-4.1.0
.html
}
). It
\url
{
http://www.unicode.org/Public/4.1
.0/ucd/UCD
.html
}
). It
defines the following functions:
\begin{funcdesc}
{
lookup
}{
name
}
...
...
@@ -140,3 +140,21 @@ the Unicode database (such as IDNA).
\versionadded
{
2.5
}
\end{datadesc}
Examples:
\begin{verbatim}
>>> unicodedata.lookup('LEFT CURLY BRACKET')
u'
{
'
>>> unicodedata.name(u'/')
'SOLIDUS'
>>> unicodedata.decimal(u'9')
9
>>> unicodedata.decimal(u'a')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: not a decimal
>>> unicodedata.category(u'A') # 'L'etter, 'u'ppercase
'Lu'
>>> unicodedata.bidirectional(u'
\u
0660') # 'A'rabic, 'N'umber
'AN'
\end{verbatim}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment