# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ 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 10.0.0 which is publicly available from ftp://ftp.unicode.org/. The module uses the same names and symbols as defined by the UnicodeData File Format 10.0.0. """ class UCD(object): def bidirectional(self, chr): """ Returns the bidirectional class assigned to the character chr as string. If no such value is defined, an empty string is returned. """ pass def category(self, chr): """ Returns the general category assigned to the character chr as string. """ pass def combining(self, chr): """ Returns the canonical combining class assigned to the character chr as integer. Returns 0 if no combining class is defined. """ pass def decimal(self, chr, default=None): """ Converts a Unicode character into its equivalent decimal value. Returns the decimal value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass def decomposition(self, chr): """ Returns the character decomposition mapping assigned to the character chr as string. An empty string is returned in case no such mapping is defined. """ pass def digit(self, chr, default=None): """ Converts a Unicode character into its equivalent digit value. Returns the digit value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass def east_asian_width(self, chr): """ Returns the east asian width assigned to the character chr as string. """ pass def lookup(self, name): """ Look up character by name. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. """ pass def mirrored(self, chr): """ Returns the mirrored property assigned to the character chr as integer. Returns 1 if the character has been identified as a "mirrored" character in bidirectional text, 0 otherwise. """ pass def name(self, chr, default=None): """ Returns the name assigned to the character chr as a string. If no name is defined, default is returned, or, if not given, ValueError is raised. """ pass def normalize(self, form, unistr): """ Return the normal form 'form' for the Unicode string unistr. Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'. """ pass def numeric(self, chr, default=None): """ Converts a Unicode character into its equivalent numeric value. Returns the numeric value assigned to the character chr as float. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass unidata_version = None __doc__ = """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 10.0.0 which is publicly available from ftp://ftp.unicode.org/. The module uses the same names and symbols as defined by the UnicodeData File Format 10.0.0.""" __file__ = '/home/shared/src/ide/build-files/build-temp/runtimes-release/__os__/linux-x64/runtime-python3.7/lib/python3.7/lib-dynload/unicodedata.cpython-37m-x86_64-linux-gnu.so' __loader__ = None __name__ = 'unicodedata' __package__ = '' __spec__ = None def bidirectional(chr): """ Returns the bidirectional class assigned to the character chr as string. If no such value is defined, an empty string is returned. """ pass def category(chr): """ Returns the general category assigned to the character chr as string. """ pass def combining(chr): """ Returns the canonical combining class assigned to the character chr as integer. Returns 0 if no combining class is defined. """ pass def decimal(chr, default=None): """ Converts a Unicode character into its equivalent decimal value. Returns the decimal value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass def decomposition(chr): """ Returns the character decomposition mapping assigned to the character chr as string. An empty string is returned in case no such mapping is defined. """ pass def digit(chr, default=None): """ Converts a Unicode character into its equivalent digit value. Returns the digit value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass def east_asian_width(chr): """ Returns the east asian width assigned to the character chr as string. """ pass def lookup(name): """ Look up character by name. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. """ pass def mirrored(chr): """ Returns the mirrored property assigned to the character chr as integer. Returns 1 if the character has been identified as a "mirrored" character in bidirectional text, 0 otherwise. """ pass def name(chr, default=None): """ Returns the name assigned to the character chr as a string. If no name is defined, default is returned, or, if not given, ValueError is raised. """ pass def normalize(form, unistr): """ Return the normal form 'form' for the Unicode string unistr. Valid values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'. """ pass def numeric(chr, default=None): """ Converts a Unicode character into its equivalent numeric value. Returns the numeric value assigned to the character chr as float. If no such value is defined, default is returned, or, if not given, ValueError is raised. """ pass ucd_3_2_0 = None ucnhash_CAPI = None unidata_version = '10.0.0'