File: unicodedata.py

package info (click to toggle)
kdevelop-python 24.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 12,640 kB
  • sloc: python: 183,048; cpp: 18,798; xml: 140; sh: 14; makefile: 9
file content (205 lines) | stat: -rw-r--r-- 6,087 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# 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
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). """

class UCD(object):

  def bidirectional(self, unichr):
    """ 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. """
    pass

  def category(self, unichr):
    """ category(unichr)
    
    Returns the general category assigned to the Unicode character
    unichr as string. """
    pass

  def combining(self, unichr):
    """ combining(unichr)
    
    Returns the canonical combining class assigned to the Unicode
    character unichr as integer. Returns 0 if no combining class is
    defined. """
    pass

  def decimal(self, unichr, default=None):
    """ 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. """
    pass

  def decomposition(self, unichr):
    """ 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. """
    pass

  def digit(self, unichr, default=None):
    """ 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. """
    pass

  def east_asian_width(self, unichr):
    """ east_asian_width(unichr)
    
    Returns the east asian width assigned to the Unicode character
    unichr as string. """
    pass

  def lookup(self, name):
    """ 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. """
    pass

  def mirrored(self, unichr):
    """ 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. """
    pass

  def name(self, unichr, default=None):
    """ 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. """
    pass

  def normalize(self, form, unistr):
    """ 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(self, unichr, default=None):
    """ 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. """
    pass

  unidata_version = None

__package__ = None

def bidirectional(unichr):
  """ 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. """
  pass

def category(unichr):
  """ category(unichr)
  
  Returns the general category assigned to the Unicode character
  unichr as string. """
  pass

def combining(unichr):
  """ combining(unichr)
  
  Returns the canonical combining class assigned to the Unicode
  character unichr as integer. Returns 0 if no combining class is
  defined. """
  pass

def decimal(unichr, default=None):
  """ 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. """
  pass

def decomposition(unichr):
  """ 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. """
  pass

def digit(unichr, default=None):
  """ 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. """
  pass

def east_asian_width(unichr):
  """ east_asian_width(unichr)
  
  Returns the east asian width assigned to the Unicode character
  unichr as string. """
  pass

def lookup(name):
  """ 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. """
  pass

def mirrored(unichr):
  """ 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. """
  pass

def name(unichr, default=None):
  """ 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. """
  pass

def normalize(form, unistr):
  """ 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(unichr, default=None):
  """ 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. """
  pass

ucd_3_2_0 = None
ucnhash_CAPI = None
unidata_version = '5.2.0'