Home
last modified time | relevance | path

Searched refs:punct (Results 1 – 25 of 126) sorted by relevance

123456

/external/rust/crates/paste/src/
Dlib.rs254 Some(TokenTree::Punct(punct)) => { in expand()
255 lookbehind = match punct.as_char() { in expand()
257 ':' if punct.spacing() == Spacing::Joint => Lookbehind::JointColon, in expand()
262 expanded.extend(iter::once(TokenTree::Punct(punct))); in expand()
300 (State::Init, TokenTree::Punct(punct)) if punct.as_char() == '\'' => State::Apostrophe, in is_single_interpolation_group()
302 (State::Ident, TokenTree::Punct(punct)) in is_single_interpolation_group()
303 if punct.as_char() == ':' && punct.spacing() == Spacing::Joint => in is_single_interpolation_group()
307 (State::Colon1, TokenTree::Punct(punct)) in is_single_interpolation_group()
308 if punct.as_char() == ':' && punct.spacing() == Spacing::Alone => in is_single_interpolation_group()
324 Some(TokenTree::Punct(punct)) if punct.as_char() == '<' => {} in is_paste_operation()
[all …]
Dattr.rs22 Some(TokenTree::Punct(ref punct)) in expand_attr()
23 if punct.as_char() == ':' && leading_colons < 2 && leading_path == 0 => in expand_attr()
32 Some(TokenTree::Punct(ref punct)) if punct.as_char() == ':' && leading_path % 3 > 0 => { in expand_attr()
36 Some(TokenTree::Punct(ref punct)) in expand_attr()
37 if punct.as_char() == '=' && leading_path % 3 == 1 => in expand_attr()
68 TokenTree::Punct(punct) if punct.as_char() == ',' => { in expand_attr()
160 TokenTree::Punct(punct) => punct.as_char() == '\'' || punct.as_char() == ':', in is_stringlike()
Dsegment.rs25 Some(TokenTree::Punct(punct)) => punct.as_char() != '>', in parse()
36 Some(TokenTree::Punct(punct)) => punct.as_char() == '!', in parse()
104 TokenTree::Punct(punct) => match punct.as_char() { in parse()
107 span: punct.span(), in parse()
109 '\'' => segments.push(Segment::Apostrophe(punct.span())), in parse()
111 let colon_span = punct.span(); in parse()
122 _ => return Err(Error::new(punct.span(), "unexpected punct")), in parse()
Derror.rs30 let mut punct = Punct::new('!', Spacing::Alone); in to_compile_error() localVariable
31 punct.set_span(self.begin); in to_compile_error()
32 punct in to_compile_error()
/external/rust/crates/proc-macro2/tests/
Dcomments.rs16 TokenTree::Punct(punct) => { in lit_of_doc_comment()
17 assert_eq!(punct.as_char(), '#'); in lit_of_doc_comment()
18 assert_eq!(punct.spacing(), Spacing::Alone); in lit_of_doc_comment()
24 TokenTree::Punct(punct) => { in lit_of_doc_comment()
25 assert_eq!(punct.as_char(), '!'); in lit_of_doc_comment()
26 assert_eq!(punct.spacing(), Spacing::Alone); in lit_of_doc_comment()
44 TokenTree::Punct(punct) => { in lit_of_doc_comment()
45 assert_eq!(punct.as_char(), '='); in lit_of_doc_comment()
46 assert_eq!(punct.spacing(), Spacing::Alone); in lit_of_doc_comment()
/external/rust/crates/quote/src/
Druntime.rs241 let mut punct = Punct::new($char1, Spacing::Alone); localVariable
242 punct.set_span(span);
243 tokens.append(punct);
252 let mut punct = Punct::new($char1, Spacing::Joint); localVariable
253 punct.set_span(span);
254 tokens.append(punct);
255 let mut punct = Punct::new($char2, Spacing::Alone); localVariable
256 punct.set_span(span);
257 tokens.append(punct);
267 let mut punct = Punct::new($char1, Spacing::Joint); localVariable
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/
Dis_many.pass.cpp47 assert(!(m[0] & F::punct)); in main()
61 assert(!(m[1] & F::punct)); in main()
75 assert(!(m[2] & F::punct)); in main()
89 assert(!(m[3] & F::punct)); in main()
103 assert( (m[4] & F::punct)); in main()
117 assert(!(m[5] & F::punct)); in main()
131 assert(!(m[6] & F::punct)); in main()
156 assert(!(m[0] & F::punct)); in main()
170 assert(!(m[1] & F::punct)); in main()
184 assert(!(m[2] & F::punct)); in main()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype.byname/
Dis_many.pass.cpp47 assert(!(m[0] & F::punct)); in main()
61 assert(!(m[1] & F::punct)); in main()
75 assert(!(m[2] & F::punct)); in main()
89 assert(!(m[3] & F::punct)); in main()
103 assert( (m[4] & F::punct)); in main()
117 assert(!(m[5] & F::punct)); in main()
131 assert(!(m[6] & F::punct)); in main()
156 assert(!(m[0] & F::punct)); in main()
170 assert(!(m[1] & F::punct)); in main()
184 assert(!(m[2] & F::punct)); in main()
[all …]
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.statics/
Dclassic_table.pass.cpp29 | F::alpha | F::digit | F::punct | F::xdigit | F::blank; in main()
51 if ( i >= 33 && i <= 47 ) set |= F::punct; // ' ' .. '/' in main()
52 if ( i >= 58 && i <= 64 ) set |= F::punct; // ':' .. '@' in main()
53 if ( i >= 91 && i <= 96 ) set |= F::punct; // '[' .. '`' in main()
54 if ( i >= 123 && i <= 126 ) set |= F::punct; // '{' .. '~' } in main()
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.statics/
Dclassic_table.pass.cpp28 | F::alpha | F::digit | F::punct | F::xdigit | F::blank; in main()
50 if ( i >= 33 && i <= 47 ) set |= F::punct; // ' ' .. '/' in main()
51 if ( i >= 58 && i <= 64 ) set |= F::punct; // ':' .. '@' in main()
52 if ( i >= 91 && i <= 96 ) set |= F::punct; // '[' .. '`' in main()
53 if ( i >= 123 && i <= 126 ) set |= F::punct; // '{' .. '~' } in main()
/external/rust/crates/syn/src/
Dtoken.rs215 impl_low_level_token!("punctuation token" Punct punct);
447 printing::punct($token, &self.spans, tokens);
456 spans: parsing::punct(input, $token)?,
578 if let Some((punct, rest)) = cursor.punct() { in parse()
579 if punct.as_char() == '_' { in parse()
580 return Ok((Underscore(punct.span()), rest)); in parse()
594 if let Some((punct, _rest)) = cursor.punct() { in peek()
595 return punct.as_char() == '_'; in peek()
915 pub fn punct<S: FromSpans>(input: ParseStream, token: &str) -> Result<S> { in punct() function
927 match cursor.punct() {
[all …]
Dpath.rs333 let punct = input.parse()?; in parse() localVariable
334 args.push_punct(punct); in parse()
423 let punct = input.parse()?; in constraint_bounds() localVariable
424 bounds.push_punct(punct); in constraint_bounds()
483 let punct = input.parse()?; in parse_mod_style() localVariable
484 segments.push_punct(punct); in parse_mod_style()
581 let punct: Token![::] = input.parse()?; in parse_rest() localVariable
582 path.segments.push_punct(punct); in parse_rest()
610 let punct: Token![::] = input.parse()?; in qpath() localVariable
611 rest.push_punct(punct); in qpath()
[all …]
/external/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/
Dis_many.pass.cpp42 assert(!(m[0] & F::punct)); in main()
56 assert(!(m[1] & F::punct)); in main()
70 assert(!(m[2] & F::punct)); in main()
84 assert( (m[3] & F::punct)); in main()
98 assert(!(m[4] & F::punct)); in main()
112 assert(!(m[5] & F::punct)); in main()
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/facet.ctype.special/facet.ctype.char.members/
Dis_many.pass.cpp43 assert(!(m[0] & F::punct)); in main()
57 assert(!(m[1] & F::punct)); in main()
71 assert(!(m[2] & F::punct)); in main()
85 assert( (m[3] & F::punct)); in main()
99 assert(!(m[4] & F::punct)); in main()
113 assert(!(m[5] & F::punct)); in main()
/external/python/cpython2/Tools/scripts/
Dtexcheck.py121 for begend, name, punct in delimiters.findall(line):
123 print lineno, '|', begend, name, punct,
126 elif punct in openpunct:
127 openers.append((lineno, punct))
130 elif punct in pairmap:
131 matchclose(lineno, punct, openers, pairmap)
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/
Dis_many.pass.cpp43 assert(!(m[0] & F::punct)); in main()
57 assert(!(m[1] & F::punct)); in main()
71 assert(!(m[2] & F::punct)); in main()
85 assert( (m[3] & F::punct)); in main()
99 assert(!(m[4] & F::punct)); in main()
113 assert(!(m[5] & F::punct)); in main()
/external/libcxx/test/std/localization/locale.categories/category.ctype/locale.ctype/locale.ctype.members/
Dis_many.pass.cpp42 assert(!(m[0] & F::punct)); in main()
56 assert(!(m[1] & F::punct)); in main()
70 assert(!(m[2] & F::punct)); in main()
84 assert( (m[3] & F::punct)); in main()
98 assert(!(m[4] & F::punct)); in main()
112 assert(!(m[5] & F::punct)); in main()
/external/llvm-project/libcxx/test/std/localization/locale.categories/category.ctype/
Dctype_base.pass.cpp47 assert(std::ctype_base::punct); in main()
57 & std::ctype_base::punct in main()
60 assert(std::ctype_base::graph == (std::ctype_base::alnum | std::ctype_base::punct)); in main()
69 test(std::ctype_base::punct); in main()
/external/libcxx/test/std/localization/locale.categories/category.ctype/
Dctype_base.pass.cpp51 assert(std::ctype_base::punct); in main()
61 & std::ctype_base::punct in main()
64 assert(std::ctype_base::graph == (std::ctype_base::alnum | std::ctype_base::punct)); in main()
73 test(std::ctype_base::punct); in main()
/external/python/cpython3/Lib/encodings/
D__init__.py59 punct = False
62 if punct and chars:
65 punct = False
67 punct = True
/external/rust/crates/proc-macro-hack/src/
Derror.rs23 let mut punct = Punct::new('!', Spacing::Alone); in compile_error() localVariable
24 punct.set_span(err.span); in compile_error()
25 punct in compile_error()
/external/rust/crates/rustversion/src/
Dtoken.rs7 Some(TokenTree::Punct(ref punct)) if punct.as_char() == ch => Ok(()), in parse_punct()
19 Some(TokenTree::Punct(punct)) if punct.as_char() == ch => iter.next().map(drop), in parse_optional_punct()
/external/scapy/scapy/
Dpipetool.py280 s = "%s%s" % (ct.punct("<"), ct.layer_name(self.name))
282 s+= " %s" % ct.punct("[")
284 s+="%s%s" % (ct.punct(",").join(ct.field_name(s.name) for s in self.sources),
289 ct.punct(",").join(ct.field_name(s.name) for s in self.sinks))
290 s += ct.punct("]")
293 s+= " %s" % ct.punct("[")
295 s+="%s%s" % (ct.punct(",").join(ct.field_name(s.name) for s in self.high_sources),
300 ct.punct(",").join(ct.field_name(s.name) for s in self.high_sinks))
301 s += ct.punct("]")
304 s+= " %s" % ct.punct("[")
[all …]
/external/libcxx/test/std/re/re.traits/
Dlookup_classname.pass.cpp68 LIBCPP_ASSERT((std::ctype_base::punct & std::regex_traits<char>::__regex_word) == 0); in main()
136 test("punct", std::ctype_base::punct); in main()
137 test("PUNCT", std::ctype_base::punct); in main()
138 test("punct", std::ctype_base::punct, true); in main()
139 test("Punct", std::ctype_base::punct, true); in main()
224 test(L"punct", std::ctype_base::punct); in main()
225 test(L"PUNCT", std::ctype_base::punct); in main()
226 test(L"punct", std::ctype_base::punct, true); in main()
227 test(L"Punct", std::ctype_base::punct, true); in main()
/external/llvm-project/libcxx/test/std/re/re.traits/
Dlookup_classname.pass.cpp67 LIBCPP_ASSERT((std::ctype_base::punct & std::regex_traits<char>::__regex_word) == 0); in main()
135 test("punct", std::ctype_base::punct); in main()
136 test("PUNCT", std::ctype_base::punct); in main()
137 test("punct", std::ctype_base::punct, true); in main()
138 test("Punct", std::ctype_base::punct, true); in main()
223 test(L"punct", std::ctype_base::punct); in main()
224 test(L"PUNCT", std::ctype_base::punct); in main()
225 test(L"punct", std::ctype_base::punct, true); in main()
226 test(L"Punct", std::ctype_base::punct, true); in main()

123456