Home
last modified time | relevance | path

Searched refs:chr (Results 1 – 25 of 678) sorted by relevance

12345678910>>...28

/external/fonttools/Tests/
Dunicodedata_test.py8 assert unicodedata.script(chr(0)) == "Zyyy"
9 assert unicodedata.script(chr(0x0378)) == "Zzzz"
10 assert unicodedata.script(chr(0x10FFFF)) == "Zzzz"
13 assert unicodedata.script(chr(0x1E918)) == 'Adlm'
14 assert unicodedata.script(chr(0x1170D)) == 'Ahom'
15 assert unicodedata.script(chr(0x145A0)) == 'Hluw'
16 assert unicodedata.script(chr(0x0607)) == 'Arab'
17 assert unicodedata.script(chr(0x056C)) == 'Armn'
18 assert unicodedata.script(chr(0x10B27)) == 'Avst'
19 assert unicodedata.script(chr(0x1B41)) == 'Bali'
[all …]
/external/rust/crates/nom/src/character/
Dmod.rs21 pub fn is_alphabetic(chr: u8) -> bool { in is_alphabetic()
22 (chr >= 0x41 && chr <= 0x5A) || (chr >= 0x61 && chr <= 0x7A) in is_alphabetic()
35 pub fn is_digit(chr: u8) -> bool { in is_digit()
36 chr >= 0x30 && chr <= 0x39 in is_digit()
51 pub fn is_hex_digit(chr: u8) -> bool { in is_hex_digit()
52 (chr >= 0x30 && chr <= 0x39) || (chr >= 0x41 && chr <= 0x46) || (chr >= 0x61 && chr <= 0x66) in is_hex_digit()
66 pub fn is_oct_digit(chr: u8) -> bool { in is_oct_digit()
67 chr >= 0x30 && chr <= 0x37 in is_oct_digit()
82 pub fn is_alphanumeric(chr: u8) -> bool { in is_alphanumeric()
83 is_alphabetic(chr) || is_digit(chr) in is_alphanumeric()
[all …]
/external/jsilver/src/com/google/streamhtmlparser/util/
DHtmlUtils.java251 public static boolean isHtmlSpace(char chr) { in isHtmlSpace() argument
252 return HTML_WHITESPACE.contains(chr); in isHtmlSpace()
278 public static boolean isJavascriptWhitespace(char chr) { in isJavascriptWhitespace() argument
279 return JAVASCRIPT_WHITESPACE.contains(chr); in isJavascriptWhitespace()
302 public static boolean isJavascriptIdentifier(char chr) { in isJavascriptIdentifier() argument
303 return ((chr >= 'a' && chr <= 'z') in isJavascriptIdentifier()
304 || (chr >= 'A' && chr <= 'Z') in isJavascriptIdentifier()
305 || (chr >= '0' && chr <= '9') in isJavascriptIdentifier()
306 || chr == '_' || chr == '$'); in isJavascriptIdentifier()
333 public static String encodeCharForAscii(char chr) { in encodeCharForAscii() argument
[all …]
/external/python/cpython2/Lib/
Dtelnetlib.py51 IAC = chr(255) # "Interpret As Command"
52 DONT = chr(254)
53 DO = chr(253)
54 WONT = chr(252)
55 WILL = chr(251)
56 theNULL = chr(0)
58 SE = chr(240) # Subnegotiation End
59 NOP = chr(241) # No Operation
60 DM = chr(242) # Data Mark
61 BRK = chr(243) # Break
[all …]
/external/libxkbcommon/src/xkbcomp/
Dscanner.c43 is_float = chr(s, '.'); in number()
75 if (lit(s, "//") || chr(s, '#')) { in _xkbcommon_lex()
89 if (chr(s, '\"')) { in _xkbcommon_lex()
91 if (chr(s, '\\')) { in _xkbcommon_lex()
93 if (chr(s, '\\')) buf_append(s, '\\'); in _xkbcommon_lex()
94 else if (chr(s, 'n')) buf_append(s, '\n'); in _xkbcommon_lex()
95 else if (chr(s, 't')) buf_append(s, '\t'); in _xkbcommon_lex()
96 else if (chr(s, 'r')) buf_append(s, '\r'); in _xkbcommon_lex()
97 else if (chr(s, 'b')) buf_append(s, '\b'); in _xkbcommon_lex()
98 else if (chr(s, 'f')) buf_append(s, '\f'); in _xkbcommon_lex()
[all …]
/external/fonttools/Lib/fontTools/encodings/
Dcodecs.py59 b"\xFC": chr(0x007C),
60 b"\x7E": chr(0x007E),
61 b"\x80": chr(0x005C),
62 b"\xA0": chr(0x00A0),
63 b"\xFD": chr(0x00A9),
64 b"\xFE": chr(0x2122),
65 b"\xFF": chr(0x2026),
68 b"\x80": chr(0x005C),
69 b"\xA0": chr(0x00A0),
70 b"\xFD": chr(0x00A9),
[all …]
/external/python/cpython3/Modules/clinic/
Dunicodedata.c.h19 unicodedata_UCD_decimal_impl(PyObject *self, int chr,
26 int chr; in unicodedata_UCD_decimal() local
43 chr = PyUnicode_READ_CHAR(args[0], 0); in unicodedata_UCD_decimal()
49 return_value = unicodedata_UCD_decimal_impl(self, chr, default_value); in unicodedata_UCD_decimal()
69 unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value);
75 int chr; in unicodedata_UCD_digit() local
92 chr = PyUnicode_READ_CHAR(args[0], 0); in unicodedata_UCD_digit()
98 return_value = unicodedata_UCD_digit_impl(self, chr, default_value); in unicodedata_UCD_digit()
118 unicodedata_UCD_numeric_impl(PyObject *self, int chr,
125 int chr; in unicodedata_UCD_numeric() local
[all …]
/external/protobuf/php/src/Google/Protobuf/Internal/
DCodedOutputStream.php48 $this->buffer = str_repeat(chr(0), $this->buffer_size);
58 $bytes = str_repeat(chr(0), self::MAX_VARINT64_BYTES);
65 $bytes = str_repeat(chr(0), self::MAX_VARINT64_BYTES);
72 $bytes = str_repeat(chr(0), 4);
79 $bytes = str_repeat(chr(0), 8);
117 $buffer[$current] = chr($low | 0x80);
124 $buffer[$current] = chr($low);
130 $buffer[0] = chr($value & 0x000000FF);
131 $buffer[1] = chr(($value >> 8) & 0x000000FF);
132 $buffer[2] = chr(($value >> 16) & 0x000000FF);
[all …]
/external/ltp/testcases/kernel/fs/doio/
Ddatapid.c90 char *chr; in datapidgen() local
112 chr = (char *)&word; in datapidgen()
115 chr++; in datapidgen()
118 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidgen()
119 buffer[boff] = *chr; in datapidgen()
137 chr = (char *)&word; in datapidgen()
138 for (tmp = 0; tmp < NBPW; tmp++, chr++) { in datapidgen()
139 buffer[boff++] = *chr; in datapidgen()
161 chr = (char *)&word; in datapidgen()
163 for (tmp = 0; tmp < cnt && boff < bsize; tmp++, chr++) { in datapidgen()
[all …]
Ddataascii.c50 char *chr; in dataasciigen() local
54 chr = buffer; in dataasciigen()
67 *chr++ = charlist[ind]; in dataasciigen()
79 char *chr; in dataasciichk() local
83 chr = buffer; in dataasciichk()
97 for (cnt = offset; cnt < total; chr++, cnt++) { in dataasciichk()
99 if (*chr != charlist[ind]) { in dataasciichk()
102 cnt, charlist[ind], *chr); in dataasciichk()
/external/fonttools/Tests/encodings/
Dcodecs_test.py8 chr(0x78)+chr(0x2122)+chr(0x00A9)+chr(0x79))
12 (chr(0x78)+chr(0x2122)+chr(0x00A9)+chr(0x79)).encode("x_mac_japanese_ttx"))
16 chr(0x5C))
20 chr(0x78)+chr(0x02DA))
/external/flatbuffers/tests/
DphpTest.php359 $assert->Equal(chr(0x01), $uut->_buffer[0]);
360 $assert->Equal(chr(0x00), $uut->_buffer[1]);
367 $assert->Equal(chr(0x00), $uut->_buffer[0]);
368 $assert->Equal(chr(0x80), $uut->_buffer[1]);
395 $assert->Equal(chr(0x0D), $uut->_buffer[0]);
396 $assert->Equal(chr(0x0C), $uut->_buffer[1]);
397 $assert->Equal(chr(0x0B), $uut->_buffer[2]);
398 $assert->Equal(chr(0x0A), $uut->_buffer[3]);
403 $assert->Equal(chr(0x00), $uut->_buffer[0]);
404 $assert->Equal(chr(0x00), $uut->_buffer[1]);
[all …]
/external/llvm-project/lldb/test/API/commands/gui/viewlarge/
DTestGuiViewLarge.py27 escape_key = chr(27).encode()
28 left_key = chr(27)+'OD' # for vt100 terminal (lldbexpect sets TERM=vt100)
29 right_key = chr(27)+'OC'
30 ctrl_l = chr(12)
40 self.child.expect_exact("int a_variable_with_a_very_looooooooooooooooooooooooooo"+chr(27))
42 self.child.expect_exact("int shortvar = 1;"+chr(27))
44 self.child.expect_exact("<<< Thread 1: breakpoint 1.1"+chr(27))
48 … self.child.expect_exact("(int) a_variable_with_a_very_looooooooooooooooooooooooooooooo"+chr(27))
49 self.child.expect_exact("(int) shortvar = 1"+chr(27))
57 self.child.expect_exact("int a_variable_with_a_very_looooooooooooooooooooooooooooo"+chr(27))
[all …]
/external/pcre/dist2/src/
Dpcre2_auto_possess.c314 uint32_t chr; in get_chr_property_list() local
389 GETCHARINCTEST(chr, code); in get_chr_property_list()
390 list[2] = chr; in get_chr_property_list()
397 GETCHARINCTEST(chr, code); in get_chr_property_list()
398 list[2] = chr; in get_chr_property_list()
401 if (chr < 128 || (chr < 256 && !utf && !ucp)) in get_chr_property_list()
402 list[3] = fcc[chr]; in get_chr_property_list()
404 list[3] = UCD_OTHERCASE(chr); in get_chr_property_list()
406 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list()
408 list[3] = fcc[chr]; in get_chr_property_list()
[all …]
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py74 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(0) + chr(1))):
84 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(1) + chr(0))):
96 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(0) + chr(1))):
106 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(1) + chr(0))):
/external/python/httplib2/python2/httplib2/
Dsocks.py268 if chosenauth[0:1] != chr(0x05).encode():
272 if chosenauth[1:2] == chr(0x00).encode():
275 elif chosenauth[1:2] == chr(0x02).encode():
279 chr(0x01).encode()
280 + chr(len(self.__proxy[4]))
282 + chr(len(self.__proxy[5]))
286 if authstat[0:1] != chr(0x01).encode():
290 if authstat[1:2] != chr(0x00).encode():
298 if chosenauth[1] == chr(0xFF).encode():
308 req = req + chr(0x01).encode() + ipaddr
[all …]
/external/python/httplib2/python3/httplib2/
Dsocks.py268 if chosenauth[0:1] != chr(0x05).encode():
272 if chosenauth[1:2] == chr(0x00).encode():
275 elif chosenauth[1:2] == chr(0x02).encode():
286 if authstat[0:1] != chr(0x01).encode():
290 if authstat[1:2] != chr(0x00).encode():
298 if chosenauth[1] == chr(0xFF).encode():
308 req = req + chr(0x01).encode() + ipaddr
316 + chr(0x03).encode()
317 + chr(len(destaddr)).encode()
323 req = req + chr(0x01).encode() + ipaddr
[all …]
/external/python/cpython2/Lib/test/
Dre_tests.py75 ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'),
91 (r'\xff', '\377', SUCCEED, 'found', chr(255)),
93 (r'\x00ffffffffffffff', '\377', FAIL, 'found', chr(255)),
94 (r'\x00f', '\017', FAIL, 'found', chr(15)),
95 (r'\x00fe', '\376', FAIL, 'found', chr(254)),
276 ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'),
606 (r'\xff', '\377', SUCCEED, 'found', chr(255)),
612 …(r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', chr(9)+chr(10)+chr(11)+chr(13)+chr(12)+chr(7)),
Dtest_hmac.py18 md5test(chr(0x0b) * 16,
26 md5test(chr(0xAA)*16,
27 chr(0xDD)*50,
30 md5test("".join([chr(i) for i in range(1, 26)]),
31 chr(0xCD) * 50,
34 md5test(chr(0x0C) * 16,
38 md5test(chr(0xAA) * 80,
42 md5test(chr(0xAA) * 80,
52 shatest(chr(0x0b) * 20,
60 shatest(chr(0xAA)*20,
[all …]
/external/python/cpython3/Doc/library/
Dunicodedata.rst38 .. function:: name(chr[, default])
40 Returns the name assigned to the character *chr* as a string. If no
45 .. function:: decimal(chr[, default])
47 Returns the decimal value assigned to the character *chr* as integer.
52 .. function:: digit(chr[, default])
54 Returns the digit value assigned to the character *chr* as integer.
59 .. function:: numeric(chr[, default])
61 Returns the numeric value assigned to the character *chr* as float.
66 .. function:: category(chr)
68 Returns the general category assigned to the character *chr* as
[all …]
/external/python/cpython3/Lib/test/
Dre_tests.py75 ('\\09', chr(0) + '9', SUCCEED, 'found', chr(0) + '9'),
92 (r'\x00ffffffffffffff', '\377', FAIL, 'found', chr(255)),
93 (r'\x00f', '\017', FAIL, 'found', chr(15)),
94 (r'\x00fe', '\376', FAIL, 'found', chr(254)),
500 (r'\xff', '\377', SUCCEED, 'found', chr(255)),
506 …(r'\t\n\v\r\f\a', '\t\n\v\r\f\a', SUCCEED, 'found', chr(9)+chr(10)+chr(11)+chr(13)+chr(12)+chr(7)),
Dtest_string_literals.py84 self.assertEqual(eval(r""" '\x01' """), chr(1))
85 self.assertEqual(eval(""" '\x01' """), chr(1))
86 self.assertEqual(eval(r""" '\x81' """), chr(0x81))
87 self.assertEqual(eval(""" '\x81' """), chr(0x81))
88 self.assertEqual(eval(r""" '\u1881' """), chr(0x1881))
89 self.assertEqual(eval(""" '\u1881' """), chr(0x1881))
90 self.assertEqual(eval(r""" '\U0001d120' """), chr(0x1d120))
91 self.assertEqual(eval(""" '\U0001d120' """), chr(0x1d120))
114 self.assertEqual(eval(r"'\%c'" % b), '\\' + chr(b))
136 self.assertEqual(eval(""" r'\x01' """), chr(1))
[all …]
/external/libxkbcommon/src/compose/
Dparser.c134 if (chr(s, '#')) { in lex()
148 if (chr(s, '<')) { in lex()
151 if (!chr(s, '>')) { in lex()
165 if (chr(s, ':')) in lex()
167 if (chr(s, '!')) in lex()
169 if (chr(s, '~')) in lex()
173 if (chr(s, '\"')) { in lex()
175 if (chr(s, '\\')) { in lex()
177 if (chr(s, '\\')) { in lex()
180 else if (chr(s, '"')) { in lex()
[all …]
/external/scapy/scapy/modules/krack/
Dcrypto.py42 hmacsha1 = hmac.new(key,A+chr(0x00)+B+chr(i), hashlib.sha1)
203 return "".join([chr(x) for x in WEPSeed])
236 data = to_hash + chr(0x5a) + "\x00" * (7 - nb_extra_bytes)
286 TKIP_hdr = chr(TSC1) + chr((TSC1 | 0x20) & 0x7f) + chr(TSC0) + chr(bitfield)
287 TKIP_hdr += chr(TSC2) + chr(TSC3) + chr(TSC4) + chr(TSC5)
/external/icu/android_icu4j/testing/src/android/icu/extratest/
Dexpected_transliteration_id_list_release_1.txt323 am-chr
337 ch-chr
339 chr-chr_FONIPA
342 cs-chr
359 eo-chr
364 es-chr
371 es_419-chr
385 hy-chr
391 hy_AREVMDA-chr
396 ia-chr
[all …]

12345678910>>...28