Home
last modified time | relevance | path

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

12345678910>>...22

/third_party/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 …]
/third_party/python/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 …]
/third_party/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()
/third_party/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 …]
/third_party/pcre2/pcre2/src/
Dpcre2_auto_possess.c331 uint32_t chr; in get_chr_property_list() local
406 GETCHARINCTEST(chr, code); in get_chr_property_list()
407 list[2] = chr; in get_chr_property_list()
414 GETCHARINCTEST(chr, code); in get_chr_property_list()
415 list[2] = chr; in get_chr_property_list()
418 if (chr < 128 || (chr < 256 && !utf && !ucp)) in get_chr_property_list()
419 list[3] = fcc[chr]; in get_chr_property_list()
421 list[3] = UCD_OTHERCASE(chr); in get_chr_property_list()
423 list[3] = (chr < 256) ? fcc[chr] : chr; in get_chr_property_list()
425 list[3] = fcc[chr]; in get_chr_property_list()
[all …]
/third_party/nghttp2/
Dgenmethodchartbl.py16 if chr(i) in ["!" , "#" , "$" , "%" , "&" , "'" , "*",
18 ('0' <= chr(i) and chr(i) <= '9') or \
19 ('A' <= chr(i) and chr(i) <= 'Z') or \
20 ('a' <= chr(i) and chr(i) <= 'z'):
21 sys.stdout.write('1 /* {} */, '.format(chr(i)))
23 sys.stdout.write('0 /* {} */, '.format(chr(i)))
Dgenauthoritychartbl.py16 if chr(i) in [
21 ('0' <= chr(i) and chr(i) <= '9') or \
22 ('A' <= chr(i) and chr(i) <= 'Z') or \
23 ('a' <= chr(i) and chr(i) <= 'z'):
24 sys.stdout.write('1 /* {} */, '.format(chr(i)))
26 sys.stdout.write('0 /* {} */, '.format(chr(i)))
Dgennmchartbl.py16 if chr(i) in ["!" , "#" , "$" , "%" , "&" , "'" , "*",
18 ('0' <= chr(i) and chr(i) <= '9') or \
19 ('a' <= chr(i) and chr(i) <= 'z'):
20 sys.stdout.write('1 /* {} */, '.format(chr(i)))
22 sys.stdout.write('0 /* {} */, '.format(chr(i)))
Dgendowncasetbl.py15 if chr(i) == ' ':
17 elif chr(i) == '\t':
19 elif 'A' <= chr(i) and chr(i) <= 'Z':
20 sys.stdout.write('{} /* {} */, '.format(i - ord('A') + ord('a'), chr(i)))
22 sys.stdout.write('{} /* {} */, '.format(i, chr(i)))
/third_party/node/deps/npm/node_modules/archy/
Dindex.js4 var chr = function (s) { function
19 var splitter = '\n' + prefix + (nodes.length ? chr('│') : ' ') + ' ';
26 var prefix_ = prefix + (last ? ' ' : chr('│')) + ' ';
29 + (last ? chr('└') : chr('├')) + chr('─')
30 + (more ? chr('┬') : chr('─')) + ' '
/third_party/jerryscript/jerry-core/ecma/builtin-objects/
Decma-builtin-global.c601 ecma_char_t chr = lit_cesu8_read_next (&input_curr_p); in ecma_builtin_global_object_escape() local
603 if (chr <= LIT_UTF8_1_BYTE_CODE_POINT_MAX) in ecma_builtin_global_object_escape()
605 if (ecma_builtin_global_object_character_is_in ((uint32_t) chr, ecma_escape_set)) in ecma_builtin_global_object_escape()
614 else if (chr > ECMA_ESCAPE_MAXIMUM_BYTE_VALUE) in ecma_builtin_global_object_escape()
636 ecma_char_t chr = lit_cesu8_read_next (&input_curr_p); in ecma_builtin_global_object_escape() local
638 if (chr <= LIT_UTF8_1_BYTE_CODE_POINT_MAX) in ecma_builtin_global_object_escape()
640 if (ecma_builtin_global_object_character_is_in ((uint32_t) chr, ecma_escape_set)) in ecma_builtin_global_object_escape()
642 *output_char_p = (lit_utf8_byte_t) chr; in ecma_builtin_global_object_escape()
647 ecma_builtin_global_object_byte_to_hex (output_char_p, (lit_utf8_byte_t) chr); in ecma_builtin_global_object_escape()
651 else if (chr > ECMA_ESCAPE_MAXIMUM_BYTE_VALUE) in ecma_builtin_global_object_escape()
[all …]
/third_party/python/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 …]
/third_party/python/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.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))
135 self.assertEqual(eval(""" r'\x01' """), chr(1))
[all …]
Dtest_ucn.py70 for char in "".join(map(chr, range(ord("a"), ord("z")))):
107 char = chr(code)
136 self.checkletter(alias, chr(codepoint))
137 name = unicodedata.name(chr(codepoint))
148 unicodedata.name(chr(cp))
155 unicodedata.name(chr(cp))
192 codepoints = ''.join(chr(int(cp, 16)) for cp in codepoints.split())
/third_party/node/deps/base64/base64/test/
Dtest_base64.c98 char chr[256]; in test_char_table() local
104 chr[i] = (unsigned char)i; in test_char_table()
111 base64_encode(&chr[i], chrlen, enc, &enclen, BASE64_FORCE_PLAIN); in test_char_table()
127 if (strncmp(&chr[i], dec, declen) != 0) { in test_char_table()
140 char chr[256]; in test_streaming() local
147 chr[i] = (unsigned char)i; in test_streaming()
150 base64_encode(chr, 256, ref, &reflen, BASE64_FORCE_PLAIN); in test_streaming()
162 …base64_stream_encode(&state, &chr[inpos], (inpos + bs > 256) ? 256 - inpos : bs, &enc[enclen], &pa… in test_streaming()
209 if (strncmp(chr, enc, 256) != 0) { in test_streaming()
233 char chr[256]; in test_invalid_dec_input() local
[all …]
/third_party/e2fsprogs/
D1005-read-vfat-chinese-label.patch22 + unsigned char chr = *str;
26 + chr = *(str + i);
27 + if ((chr & 0x80) != 0)
29 + if(nBytes == 0 && ((chr & 0x80) != 0)) {
30 + while((chr & 0x80) != 0) {
31 + chr <<= 1;
39 + if((chr & 0xc0) != 0x80) {
/third_party/node/deps/npm/node_modules/columnify/
Dutils.js26 function padRight(str, max, chr) { argument
31 return str + repeatString(chr || ' ', length)
44 function padCenter(str, max, chr) { argument
51 return repeatString(chr || ' ', lengthLeft) + str + repeatString(chr || ' ', lengthRight)
64 function padLeft(str, max, chr) { argument
69 return repeatString(chr || ' ', length) + str
/third_party/python/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)
/third_party/python/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)
/third_party/skia/third_party/externals/spirv-tools/utils/vscode/src/lsp/span/
Dutf16.go66 func FromUTF16Column(p Point, chr int, content []byte) (Point, error) {
71 if chr <= 1 {
79 for count := 1; count < chr; count++ {
96 if count >= chr {
/third_party/spirv-tools/utils/vscode/src/lsp/span/
Dutf16.go66 func FromUTF16Column(p Point, chr int, content []byte) (Point, error) {
71 if chr <= 1 {
79 for count := 1; count < chr; count++ {
96 if count >= chr {
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/span/
Dutf16.go66 func FromUTF16Column(p Point, chr int, content []byte) (Point, error) {
71 if chr <= 1 {
79 for count := 1; count < chr; count++ {
96 if count >= chr {
/third_party/python/Modules/
Dsre_lib.h207 SRE_CODE chr; in SRE() local
242 chr = pattern[1]; in SRE()
243 TRACE(("|%p|%p|COUNT LITERAL %d\n", pattern, ptr, chr)); in SRE()
244 c = (SRE_CHAR) chr; in SRE()
246 if ((SRE_CODE) c != chr) in SRE()
256 chr = pattern[1]; in SRE()
257 TRACE(("|%p|%p|COUNT LITERAL_IGNORE %d\n", pattern, ptr, chr)); in SRE()
258 while (ptr < end && (SRE_CODE) sre_lower_ascii(*ptr) == chr) in SRE()
264 chr = pattern[1]; in SRE()
265 TRACE(("|%p|%p|COUNT LITERAL_UNI_IGNORE %d\n", pattern, ptr, chr)); in SRE()
[all …]

12345678910>>...22