/third_party/rust/crates/regex/regex-syntax/src/unicode_tables/ |
H A D | script_extension.rs | 9 pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[ 175 pub const ADLAM: &'static [(char, char)] = 178 pub const AHOM: &'static [(char, char)] = 181 pub const ANATOLIAN_HIEROGLYPHS: &'static [(char, char)] = &[('?', '?')]; 183 pub const ARABIC: &'static [(char, char)] [all...] |
H A D | script.rs | 9 pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[ 175 pub const ADLAM: &'static [(char, char)] = 178 pub const AHOM: &'static [(char, char)] = 181 pub const ANATOLIAN_HIEROGLYPHS: &'static [(char, char)] = &[('?', '?')]; 183 pub const ARABIC: &'static [(char, char)] [all...] |
H A D | age.rs | 9 pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[ 37 pub const V10_0: &'static [(char, char)] = &[ 80 pub const V11_0: &'static [(char, char)] = &[ 142 pub const V12_0: &'static [(char, char)] = &[ 205 pub const V12_1: &'static [(char, char)] [all...] |
H A D | sentence_break.rs | 9 pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[ 26 pub const ATERM: &'static [(char, char)] = 29 pub const CR: &'static [(char, char)] = &[('\r', '\r')]; 31 pub const CLOSE: &'static [(char, char)] = &[ 79 pub const EXTEND: &'static [(char, char)] [all...] |
H A D | grapheme_cluster_break.rs | 9 pub const BY_NAME: &'static [(&'static str, &'static [(char, char)])] = &[ 25 pub const CR: &'static [(char, char)] = &[('\r', '\r')]; 27 pub const CONTROL: &'static [(char, char)] = &[ 49 pub const EXTEND: &'static [(char, char)] = &[ 416 pub const L: &'static [(char, char)] [all...] |
/third_party/node/deps/undici/src/lib/cookies/ |
H A D | util.js | 11 for (const char of value) { 12 const code = char.charCodeAt(0) 34 for (const char of name) { 35 const code = char.charCodeAt(0) 39 char === '(' || 40 char === ')' || 41 char === '>' || 42 char === '<' || 43 char === '@' || 44 char [all...] |
/third_party/node/deps/undici/src/lib/websocket/ |
H A D | util.js | 122 for (const char of protocol) { 123 const code = char.charCodeAt(0) 128 char === '(' || 129 char === ')' || 130 char === '<' || 131 char === '>' || 132 char === '@' || 133 char === ',' || 134 char === ';' || 135 char [all...] |
/third_party/node/deps/undici/src/lib/fetch/ |
H A D | dataURL.js | 134 * @param {(char: string) => boolean} condition 158 * @param {string} char 162 function collectASequenceOfCodePointsFast (char, input, position) { 163 const idx = input.indexOf(char, position.position) 309 char => HTTP_WHITESPACE_REGEX.test(char), 318 (char) => char !== ';' && char !== '=', 469 (char) [all...] |
/third_party/rust/crates/nom/examples/ |
H A D | string.rs | 16 use nom::character::streaming::{char, multispace1}; 30 fn parse_unicode<'a, E>(input: &'a str) -> IResult<&'a str, char, E> in parse_unicode() 36 let parse_hex = take_while_m_n(1, 6, |c: char| c.is_ascii_hexdigit()); in parse_unicode() 41 char('u'), in parse_unicode() 45 delimited(char('{'), parse_hex, char('}')), in parse_unicode() 56 // convert to char with from_u32. in parse_unicode() 57 map_opt(parse_u32, |value| std::char::from_u32(value))(input) in parse_unicode() 61 fn parse_escaped_char<'a, E>(input: &'a str) -> IResult<&'a str, char, E> in parse_escaped_char() 66 char('\\'), in parse_escaped_char() [all...] |
/third_party/python/Tools/unicode/ |
H A D | makeunicodedata.py | 149 for char in unicode.chars: 150 record = unicode.table[char] 168 index[char] = i 181 for char in unicode.chars: 182 record = unicode.table[char] 187 raise Exception("character %x has a decomposition too large for nfd_nfkd" % char) 204 char not in unicode.exclusions and \ 209 comp_pairs.append((l,r,char)) 218 decomp_index[char] = i 251 for f,l,char i [all...] |
/third_party/python/Lib/encodings/ |
H A D | punycode.py | 30 def selective_find(str, char, index, pos): 32 char in str. index is the position of the character considering 33 only ordinals up to and including char, and pos is the position in 43 if c == char: 45 elif c < char: 55 char = ord(c) 56 curlen = selective_len(str, char) 57 delta = (curlen+1) * (char - oldchar) 66 oldchar = char 134 char [all...] |
/third_party/node/deps/undici/src/node_modules/@fastify/busboy/lib/utils/ |
H A D | parseParams.js | 128 const char = str[i] 129 if (char === '\\' && inquote) { 134 } else if (char === '"') { 145 if ((state === STATE_CHARSET || state === STATE_LANG) && char === "'") { 153 (char === '*' || char === '=') && 155 state = char === '*' 161 } else if (!inquote && char === ';') { 177 } else if (!inquote && (char === ' ' || char [all...] |
/third_party/python/Lib/test/ |
H A D | test_unicodedata.py | 28 char = chr(i) 30 # Predicates (single char) 31 "01"[char.isalnum()], 32 "01"[char.isalpha()], 33 "01"[char.isdecimal()], 34 "01"[char.isdigit()], 35 "01"[char.islower()], 36 "01"[char.isnumeric()], 37 "01"[char.isspace()], 38 "01"[char [all...] |
/third_party/rust/crates/codespan/codespan-reporting/src/term/ |
H A D | config.rs | 200 pub source_border_top_left: char, 203 pub source_border_top: char, 206 pub source_border_left: char, 209 pub source_border_left_break: char, 213 pub note_bullet: char, 217 pub single_primary_caret: char, 220 pub single_secondary_caret: char, 224 pub multi_primary_caret_start: char, 227 pub multi_primary_caret_end: char, 230 pub multi_secondary_caret_start: char, [all...] |
/third_party/rust/crates/regex/regex-syntax/src/ |
H A D | unicode.rs | 12 type Range = &'static [(char, char)]; 82 c: char, in fmt() 83 ) -> FoldResult<result::Result<impl Iterator<Item = char>, Option<char>>> { in fmt() 86 _: char, in fmt() 87 ) -> FoldResult<result::Result<impl Iterator<Item = char>, Option<char>>> in fmt() 90 Err::<result::Result<IntoIter<char>, _>, _>(CaseFoldError(())) in fmt() 95 c: char, in fmt() [all...] |
/third_party/python/Lib/re/ |
H A D | _parser.py | 234 char = self.decoded_string[index] 238 if char == "\\": 241 char += self.decoded_string[index] 246 self.next = char 247 def match(self, char): 248 if char == self.next: 675 raise AssertionError("unsupported quantifier %r" % (char,)) 713 char = sourceget() 714 if char is None: 716 if char [all...] |
/third_party/rust/crates/regex/src/ |
H A D | utf8.rs | 14 use std::char; 51 pub fn decode_utf8(src: &[u8]) -> Option<(char, usize)> { in decode_utf8() 54 Some(&b) if b <= 0x7F => return Some((b as char, 1)), in decode_utf8() 68 0x80..=0x7FF => char::from_u32(cp).map(|cp| (cp, 2)), in decode_utf8() 87 // char::from_u32 will disallow surrogate codepoints. in decode_utf8() 88 0x800..=0xFFFF => char::from_u32(cp).map(|cp| (cp, 3)), in decode_utf8() 111 0x10000..=0x0010_FFFF => char::from_u32(cp).map(|cp| (cp, 4)), in decode_utf8() 121 pub fn decode_last_utf8(src: &[u8]) -> Option<(char, usize)> { in decode_last_utf8() 127 return Some((src[start] as char, 1)); in decode_last_utf8() 158 fn p(given_cp: char) in prop_roundtrip() [all...] |
H A D | input.rs | 1 use std::char; 35 pub fn char(&self) -> Char { in char() functions 168 at.char() in next_char() 337 /// An inline representation of `Option<char>`. 339 /// This eliminates the need to do case analysis on `Option<char>` to determine 342 /// (The `Option<char>` is not related to encoding. Instead, it is used in the 350 match char::from_u32(self.0) { in fmt() 369 char::from_u32(self.0).map_or(1, |c| c.len_utf8()) in len_utf8() 380 char::from_u32(self.0).map_or(false, regex_syntax::is_word_character) in is_word_char() 387 match char in is_word_byte() [all...] |
/third_party/jerryscript/tools/ |
H A D | gen_c_source.py | 36 def hex_format(char, digit_number): 37 if isinstance(char, str): 38 char = ord(char) 40 return ("0x{:0%sx}" % digit_number).format(char) 47 converted_code = [hex_format(char, digit_number) for char in code]
|
/third_party/python/Lib/idlelib/idle_test/ |
H A D | mock_tk.py | 120 """Return a (line, char) tuple of int indexes into self.data. 127 * line.char float: converted to 'line.char' string; 128 * 'line.char' string, where line and char are decimal integers; 129 * 'line.char lineend', where lineend='lineend' (and char is ignored); 148 line, char = index.split('.') 158 if char.endswith(' lineend') or char [all...] |
/third_party/rust/crates/nom/tests/ |
H A D | json.rs | 6 character::complete::{anychar, char, multispace0, none_of}, 35 fn unicode_escape(input: &str) -> IResult<&str, char> { in unicode_escape() 56 std::char::from_u32, in unicode_escape() 60 fn character(input: &str) -> IResult<&str, char> { in character() 75 preceded(char('u'), unicode_escape), in character() 84 char('"'), in string() 89 char('"'), in string() 99 char('['), in array() 100 ws(separated_list0(ws(char(',')), json_value)), in array() 101 char(']'), in array() [all...] |
H A D | arithmetic.rs | 4 character::complete::char, 39 pair(alt((char('*'), char('/'))), factor), in term() 41 |acc, (op, val): (char, i64)| { in term() 55 pair(alt((char('+'), char('-'))), term), in expr() 57 |acc, (op, val): (char, i64)| { in expr()
|
/third_party/rust/crates/nom/benchmarks/benches/ |
H A D | json.rs | 11 character::complete::{anychar, char, multispace0, none_of}, 40 fn unicode_escape(input: &str) -> IResult<&str, char> { in unicode_escape() 61 std::char::from_u32, in unicode_escape() 65 fn character(input: &str) -> IResult<&str, char> { in character() 80 preceded(char('u'), unicode_escape), in character() 89 char('"'), in string() 94 char('"'), in string() 104 char('['), in array() 105 ws(separated_list0(ws(char(',')), json_value)), in array() 106 char(']'), in array() [all...] |
/third_party/python/Lib/tomllib/ |
H A D | _parser.py | 95 char = src[pos] 98 if char == "\n": 101 if char in KEY_INITIAL_CHARS: 104 elif char == "[": 115 elif char != "#": 123 char = src[pos] 126 if char != "\n": 265 char: str | None = src[pos] 267 char = None 268 if char [all...] |
/third_party/rust/crates/nom/src/character/ |
H A D | tests.rs | 7 fn f(i: &[u8]) -> IResult<&[u8], char> { in one_of_test() 17 fn utf8(i: &str) -> IResult<&str, char> { in one_of_test() 27 fn f(i: &[u8]) -> IResult<&[u8], char> { in none_of_test() 40 fn f(i: &[u8]) -> IResult<&[u8], char> { in char_byteslice() 41 char('c')(i) in char_byteslice() 53 fn f(i: &str) -> IResult<&str, char> { in char_str() 54 char('c')(i) in char_str()
|