Home
last modified time | relevance | path

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

12345678910>>...25

/external/python/cpython3/Modules/clinic/
Dunicodedata.c.h19 unicodedata_UCD_decimal_impl(PyObject *self, int chr,
26 int chr; in unicodedata_UCD_decimal() local
30 &chr, &default_value)) { in unicodedata_UCD_decimal()
33 return_value = unicodedata_UCD_decimal_impl(self, chr, default_value); in unicodedata_UCD_decimal()
53 unicodedata_UCD_digit_impl(PyObject *self, int chr, PyObject *default_value);
59 int chr; in unicodedata_UCD_digit() local
63 &chr, &default_value)) { in unicodedata_UCD_digit()
66 return_value = unicodedata_UCD_digit_impl(self, chr, default_value); in unicodedata_UCD_digit()
86 unicodedata_UCD_numeric_impl(PyObject *self, int chr,
93 int chr; in unicodedata_UCD_numeric() local
[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/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/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.py45 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(0) + chr(1))):
55 if not self._check_pcr(0, hashlib.sha1(chr(0) + chr(1) + chr(0))):
67 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(0) + chr(1))):
77 if not self._check_pcr(0, hashlib.sha1(chr(1) + chr(1) + chr(0))):
/external/python/httplib2/python3/httplib2/
Dsocks.py266 if chosenauth[0:1] != chr(0x05).encode():
270 if chosenauth[1:2] == chr(0x00).encode():
273 elif chosenauth[1:2] == chr(0x02).encode():
277 chr(0x01).encode()
278 + chr(len(self.__proxy[4]))
280 + chr(len(self.__proxy[5]))
284 if authstat[0:1] != chr(0x01).encode():
288 if authstat[1:2] != chr(0x00).encode():
296 if chosenauth[1] == chr(0xFF).encode():
306 req = req + chr(0x01).encode() + ipaddr
[all …]
/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/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'),
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_string_literals.py83 self.assertEqual(eval(r""" '\x01' """), chr(1))
84 self.assertEqual(eval(""" '\x01' """), chr(1))
85 self.assertEqual(eval(r""" '\x81' """), chr(0x81))
86 self.assertEqual(eval(""" '\x81' """), chr(0x81))
87 self.assertEqual(eval(r""" '\u1881' """), chr(0x1881))
88 self.assertEqual(eval(""" '\u1881' """), chr(0x1881))
89 self.assertEqual(eval(r""" '\U0001d120' """), chr(0x1d120))
90 self.assertEqual(eval(""" '\U0001d120' """), chr(0x1d120))
113 self.assertEqual(eval(r"'\%c'" % b), '\\' + chr(b))
134 self.assertEqual(eval(""" r'\x01' """), chr(1))
[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/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/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/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/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/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/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/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)
/external/python/cpython2/Lib/curses/
Dascii.py73 return chr(_ctoi(c) & 0x7f)
79 return chr(_ctoi(c) & 0x1f)
85 return chr(_ctoi(c) | 0x80)
94 rep = chr(bits & 0x7f)
96 rep = "^" + chr(((bits & 0x7f) | 0x20) + 0x20)
/external/python/cpython2/Demo/threads/
Dtelnet.py24 IAC = chr(255) # Interpret as command
25 DONT = chr(254)
26 DO = chr(253)
27 WONT = chr(252)
28 WILL = chr(251)

12345678910>>...25