unicodedata
index
/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/unicodedata.so
Module Docs

This module provides access to the Unicode Character Database which
defines character properties for all Unicode characters. The data in
this database is based on the UnicodeData.txt file version
5.2.0 which is publically available from ftp://ftp.unicode.org/.
 
The module uses the same names and symbols as defined by the
UnicodeData File Format 5.2.0 (see
http://www.unicode.org/reports/tr44/tr44-4.html).

 
Classes
       
__builtin__.object
UCD

 
class UCD(__builtin__.object)
     Methods defined here:
__getattribute__(...)
x.__getattribute__('name') <==> x.name
bidirectional(...)
bidirectional(unichr)
 
Returns the bidirectional class assigned to the Unicode character
unichr as string. If no such value is defined, an empty string is
returned.
category(...)
category(unichr)
 
Returns the general category assigned to the Unicode character
unichr as string.
combining(...)
combining(unichr)
 
Returns the canonical combining class assigned to the Unicode
character unichr as integer. Returns 0 if no combining class is
defined.
decimal(...)
decimal(unichr[, default])
 
Returns the decimal value assigned to the Unicode character unichr
as integer. If no such value is defined, default is returned, or, if
not given, ValueError is raised.
decomposition(...)
decomposition(unichr)
 
Returns the character decomposition mapping assigned to the Unicode
character unichr as string. An empty string is returned in case no
such mapping is defined.
digit(...)
digit(unichr[, default])
 
Returns the digit value assigned to the Unicode character unichr as
integer. If no such value is defined, default is returned, or, if
not given, ValueError is raised.
east_asian_width(...)
east_asian_width(unichr)
 
Returns the east asian width assigned to the Unicode character
unichr as string.
lookup(...)
lookup(name)
 
Look up character by name.  If a character with the
given name is found, return the corresponding Unicode
character.  If not found, KeyError is raised.
mirrored(...)
mirrored(unichr)
 
Returns the mirrored property assigned to the Unicode character
unichr as integer. Returns 1 if the character has been identified as
a "mirrored" character in bidirectional text, 0 otherwise.
name(...)
name(unichr[, default])
Returns the name assigned to the Unicode character unichr as a
string. If no name is defined, default is returned, or, if not
given, ValueError is raised.
normalize(...)
normalize(form, unistr)
 
Return the normal form 'form' for the Unicode string unistr.  Valid
values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
numeric(...)
numeric(unichr[, default])
 
Returns the numeric value assigned to the Unicode character unichr
as float. If no such value is defined, default is returned, or, if
not given, ValueError is raised.

Data descriptors defined here:
unidata_version

 
Functions
       
bidirectional(...)
bidirectional(unichr)
 
Returns the bidirectional class assigned to the Unicode character
unichr as string. If no such value is defined, an empty string is
returned.
category(...)
category(unichr)
 
Returns the general category assigned to the Unicode character
unichr as string.
combining(...)
combining(unichr)
 
Returns the canonical combining class assigned to the Unicode
character unichr as integer. Returns 0 if no combining class is
defined.
decimal(...)
decimal(unichr[, default])
 
Returns the decimal value assigned to the Unicode character unichr
as integer. If no such value is defined, default is returned, or, if
not given, ValueError is raised.
decomposition(...)
decomposition(unichr)
 
Returns the character decomposition mapping assigned to the Unicode
character unichr as string. An empty string is returned in case no
such mapping is defined.
digit(...)
digit(unichr[, default])
 
Returns the digit value assigned to the Unicode character unichr as
integer. If no such value is defined, default is returned, or, if
not given, ValueError is raised.
east_asian_width(...)
east_asian_width(unichr)
 
Returns the east asian width assigned to the Unicode character
unichr as string.
lookup(...)
lookup(name)
 
Look up character by name.  If a character with the
given name is found, return the corresponding Unicode
character.  If not found, KeyError is raised.
mirrored(...)
mirrored(unichr)
 
Returns the mirrored property assigned to the Unicode character
unichr as integer. Returns 1 if the character has been identified as
a "mirrored" character in bidirectional text, 0 otherwise.
name(...)
name(unichr[, default])
Returns the name assigned to the Unicode character unichr as a
string. If no name is defined, default is returned, or, if not
given, ValueError is raised.
normalize(...)
normalize(form, unistr)
 
Return the normal form 'form' for the Unicode string unistr.  Valid
values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
numeric(...)
numeric(unichr[, default])
 
Returns the numeric value assigned to the Unicode character unichr
as float. If no such value is defined, default is returned, or, if
not given, ValueError is raised.

 
Data
        ucd_3_2_0 = <unicodedata.UCD object>
ucnhash_CAPI = <capsule object "unicodedata.ucnhash_CAPI">
unidata_version = '5.2.0'