Home
last modified time | relevance | path

Searched refs:unicodedata (Results 1 – 25 of 122) sorted by relevance

12345

/external/fonttools/Tests/
Dunicodedata_test.py5 from fontTools import unicodedata
11 assert unicodedata.script("a") == "Latn"
12 assert unicodedata.script(unichr(0)) == "Zyyy"
13 assert unicodedata.script(unichr(0x0378)) == "Zzzz"
14 assert unicodedata.script(unichr(0x10FFFF)) == "Zzzz"
17 assert unicodedata.script(unichr(0x1E918)) == 'Adlm'
18 assert unicodedata.script(unichr(0x1170D)) == 'Ahom'
19 assert unicodedata.script(unichr(0x145A0)) == 'Hluw'
20 assert unicodedata.script(unichr(0x0607)) == 'Arab'
21 assert unicodedata.script(unichr(0x056C)) == 'Armn'
[all …]
/external/python/cpython3/Lib/
Dstringprep.py8 from unicodedata import ucd_3_2_0 as unicodedata unknown
10 assert unicodedata.unidata_version == '3.2.0'
13 if unicodedata.category(code) != 'Cn': return False
197 b = unicodedata.normalize("NFKC", al)
199 c = unicodedata.normalize("NFKC", bl)
211 return unicodedata.category(code) == "Zs" and code != " "
214 return unicodedata.category(code) == "Zs"
218 return ord(code) < 128 and unicodedata.category(code) == "Cc"
224 if unicodedata.category(code) == "Cc": return True
228 return unicodedata.category(code) == "Cc" or \
[all …]
/external/python/cpython3/Lib/test/
Dtest_ucn.py11 import unicodedata
72 code = unicodedata.lookup(name)
73 self.assertEqual(unicodedata.name(code), name)
90 self.assertRaises(ValueError, unicodedata.name, "\ud7a4")
107 name = unicodedata.name(char, None)
109 self.assertEqual(unicodedata.lookup(name), char)
136 name = unicodedata.name(chr(codepoint))
138 self.assertEqual(unicodedata.lookup(alias),
139 unicodedata.lookup(name))
141 unicodedata.ucd_3_2_0.lookup(alias)
[all …]
Dtest_unicode_file.py5 import unicodedata
49 base = unicodedata.normalize("NFD", base)
50 file_list = [unicodedata.normalize("NFD", f) for f in file_list]
93 cwd_result = unicodedata.normalize("NFD", cwd_result)
94 name_result = unicodedata.normalize("NFD", name_result)
Dtest_unicodedata.py73 import unicodedata
74 self.db = unicodedata
290 import unicodedata
292 self.assertTrue(unicodedata.mirrored("\u0f3a"))
293 self.assertTrue(not unicodedata.ucd_3_2_0.mirrored("\u0f3a"))
/external/python/cpython2/Lib/test/
Dtest_ucn.py68 import unicodedata
72 code = unicodedata.lookup(name)
73 self.assertEqual(unicodedata.name(code), name)
90 import unicodedata
91 self.assertRaises(ValueError, unicodedata.name, u"\ud7a4")
102 import unicodedata
106 name = unicodedata.name(char, None)
108 self.assertEqual(unicodedata.lookup(name), char)
118 import unicodedata
119 self.assertRaises(TypeError, unicodedata.name)
[all …]
Dtest_unicode_file.py5 import unicodedata
71 base = unicodedata.normalize("NFD", base)
72 file_list = [unicodedata.normalize("NFD", f) for f in file_list]
129 cwd_result = unicodedata.normalize("NFD", cwd_result)
130 name_result = unicodedata.normalize("NFD", name_result)
Dtest_unicodedata.py73 import unicodedata
74 self.db = unicodedata
284 import unicodedata
286 self.assertTrue(unicodedata.mirrored(u"\u0f3a"))
287 self.assertTrue(not unicodedata.ucd_3_2_0.mirrored(u"\u0f3a"))
/external/python/cpython2/PC/VC6/
Dunicodedata.dsp1 # Microsoft Developer Studio Project File - Name="unicodedata" - Package Owner=<4>
7 CFG=unicodedata - Win32 Debug
11 !MESSAGE NMAKE /f "unicodedata.mak".
16 !MESSAGE NMAKE /f "unicodedata.mak" CFG="unicodedata - Win32 Debug"
20 !MESSAGE "unicodedata - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE "unicodedata - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
26 # PROP Scc_ProjName "unicodedata"
32 !IF "$(CFG)" == "unicodedata - Win32 Release"
42 # PROP Intermediate_Dir "x86-temp-release\unicodedata"
57 ….lib odbc32.lib odbccp32.lib /nologo /base:"0x1D120000" /dll /machine:I386 /out:"./unicodedata.pyd"
[all …]
/external/python/cpython2/Tools/pybench/
DUnicode.py455 import unicodedata
469 digit = unicodedata.digit
470 numeric = unicodedata.numeric
471 decimal = unicodedata.decimal
472 category = unicodedata.category
473 bidirectional = unicodedata.bidirectional
474 decomposition = unicodedata.decomposition
475 mirrored = unicodedata.mirrored
476 combining = unicodedata.combining
531 digit = unicodedata.digit
[all …]
/external/python/cpython2/Lib/
Dstringprep.py8 from unicodedata import ucd_3_2_0 as unicodedata unknown
10 assert unicodedata.unidata_version == '3.2.0'
13 if unicodedata.category(code) != 'Cn': return False
197 b = unicodedata.normalize("NFKC", al)
199 c = unicodedata.normalize("NFKC", bl)
211 return unicodedata.category(code) == "Zs" and code != u" "
214 return unicodedata.category(code) == "Zs"
218 return ord(code) < 128 and unicodedata.category(code) == "Cc"
224 if unicodedata.category(code) == "Cc": return True
228 return unicodedata.category(code) == "Cc" or \
[all …]
/external/python/cpython3/Tools/unicode/
Dmkstringprep.py2 from unicodedata import ucd_3_2_0 as unicodedata unknown
9 if unicodedata.category(chr(i)) in cats:
14 if unicodedata.bidirectional(chr(i)) in cats:
125 print("assert unicodedata.unidata_version == %r" % (unicodedata.unidata_version,))
213 b = unicodedata.normalize("NFKC", al)
215 c = unicodedata.normalize("NFKC", bl)
Dgenwincodec.py9 import unicodedata
32 name = unicodedata.name(buf[0])
/external/python/setuptools/setuptools/
Dunicode_utils.py1 import unicodedata
10 return unicodedata.normalize('NFD', path)
13 path = unicodedata.normalize('NFD', path)
/external/python/cpython2/Doc/library/
Dunicodedata.rst2 :mod:`unicodedata` --- Unicode Database
5 .. module:: unicodedata
155 >>> import unicodedata
156 >>> unicodedata.lookup('LEFT CURLY BRACKET')
158 >>> unicodedata.name(u'/')
160 >>> unicodedata.decimal(u'9')
162 >>> unicodedata.decimal(u'a')
166 >>> unicodedata.category(u'A') # 'L'etter, 'u'ppercase
168 >>> unicodedata.bidirectional(u'\u0660') # 'A'rabic, 'N'umber
/external/python/cpython3/Doc/library/
Dunicodedata.rst1 :mod:`unicodedata` --- Unicode Database
4 .. module:: unicodedata
152 >>> import unicodedata
153 >>> unicodedata.lookup('LEFT CURLY BRACKET')
155 >>> unicodedata.name('/')
157 >>> unicodedata.decimal('9')
159 >>> unicodedata.decimal('a')
163 >>> unicodedata.category('A') # 'L'etter, 'u'ppercase
165 >>> unicodedata.bidirectional('\u0660') # 'A'rabic, 'N'umber
/external/fonttools/Lib/fontTools/
Dunicode.py39 import unicodedata2 as unicodedata namespace
41 import unicodedata
43 return unicodedata.name(unichr(charCode))
Dttx.py125 unicodedata = None variable in Options
193 self.unicodedata = value
260 if options.unicodedata:
261 setUnicodeData(options.unicodedata)
/external/python/cpython2/Tools/unicode/
Dmkstringprep.py1 import re, unicodedata, sys
8 if unicodedata.category(unichr(i)) in cats:
13 if unicodedata.bidirectional(unichr(i)) in cats:
119 print "assert unicodedata.unidata_version == %s" % repr(unicodedata.unidata_version)
207 b = unicodedata.normalize("NFKC", al)
209 c = unicodedata.normalize("NFKC", bl)
Dgenwincodec.py9 import unicodedata
32 name = unicodedata.name(buf[0])
/external/python/cpython3/Tools/scripts/
Dfind-uname.py19 import unicodedata
27 unicode_names.append((ix, unicodedata.name(chr(ix))))
/external/python/cpython2/Demo/scripts/
Dfind-uname.py19 import unicodedata
27 unicode_names.append((ix, unicodedata.name(unichr(ix))))
/external/python/setuptools/setuptools/tests/
Denvironment.py3 import unicodedata
57 data = unicodedata.normalize('NFC', data)
/external/python/cpython2/Lib/encodings/
Didna.py4 from unicodedata import ucd_3_2_0 as unicodedata unknown
25 label = unicodedata.normalize("NFKC", label)
/external/python/cpython3/Lib/encodings/
Didna.py4 from unicodedata import ucd_3_2_0 as unicodedata unknown
25 label = unicodedata.normalize("NFKC", label)

12345