Home
last modified time | relevance | path

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

123

/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/libmojo/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/python/cpython2/Lib/test/
Dtest_unicodedata.py28 char = unichr(i)
89 char = unichr(i)
247 c = unichr(i)
260 c = unichr(i)
287 if u"\x00" in unichr(c).lower()+unichr(c).upper()+unichr(c).title()
300 lines = (unichr(i) + u'A').splitlines()
Dtest_support.py614 unichr(0x00E6),
616 unichr(0x0130),
618 unichr(0x0141),
620 unichr(0x03C6),
622 unichr(0x041A),
624 unichr(0x05D0),
626 unichr(0x060C),
628 unichr(0x062A),
630 unichr(0x0E01),
637 unichr(0x00A0),
[all …]
Dtest_re.py436 unichr(0x2222)).group(1), unichr(0x2222))
438 unichr(0x2222), re.UNICODE).group(1), unichr(0x2222))
439 r = u'[%s]' % u''.join(map(unichr, range(256, 2**16, 255)))
440 self.assertEqual(re.match(r, unichr(0xff01), re.UNICODE).group(), unichr(0xff01))
634 p = u''.join(unichr(i) for i in range(256))
664 self.assertMatch(u'.%s+.' % re.escape(unichr(0x2620)), s,
756 pat=u"["+re.escape(unichr(0x2039))+u"]"
874 unichr(0x0037), # '\N{DIGIT SEVEN}', category 'Nd'
875 unichr(0x0e58), # '\N{THAI DIGIT SIX}', category 'Nd'
876 unichr(0xff10), # '\N{FULLWIDTH DIGIT ZERO}', category 'Nd'
[all …]
Dtest_normalization.py36 return u"".join([unichr(x) for x in data])
88 X = unichr(c)
Dtest_multibytecodec.py48 data = 100 * unichr(0xdc00)
235 myunichr = unichr
237 myunichr = lambda x: unichr(0xD7C0+(x>>10)) + unichr(0xDC00+(x&0x3FF))
Dtest_codecmaps_jp.py22 supmaps.append((chr(i), unichr(i+0xfec0)))
Dtest_builtin.py257 self.assertRaises(TypeError, compile, unichr(0), 'f', 'exec')
519 return unichr(ord(unicode.__getitem__(self, index))+1)
568 self.assertRaises(UnicodeError, getattr, sys, unichr(sys.maxunicode))
576 self.assertRaises(UnicodeError, hasattr, sys, unichr(sys.maxunicode))
946 self.assertEqual(ord(unichr(sys.maxunicode)), sys.maxunicode)
1370 self.assertEqual(unichr(32), unicode(' '))
1371 self.assertEqual(unichr(65), unicode('A'))
1372 self.assertEqual(unichr(97), unicode('a'))
1374 unichr(sys.maxunicode),
1377 self.assertRaises(ValueError, unichr, sys.maxunicode+1)
[all …]
Dtest_codecs.py2003 self.assertEqual(encode(unichr(b)), (chr(b), 1))
2009 self.assertEqual(decode(chr(b) + '0'), (unichr(b) + u'0', 2))
2020 check(unichr(b), '\\x%02x' % b)
2022 check(unichr(b), '\\x%02x' % b)
2053 check('\\' + chr(b), u'\\' + unichr(b))
2080 self.assertEqual(encode(unichr(b)), (chr(b), 1))
2085 self.assertEqual(decode(chr(b) + '0'), (unichr(b) + u'0', 2))
2092 check(u'\\' + unichr(b), '\\' + chr(b))
2101 check('\\' + chr(b), u'\\' + unichr(b))
/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)
Dgencodec.py35 UNI_UNDEFINED = unichr(0xFFFE)
237 mapchar = unichr(mapvalue)
/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/libmojo/third_party/jinja2/
D_compat.py21 unichr = chr variable
50 unichr = unichr variable
D_stringdefs.py16 from jinja2._compat import unichr
111 c = unichr(code)
/external/harfbuzz_ng/test/shaping/
Dhb_test_tools.py11 unichr = unichr variable
16 _narrow_unichr = unichr
18 def unichr(i): function
47 unichr = chr variable
458 s = u''.join (unichr (x) for x in Unicode.parse (s))
496 s = [unichr (int (x, 16)) for x in re.split ('[, \n]', s) if len (x)]
/external/fonttools/Lib/fontTools/misc/
Dpy23.py16 unichr
20 unichr = chr variable
/external/python/cpython2/Lib/json/tests/
Dtest_scanstring.py103 surrogates = unichr(0xd834) + unichr(0xdd20)
/external/python/cpython2/Demo/scripts/
Dfind-uname.py27 unicode_names.append((ix, unicodedata.name(unichr(ix))))
/external/fonttools/Lib/fontTools/
Dunicode.py35 return unicodedata.name(unichr(charCode))
/external/python/cpython2/Doc/howto/
Dunicode.rst284 One-character Unicode strings can also be created with the :func:`unichr`
290 >>> unichr(40960)
334 >>> u = unichr(40960) + u'abcd' + unichr(1972)
352 >>> u = unichr(40960) + u'abcd' + unichr(1972) # Assemble a string
399 can also assemble strings using the :func:`unichr` built-in function, but this is
464 u = unichr(233) + unichr(0x0bf2) + unichr(3972) + unichr(6000) + unichr(13231)
734 - [ ] unichr()
/external/fonttools/Lib/fontTools/ttLib/tables/
DM_E_T_A_.py250 uString = uString + unichr(eval('0x' + valStr))
252 uString = uString + unichr(byteord(string[i]))
/external/chromium-trace/catapult/devil/devil/android/perf/
Dthermal_throttle.py102 degree_symbol = unichr(0x00B0)

123