Home
last modified time | relevance | path

Searched refs:unichr (Results 1 – 25 of 89) sorted by relevance

1234

/external/fonttools/Tests/
Dunicodedata_test.py12 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'
22 assert unicodedata.script(unichr(0x10B27)) == 'Avst'
23 assert unicodedata.script(unichr(0x1B41)) == 'Bali'
[all …]
/external/fonttools/Lib/fontTools/encodings/
Dcodecs.py75 b"\xFC": unichr(0x007C),
76 b"\x7E": unichr(0x007E),
77 b"\x80": unichr(0x005C),
78 b"\xA0": unichr(0x00A0),
79 b"\xFD": unichr(0x00A9),
80 b"\xFE": unichr(0x2122),
81 b"\xFF": unichr(0x2026),
84 b"\x80": unichr(0x005C),
85 b"\xA0": unichr(0x00A0),
86 b"\xFD": unichr(0x00A9),
[all …]
/external/fonttools/Tests/encodings/
Dcodecs_test.py10 unichr(0x78)+unichr(0x2122)+unichr(0x00A9)+unichr(0x79))
14 (unichr(0x78)+unichr(0x2122)+unichr(0x00A9)+unichr(0x79)).encode("x_mac_japanese_ttx"))
18 unichr(0x5C))
22 unichr(0x78)+unichr(0x02DA))
/external/python/cpython2/Doc/library/
Dunicodedata.rst33 .. function:: name(unichr[, default])
35 Returns the name assigned to the Unicode character *unichr* as a string. If no
40 .. function:: decimal(unichr[, default])
42 Returns the decimal value assigned to the Unicode character *unichr* as integer.
47 .. function:: digit(unichr[, default])
49 Returns the digit value assigned to the Unicode character *unichr* as integer.
54 .. function:: numeric(unichr[, default])
56 Returns the numeric value assigned to the Unicode character *unichr* as float.
61 .. function:: category(unichr)
63 Returns the general category assigned to the Unicode character *unichr* as
[all …]
/external/libchrome/third_party/markupsafe/
D_compat.py18 unichr = chr variable
23 unichr = unichr variable
D__init__.py13 unichr, PY2
134 return unichr(HTML_ENTITIES[name])
137 return unichr(int(name[2:], 16))
139 return unichr(int(name[1:]))
/external/brotli/scripts/dictionary/
Dstep-04-generate-java-literals.py36 hi.append(unichr(cntr))
43 hi.append(unichr(cntr))
45 hi.append(unichr(cntr))
/external/python/cpython2/Lib/test/
Dtest_unicodedata.py28 char = unichr(i)
89 char = unichr(i)
260 c = unichr(i)
273 c = unichr(i)
300 if u"\x00" in unichr(c).lower()+unichr(c).upper()+unichr(c).title()
313 lines = (unichr(i) + u'A').splitlines()
Dtest_re.py482 unichr(0x2222)).group(1), unichr(0x2222))
484 unichr(0x2222), re.UNICODE).group(1), unichr(0x2222))
485 r = u'[%s]' % u''.join(map(unichr, range(256, 2**16, 255)))
486 self.assertEqual(re.match(r, unichr(0xff01), re.UNICODE).group(), unichr(0xff01))
680 p = u''.join(unichr(i) for i in range(256))
710 self.assertMatch(u'.%s+.' % re.escape(unichr(0x2620)), s,
802 pat=u"["+re.escape(unichr(0x2039))+u"]"
920 unichr(0x0037), # '\N{DIGIT SEVEN}', category 'Nd'
921 unichr(0x0e58), # '\N{THAI DIGIT SIX}', category 'Nd'
922 unichr(0xff10), # '\N{FULLWIDTH DIGIT ZERO}', category 'Nd'
[all …]
Dtest_multibytecodec.py48 data = 100 * unichr(0xdc00)
235 myunichr = unichr
237 myunichr = lambda x: unichr(0xD7C0+(x>>10)) + unichr(0xDC00+(x&0x3FF))
Dtest_normalization.py36 return u"".join([unichr(x) for x in data])
88 X = unichr(c)
Dtest_fnmatch.py92 self.check_match(u'test'+unichr(0x20ac), u'te*'+unichr(0x20ac))
Dtest_codecmaps_jp.py22 supmaps.append((chr(i), unichr(i+0xfec0)))
/external/python/cpython2/Tools/unicode/
Dmkstringprep.py8 if unicodedata.category(unichr(i)) in cats:
13 if unicodedata.bidirectional(unichr(i)) in cats:
176 if map(ord, unichr(k).lower()) != v:
177 b3_exceptions[k] = u"".join(map(unichr,v))
217 if map(ord, map_table_b2(unichr(k))) != v:
Dcomparecodecs.py18 u = unichr(i)
/external/libchrome/third_party/jinja2/
D_compat.py21 unichr = chr variable
50 unichr = unichr variable
/external/fonttools/Lib/fontTools/
Dagl.py786 return unichr(uchar)
856 return ''.join([unichr(c) for c in chars])
874 return unichr(value)
/external/python/cpython2/Tools/pybench/
DUnicode.py317 s = join(map(unichr,range(20)),'')
318 t = join(map(unichr,range(100)),'')
319 u = join(map(unichr,range(500)),'')
320 v = join(map(unichr,range(1000)),'')
374 s = join(map(unichr,range(20)),'')
375 t = join(map(unichr,range(100)),'')
376 u = join(map(unichr,range(500)),'')
377 v = join(map(unichr,range(1000)),'')
/external/fonttools/Lib/fontTools/misc/
Dpy23.py32 unichr = unichr variable
37 _narrow_unichr = unichr
39 def unichr(i): function
102 unichr = chr variable
/external/harfbuzz_ng/test/shaping/
Dhb_test_tools.py19 unichr = unichr variable
24 _narrow_unichr = unichr
26 def unichr(i): function
77 unichr = chr variable
473 s = u''.join (unichr (x) for x in Unicode.parse (s))
511 s = [unichr (int (x, 16)) for x in re.split ('[, \n]', s) if len (x)]
/external/python/cpython2/Lib/json/tests/
Dtest_scanstring.py103 surrogates = unichr(0xd834) + unichr(0xdd20)
/external/python/cpython2/Lib/test/support/
D__init__.py629 unichr(0x00E6),
631 unichr(0x0130),
633 unichr(0x0141),
635 unichr(0x03C6),
637 unichr(0x041A),
639 unichr(0x05D0),
641 unichr(0x060C),
643 unichr(0x062A),
645 unichr(0x0E01),
652 unichr(0x00A0),
[all …]
/external/fonttools/Tests/ttLib/tables/
DT_S_I__1_test.py4 from fontTools.misc.py23 import unichr, tobytes
39 font.glyphOrder = [unichr(i) for i in range(ch, ch+n)]
/external/python/cpython2/Demo/scripts/
Dfind-uname.py27 unicode_names.append((ix, unicodedata.name(unichr(ix))))
/external/fonttools/Tests/misc/
DencodingTools_test.py23 self.assertEqual(decoded, unichr(0x2122))

1234