Module unicodedata :: Class UCD
[hide private]
[frames] | no frames]

type UCD

object --+
         |
        UCD

Instance Methods [hide private]
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
bidirectional(unichr)
Returns the bidirectional category assigned to the Unicode character unichr as string.
 
category(unichr)
Returns the general category assigned to the Unicode character unichr as string.
 
combining(unichr)
Returns the canonical combining class assigned to the Unicode character unichr as integer.
 
decimal(unichr, default=...)
Returns the decimal value assigned to the Unicode character unichr as integer.
 
decomposition(unichr)
Returns the character decomposition mapping assigned to the Unicode character unichr as string.
 
digit(unichr, default=...)
Returns the digit value assigned to the Unicode character unichr as integer.
 
east_asian_width(unichr)
Returns the east asian width assigned to the Unicode character unichr as string.
 
lookup(name)
Look up character by name.
 
mirrored(unichr)
Returns the mirrored property assigned to the Unicode character unichr as integer.
 
name(unichr, default=...)
Returns the name assigned to the Unicode character unichr as a string.
 
normalize(form, unistr)
Return the normal form 'form' for the Unicode string unistr.
 
numeric(unichr, default=...)
Returns the numeric value assigned to the Unicode character unichr as float.
Properties [hide private]
  unidata_version
Method Details [hide private]

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

bidirectional(unichr)

 

Returns the bidirectional category assigned to the Unicode character unichr as string. If no such value is defined, an empty string is returned.

combining(unichr)

 

Returns the canonical combining class assigned to the Unicode character unichr as integer. Returns 0 if no combining class is defined.

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(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(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.

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(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(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(form, unistr)

 

Return the normal form 'form' for the Unicode string unistr. Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'.

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.