Home
last modified time | relevance | path

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

12345678910>>...26

/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/xkbcommon/src/xkbcomp/
Dscanner.c41 is_float = chr(s, '.'); in number()
71 if (lit(s, "//") || chr(s, '#')) { in _xkbcommon_lex()
85 if (chr(s, '\"')) { in _xkbcommon_lex()
87 if (chr(s, '\\')) { in _xkbcommon_lex()
89 if (chr(s, '\\')) buf_append(s, '\\'); in _xkbcommon_lex()
90 else if (chr(s, 'n')) buf_append(s, '\n'); in _xkbcommon_lex()
91 else if (chr(s, 't')) buf_append(s, '\t'); in _xkbcommon_lex()
92 else if (chr(s, 'r')) buf_append(s, '\r'); in _xkbcommon_lex()
93 else if (chr(s, 'b')) buf_append(s, '\b'); in _xkbcommon_lex()
94 else if (chr(s, 'f')) buf_append(s, '\f'); in _xkbcommon_lex()
[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/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/pcre/dist2/src/
Dpcre2_auto_possess.c313 uint32_t chr; in get_chr_property_list() local
387 GETCHARINCTEST(chr, code); in get_chr_property_list()
388 list[2] = chr; in get_chr_property_list()
395 GETCHARINCTEST(chr, code); in get_chr_property_list()
396 list[2] = chr; in get_chr_property_list()
399 if (chr < 128 || (chr < 256 && !utf)) in get_chr_property_list()
400 list[3] = fcc[chr]; in get_chr_property_list()
402 list[3] = UCD_OTHERCASE(chr); in get_chr_property_list()
404 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list()
406 list[3] = fcc[chr]; in get_chr_property_list()
[all …]
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py61 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(0) + chr(1))):
71 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(1) + chr(0))):
83 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(0) + chr(1))):
93 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(1) + chr(0))):
/external/python/httplib2/python2/httplib2/
Dsocks.py260 if chosenauth[0:1] != chr(0x05).encode():
264 if chosenauth[1:2] == chr(0x00).encode():
267 elif chosenauth[1:2] == chr(0x02).encode():
271 chr(0x01).encode()
272 + chr(len(self.__proxy[4]))
274 + chr(len(self.__proxy[5]))
278 if authstat[0:1] != chr(0x01).encode():
282 if authstat[1:2] != chr(0x00).encode():
290 if chosenauth[1] == chr(0xFF).encode():
300 req = req + chr(0x01).encode() + ipaddr
[all …]
/external/python/httplib2/python3/httplib2/
Dsocks.py260 if chosenauth[0:1] != chr(0x05).encode():
264 if chosenauth[1:2] == chr(0x00).encode():
267 elif chosenauth[1:2] == chr(0x02).encode():
278 if authstat[0:1] != chr(0x01).encode():
282 if authstat[1:2] != chr(0x00).encode():
290 if chosenauth[1] == chr(0xFF).encode():
300 req = req + chr(0x01).encode() + ipaddr
308 + chr(0x03).encode()
309 + chr(len(destaddr)).encode()
315 req = req + chr(0x01).encode() + ipaddr
[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/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/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.py85 self.assertEqual(eval(r""" '\x01' """), chr(1))
86 self.assertEqual(eval(""" '\x01' """), chr(1))
87 self.assertEqual(eval(r""" '\x81' """), chr(0x81))
88 self.assertEqual(eval(""" '\x81' """), chr(0x81))
89 self.assertEqual(eval(r""" '\u1881' """), chr(0x1881))
90 self.assertEqual(eval(""" '\u1881' """), chr(0x1881))
91 self.assertEqual(eval(r""" '\U0001d120' """), chr(0x1d120))
92 self.assertEqual(eval(""" '\U0001d120' """), chr(0x1d120))
115 self.assertEqual(eval(r"'\%c'" % b), '\\' + chr(b))
136 self.assertEqual(eval(""" r'\x01' """), chr(1))
[all …]
/external/libxkbcommon/xkbcommon/src/compose/
Dparser.c170 if (chr(s, '#')) { in lex()
184 if (chr(s, '<')) { in lex()
187 if (!chr(s, '>')) { in lex()
201 if (chr(s, ':')) in lex()
203 if (chr(s, '!')) in lex()
205 if (chr(s, '~')) in lex()
209 if (chr(s, '\"')) { in lex()
211 if (chr(s, '\\')) { in lex()
213 if (chr(s, '\\')) { in lex()
216 else if (chr(s, '"')) { in lex()
[all …]
/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 …]
/external/icu/android_icu4j/src/main/tests/android/icu/extratest/
Dexpected_transliteration_id_list.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 …]
/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/u-boot/test/py/tests/
Dtest_efi_selftest.py68 u_boot_console.run_command(cmd=chr(4), wait_for_echo=False,
76 u_boot_console.run_command(cmd=chr(8), wait_for_echo=False,
84 u_boot_console.run_command(cmd=chr(9), wait_for_echo=False,
100 u_boot_console.run_command(cmd=chr(27) + '[A', wait_for_echo=False,
138 u_boot_console.run_command(cmd=chr(4), wait_for_echo=False,
146 u_boot_console.run_command(cmd=chr(8), wait_for_echo=False,
154 u_boot_console.run_command(cmd=chr(9), wait_for_echo=False,
170 u_boot_console.run_command(cmd=chr(27) + '[A', wait_for_echo=False,
193 u_boot_console.run_command(cmd=chr(24), wait_for_echo=False, send_nl=False,
/external/dynamic_depth/internal/xmpmeta/
Djpeg_io.cc98 int chr; // Short for character. in Parse() local
99 while ((chr = ReadByteAsInt(input_stream)) != -1) { in Parse()
100 if (chr != 0xff) { in Parse()
101 LOG(WARNING) << "Read non-padding byte: " << chr; in Parse()
105 while ((chr = ReadByteAsInt(input_stream)) == 0xff) { in Parse()
107 if (chr == -1) { in Parse()
112 const int marker = chr; in Parse()
/external/python/cpython3/Lib/email/
Dquoprimime.py61 _QUOPRI_HEADER_MAP[c] = chr(c)
69 _QUOPRI_BODY_MAP[c] = chr(c)
76 return chr(octet) != _QUOPRI_HEADER_MAP[octet]
81 return chr(octet) != _QUOPRI_BODY_MAP[octet]
109 s = chr(s)
120 return chr(int(s[1:3], 16))
150 _QUOPRI_BODY_ENCODE_MAP[c] = chr(c)
/external/python/cpython2/Demo/sockets/
Dtelnet.py23 IAC = chr(255) # Interpret as command
24 DONT = chr(254)
25 DO = chr(253)
26 WONT = chr(252)
27 WILL = chr(251)

12345678910>>...26