File indexing completed on 2024-04-28 15:54:00
0001 # AUTO-GENERATED FILE -- DO NOT EDIT 0002 0003 """ This module provides access to the Unicode Character Database which 0004 defines character properties for all Unicode characters. The data in 0005 this database is based on the UnicodeData.txt file version 0006 5.2.0 which is publically available from ftp://ftp.unicode.org/. 0007 0008 The module uses the same names and symbols as defined by the 0009 UnicodeData File Format 5.2.0 (see 0010 http://www.unicode.org/reports/tr44/tr44-4.html). """ 0011 0012 class UCD(object): 0013 0014 def bidirectional(self, unichr): 0015 """ bidirectional(unichr) 0016 0017 Returns the bidirectional category assigned to the Unicode character 0018 unichr as string. If no such value is defined, an empty string is 0019 returned. """ 0020 pass 0021 0022 def category(self, unichr): 0023 """ category(unichr) 0024 0025 Returns the general category assigned to the Unicode character 0026 unichr as string. """ 0027 pass 0028 0029 def combining(self, unichr): 0030 """ combining(unichr) 0031 0032 Returns the canonical combining class assigned to the Unicode 0033 character unichr as integer. Returns 0 if no combining class is 0034 defined. """ 0035 pass 0036 0037 def decimal(self, unichr, default=None): 0038 """ decimal(unichr[, default]) 0039 0040 Returns the decimal value assigned to the Unicode character unichr 0041 as integer. If no such value is defined, default is returned, or, if 0042 not given, ValueError is raised. """ 0043 pass 0044 0045 def decomposition(self, unichr): 0046 """ decomposition(unichr) 0047 0048 Returns the character decomposition mapping assigned to the Unicode 0049 character unichr as string. An empty string is returned in case no 0050 such mapping is defined. """ 0051 pass 0052 0053 def digit(self, unichr, default=None): 0054 """ digit(unichr[, default]) 0055 0056 Returns the digit value assigned to the Unicode character unichr as 0057 integer. If no such value is defined, default is returned, or, if 0058 not given, ValueError is raised. """ 0059 pass 0060 0061 def east_asian_width(self, unichr): 0062 """ east_asian_width(unichr) 0063 0064 Returns the east asian width assigned to the Unicode character 0065 unichr as string. """ 0066 pass 0067 0068 def lookup(self, name): 0069 """ lookup(name) 0070 0071 Look up character by name. If a character with the 0072 given name is found, return the corresponding Unicode 0073 character. If not found, KeyError is raised. """ 0074 pass 0075 0076 def mirrored(self, unichr): 0077 """ mirrored(unichr) 0078 0079 Returns the mirrored property assigned to the Unicode character 0080 unichr as integer. Returns 1 if the character has been identified as 0081 a "mirrored" character in bidirectional text, 0 otherwise. """ 0082 pass 0083 0084 def name(self, unichr, default=None): 0085 """ name(unichr[, default]) 0086 Returns the name assigned to the Unicode character unichr as a 0087 string. If no name is defined, default is returned, or, if not 0088 given, ValueError is raised. """ 0089 pass 0090 0091 def normalize(self, form, unistr): 0092 """ normalize(form, unistr) 0093 0094 Return the normal form 'form' for the Unicode string unistr. Valid 0095 values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'. """ 0096 pass 0097 0098 def numeric(self, unichr, default=None): 0099 """ numeric(unichr[, default]) 0100 0101 Returns the numeric value assigned to the Unicode character unichr 0102 as float. If no such value is defined, default is returned, or, if 0103 not given, ValueError is raised. """ 0104 pass 0105 0106 unidata_version = None 0107 0108 __package__ = None 0109 0110 def bidirectional(unichr): 0111 """ bidirectional(unichr) 0112 0113 Returns the bidirectional category assigned to the Unicode character 0114 unichr as string. If no such value is defined, an empty string is 0115 returned. """ 0116 pass 0117 0118 def category(unichr): 0119 """ category(unichr) 0120 0121 Returns the general category assigned to the Unicode character 0122 unichr as string. """ 0123 pass 0124 0125 def combining(unichr): 0126 """ combining(unichr) 0127 0128 Returns the canonical combining class assigned to the Unicode 0129 character unichr as integer. Returns 0 if no combining class is 0130 defined. """ 0131 pass 0132 0133 def decimal(unichr, default=None): 0134 """ decimal(unichr[, default]) 0135 0136 Returns the decimal value assigned to the Unicode character unichr 0137 as integer. If no such value is defined, default is returned, or, if 0138 not given, ValueError is raised. """ 0139 pass 0140 0141 def decomposition(unichr): 0142 """ decomposition(unichr) 0143 0144 Returns the character decomposition mapping assigned to the Unicode 0145 character unichr as string. An empty string is returned in case no 0146 such mapping is defined. """ 0147 pass 0148 0149 def digit(unichr, default=None): 0150 """ digit(unichr[, default]) 0151 0152 Returns the digit value assigned to the Unicode character unichr as 0153 integer. If no such value is defined, default is returned, or, if 0154 not given, ValueError is raised. """ 0155 pass 0156 0157 def east_asian_width(unichr): 0158 """ east_asian_width(unichr) 0159 0160 Returns the east asian width assigned to the Unicode character 0161 unichr as string. """ 0162 pass 0163 0164 def lookup(name): 0165 """ lookup(name) 0166 0167 Look up character by name. If a character with the 0168 given name is found, return the corresponding Unicode 0169 character. If not found, KeyError is raised. """ 0170 pass 0171 0172 def mirrored(unichr): 0173 """ mirrored(unichr) 0174 0175 Returns the mirrored property assigned to the Unicode character 0176 unichr as integer. Returns 1 if the character has been identified as 0177 a "mirrored" character in bidirectional text, 0 otherwise. """ 0178 pass 0179 0180 def name(unichr, default=None): 0181 """ name(unichr[, default]) 0182 Returns the name assigned to the Unicode character unichr as a 0183 string. If no name is defined, default is returned, or, if not 0184 given, ValueError is raised. """ 0185 pass 0186 0187 def normalize(form, unistr): 0188 """ normalize(form, unistr) 0189 0190 Return the normal form 'form' for the Unicode string unistr. Valid 0191 values for form are 'NFC', 'NFKC', 'NFD', and 'NFKD'. """ 0192 pass 0193 0194 def numeric(unichr, default=None): 0195 """ numeric(unichr[, default]) 0196 0197 Returns the numeric value assigned to the Unicode character unichr 0198 as float. If no such value is defined, default is returned, or, if 0199 not given, ValueError is raised. """ 0200 pass 0201 0202 ucd_3_2_0 = None 0203 ucnhash_CAPI = None 0204 unidata_version = '5.2.0' 0205