Home
last modified time | relevance | path

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

123

/third_party/python/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 …]
Dsre_parse.py326 import unicodedata
332 c = ord(unicodedata.lookup(charname))
386 import unicodedata
392 c = ord(unicodedata.lookup(charname))
/third_party/python/Lib/test/
Dtest_ucn.py12 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 …]
Dtest_unicodedata.py12 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 …]
Dtest_unicode_file.py6 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)
Dtest_unicode_file_functions.py7 from unicodedata import normalize
/third_party/python/Tools/unicode/
Dmkstringprep.py2 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)
Dgenwincodec.py9 import unicodedata
32 name = unicodedata.name(buf[0])
/third_party/python/Doc/library/
Dunicodedata.rst1 :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
Dtext.rst22 unicodedata.rst
/third_party/python/Tools/scripts/
Dfind-uname.py19 import unicodedata
27 unicode_names.append((ix, unicodedata.name(chr(ix))))
/third_party/mindspore/tests/st/fl/albert/src/
Dtokenization.py23 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/
Didna.py4 from unicodedata import ucd_3_2_0 as unicodedata unknown
25 label = unicodedata.normalize("NFKC", label)
/third_party/python/Tools/freeze/
Dextensions_win32.ini34 [unicodedata] section
35 dsp=%PYTHONPREFIX%\PCbuild\unicodedata.dsp argument
/third_party/python/Doc/howto/
Dunicode.rst369 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/
Dhb_test_tools.py5 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/
Dos_helper.py30 import unicodedata
31 TESTFN_UNICODE = unicodedata.normalize('NFD', TESTFN_UNICODE)
/third_party/python/Tools/
DREADME40 unicode Tools for generating unicodedata and codecs from unicode.org
/third_party/python/Lib/test/test_importlib/source/
Dtest_source_encoding.py11 import unicodedata
/third_party/skia/third_party/externals/harfbuzz/test/shape/
Dhb_test_tools.py3 import sys, os, re, difflib, unicodedata, errno, cgi, itertools
411 s = unicodedata.name (u)
/third_party/harfbuzz/test/shaping/
Dhb_test_tools.py3 import sys, os, re, difflib, unicodedata, errno, cgi, itertools
411 s = unicodedata.name (u)
/third_party/python/Misc/NEWS.d/
D3.10.0a2.rst282 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/
DSetup188 #unicodedata unicodedata.c -DPy_BUILD_CORE_BUILTIN # static Unicode character database
377 #_codecs_jp _codecs_kr _codecs_tw unicodedata
/third_party/harfbuzz/src/
Dgen-tag-table.py33 import unicodedata
889 return set (unicodedata.normalize ('NFD', n.replace ('\u2019', "'"))
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dgen-tag-table.py37 import unicodedata
876 return set (unicodedata.normalize ('NFD', n.replace ('\u2019', u"'"))

123