/third_party/python/Lib/ |
D | stringprep.py | 8 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 …]
|
D | sre_parse.py | 326 import unicodedata 332 c = ord(unicodedata.lookup(charname)) 386 import unicodedata 392 c = ord(unicodedata.lookup(charname))
|
/third_party/python/Lib/test/ |
D | test_ucn.py | 12 import unicodedata 72 code = unicodedata.lookup(name) 73 self.assertEqual(unicodedata.name(code), name) 90 self.assertRaises(ValueError, unicodedata.name, "\ud7a4") 108 name = unicodedata.name(char, None) 110 self.assertEqual(unicodedata.lookup(name), char) 137 name = unicodedata.name(chr(codepoint)) 139 self.assertEqual(unicodedata.lookup(alias), 140 unicodedata.lookup(name)) 142 unicodedata.ucd_3_2_0.lookup(alias) [all …]
|
D | test_unicodedata.py | 12 import unicodedata 68 db = unicodedata 232 check_disallow_instantiation(self, unicodedata.UCD) 280 import unicodedata 282 self.assertTrue(unicodedata.mirrored("\u0f3a")) 283 self.assertTrue(not unicodedata.ucd_3_2_0.mirrored("\u0f3a")) 322 return unicodedata.unidata_version in hdr 352 return unicodedata.normalize("NFC", str) 355 return unicodedata.normalize("NFKC", str) 358 return unicodedata.normalize("NFD", str) [all …]
|
D | test_unicode_file.py | 6 import unicodedata 51 base = unicodedata.normalize("NFD", base) 52 file_list = [unicodedata.normalize("NFD", f) for f in file_list] 95 cwd_result = unicodedata.normalize("NFD", cwd_result) 96 name_result = unicodedata.normalize("NFD", name_result)
|
D | test_unicode_file_functions.py | 7 from unicodedata import normalize
|
/third_party/python/Tools/unicode/ |
D | mkstringprep.py | 2 from unicodedata import ucd_3_2_0 as unicodedata unknown 6 if unicodedata.category(chr(i)) in cats: 11 if unicodedata.bidirectional(chr(i)) in cats: 122 print("assert unicodedata.unidata_version == %r" % (unicodedata.unidata_version,)) 210 b = unicodedata.normalize("NFKC", al) 212 c = unicodedata.normalize("NFKC", bl)
|
D | genwincodec.py | 9 import unicodedata 32 name = unicodedata.name(buf[0])
|
/third_party/python/Doc/library/ |
D | unicodedata.rst | 1 :mod:`unicodedata` --- Unicode Database 4 .. module:: unicodedata 159 >>> import unicodedata 160 >>> unicodedata.lookup('LEFT CURLY BRACKET') 162 >>> unicodedata.name('/') 164 >>> unicodedata.decimal('9') 166 >>> unicodedata.decimal('a') 170 >>> unicodedata.category('A') # 'L'etter, 'u'ppercase 172 >>> unicodedata.bidirectional('\u0660') # 'A'rabic, 'N'umber
|
D | text.rst | 22 unicodedata.rst
|
/third_party/python/Tools/scripts/ |
D | find-uname.py | 19 import unicodedata 27 unicode_names.append((ix, unicodedata.name(chr(ix))))
|
/third_party/mindspore/tests/st/fl/albert/src/ |
D | tokenization.py | 23 import unicodedata 203 text = unicodedata.normalize("NFD", text) 206 cat = unicodedata.category(char) 353 cat = unicodedata.category(char) 365 cat = unicodedata.category(char) 380 cat = unicodedata.category(char)
|
/third_party/python/Lib/encodings/ |
D | idna.py | 4 from unicodedata import ucd_3_2_0 as unicodedata unknown 25 label = unicodedata.normalize("NFKC", label)
|
/third_party/python/Tools/freeze/ |
D | extensions_win32.ini | 34 [unicodedata] section 35 dsp=%PYTHONPREFIX%\PCbuild\unicodedata.dsp argument
|
/third_party/python/Doc/howto/ |
D | unicode.rst | 369 import unicodedata 374 print(i, '%04x' % ord(c), unicodedata.category(c), end=" ") 375 print(unicodedata.name(c)) 378 print(unicodedata.numeric(u[1])) 425 A second tool is the :mod:`unicodedata` module's 426 :func:`~unicodedata.normalize` function that converts strings to one 434 import unicodedata 438 return unicodedata.normalize('NFD', s) 457 The first argument to the :func:`~unicodedata.normalize` function is a 463 import unicodedata [all …]
|
/third_party/flutter/skia/third_party/externals/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 5 import sys, os, re, difflib, unicodedata, errno, cgi 8 import unicodedata2 as unicodedata namespace 494 s = unicodedata.name (u)
|
/third_party/python/Lib/test/support/ |
D | os_helper.py | 30 import unicodedata 31 TESTFN_UNICODE = unicodedata.normalize('NFD', TESTFN_UNICODE)
|
/third_party/python/Tools/ |
D | README | 40 unicode Tools for generating unicodedata and codecs from unicode.org
|
/third_party/python/Lib/test/test_importlib/source/ |
D | test_source_encoding.py | 11 import unicodedata
|
/third_party/skia/third_party/externals/harfbuzz/test/shape/ |
D | hb_test_tools.py | 3 import sys, os, re, difflib, unicodedata, errno, cgi, itertools 411 s = unicodedata.name (u)
|
/third_party/harfbuzz/test/shaping/ |
D | hb_test_tools.py | 3 import sys, os, re, difflib, unicodedata, errno, cgi, itertools 411 s = unicodedata.name (u)
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a2.rst | 282 Removed the ``unicodedata.ucnhash_CAPI`` attribute which was an internal 293 Convert the :mod:`unicodedata` extension module to the multiphase 294 initialization API (:pep:`489`) and convert the ``unicodedata.UCD`` static 839 ``unicodedata.ucnhash_CAPI`` has been moved to the internal C API. Patch by
|
/third_party/python/Modules/ |
D | Setup | 188 #unicodedata unicodedata.c -DPy_BUILD_CORE_BUILTIN # static Unicode character database 377 #_codecs_jp _codecs_kr _codecs_tw unicodedata
|
/third_party/harfbuzz/src/ |
D | gen-tag-table.py | 33 import unicodedata 889 return set (unicodedata.normalize ('NFD', n.replace ('\u2019', "'"))
|
/third_party/flutter/skia/third_party/externals/harfbuzz/src/ |
D | gen-tag-table.py | 37 import unicodedata 876 return set (unicodedata.normalize ('NFD', n.replace ('\u2019', u"'"))
|