Home
last modified time | relevance | path

Searched refs:quote (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/external/rust/crates/quote/tests/
Dtest.rs7 use quote::{format_ident, quote, TokenStreamExt};
11 impl quote::ToTokens for X {
19 let tokens = quote! { in test_quote_impl()
41 let tokens = quote!(#x <#x> (#x) [#x] {#x}); in test_substitution()
52 assert_eq!("X X X X", quote!(#(#primes)*).to_string()); in test_iter()
54 assert_eq!("X , X , X , X ,", quote!(#(#primes,)*).to_string()); in test_iter()
56 assert_eq!("X , X , X , X", quote!(#(#primes),*).to_string()); in test_iter()
61 let generics = quote!( <'a, T> ); in test_advanced()
63 let where_clause = quote!( where T: Serialize ); in test_advanced()
65 let field_ty = quote!(String); in test_advanced()
[all …]
/external/rust/crates/syn/0.15.42/tests/
Dtest_generics.rs1 extern crate quote;
9 use quote::quote;
14 let input = quote! { in test_split_for_impl()
108 let generated = quote! { in test_split_for_impl()
111 let expected = quote! { in test_split_for_impl()
121 let generated = quote! { in test_split_for_impl()
124 let expected = quote! { in test_split_for_impl()
132 let tokens = quote!('a); in test_ty_param_bound()
139 let tokens = quote!('_); in test_ty_param_bound()
146 let tokens = quote!(Debug); in test_ty_param_bound()
[all …]
Dtest_derive_input.rs1 extern crate quote;
9 use quote::quote;
14 let input = quote! { in test_unit()
33 let input = quote! { in test_struct()
125 let input = quote! { in test_union()
179 let input = quote! { in test_enum()
327 let input = quote! { in test_attr_with_path()
369 let input = quote! { in test_attr_with_non_mod_style_path()
405 let input = quote! { in test_attr_with_mod_style_path_with_self()
446 let input = quote! { in test_pub_restricted()
[all …]
Dtest_pat.rs1 extern crate quote;
6 use quote::quote;
11 match syn::parse2(quote!(self)).unwrap() { in test_pat_ident()
19 match syn::parse2(quote!(self::CONST)).unwrap() { in test_pat_path()
/external/apache-http/src/org/apache/http/message/
DBasicHeaderValueFormatter.java103 final boolean quote, in formatElements() argument
107 return formatter.formatElements(null, elems, quote).toString(); in formatElements()
114 final boolean quote) { in formatElements() argument
131 formatHeaderElement(buffer, elems[i], quote); in formatElements()
172 boolean quote, in formatHeaderElement() argument
176 return formatter.formatHeaderElement(null, elem, quote).toString(); in formatHeaderElement()
183 final boolean quote) { in formatHeaderElement() argument
200 doFormatValue(buffer, value, quote); in formatHeaderElement()
207 formatNameValuePair(buffer, elem.getParameter(i), quote); in formatHeaderElement()
260 final boolean quote, in formatParameters() argument
[all …]
/external/rust/crates/syn/1.0.7/tests/
Dtest_derive_input.rs6 use quote::quote;
11 let input = quote! { in test_unit()
30 let input = quote! { in test_struct()
143 let input = quote! { in test_union()
197 let input = quote! { in test_enum()
359 let input = quote! { in test_attr_with_path()
401 let input = quote! { in test_attr_with_non_mod_style_path()
437 let input = quote! { in test_attr_with_mod_style_path_with_self()
491 let input = quote! { in test_pub_restricted()
550 let input = quote! { in test_vis_crate()
[all …]
Dtest_generics.rs6 use quote::quote;
11 let input = quote! { in test_split_for_impl()
105 let generated = quote! { in test_split_for_impl()
108 let expected = quote! { in test_split_for_impl()
118 let generated = quote! { in test_split_for_impl()
121 let expected = quote! { in test_split_for_impl()
129 let tokens = quote!('a); in test_ty_param_bound()
136 let tokens = quote!('_); in test_ty_param_bound()
143 let tokens = quote!(Debug); in test_ty_param_bound()
158 let tokens = quote!(?Sized); in test_ty_param_bound()
[all …]
Dtest_pat.rs3 use quote::quote;
8 match syn::parse2(quote!(self)).unwrap() { in test_pat_ident()
16 match syn::parse2(quote!(self::CONST)).unwrap() { in test_pat_path()
/external/python/uritemplates/uritemplate/
Dvariable.py156 '{}={}'.format(name, quote(v, safe)) for v in value
159 value = ','.join(quote(v, safe) for v in value)
169 quote(k, safe), quote(v, safe)
175 quote(k, safe), quote(v, safe)
182 return '{}={}'.format(name, quote(value, safe))
203 fragments = [quote(v, safe) for v in value if v is not None]
215 quote(k, safe), quote(v, safe)
221 return quote(value, safe)
240 name, quote(v, safe)
245 value = ','.join(quote(v, safe) for v in value)
[all …]
/external/autotest/client/cros/multimedia/
Darc_resource.py127 pipes.quote(self._MICROPHONE_PACKAGE),
128 pipes.quote(permission)))
133 arc.adb_shell('am start -W %s' % pipes.quote(self._MICROPHONE_ACTIVITY))
143 'am force-stop %s' % pipes.quote(self._MICROPHONE_PACKAGE))
154 arc.adb_cmd('pull %s %s' % (pipes.quote(self._MICROPHONE_RECORD_PATH),
155 pipes.quote(dest_path)))
160 arc.adb_shell('rm %s' % pipes.quote(self._MICROPHONE_RECORD_PATH))
194 arc.adb_cmd('push %s %s' % (pipes.quote(file_path),
195 pipes.quote(dest_path)))
229 pipes.quote(self._PLAYMUSIC_PACKAGE),
[all …]
/external/rust/crates/quote/
DREADME.md4 …ild Status](https://api.travis-ci.org/dtolnay/quote.svg?branch=master)](https://travis-ci.org/dtol…
5 [![Latest Version](https://img.shields.io/crates/v/quote.svg)](https://crates.io/crates/quote)
6 [![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/quote/)
8 This crate provides the [`quote!`] macro for turning Rust syntax tree data
11 [`quote!`]: https://docs.rs/quote/1.0/quote/macro.quote.html
20 Within the `quote!` macro, we can write what looks like code to our text editor
34 [*Release notes*](https://github.com/dtolnay/quote/releases)
38 quote = "1.0"
43 The quote crate provides a [`quote!`] macro within which you can write Rust code
49 Within the `quote!` macro, interpolation is done with `#var`. Any type
[all …]
DCargo.toml.orig2 name = "quote"
6 description = "Quasi-quoting macro quote!(...)"
7 repository = "https://github.com/dtolnay/quote"
8 documentation = "https://docs.rs/quote/"
16 name = "quote"
32 travis-ci = { repository = "dtolnay/quote" }
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
DCommandLineSupportTest.java27 assertEquals("aBc", CommandLineSupport.quote("aBc")); in testQuote1()
32 assertEquals("\"a c\"", CommandLineSupport.quote("a c")); in testQuote2()
37 assertEquals("\"a\\\"c\"", CommandLineSupport.quote("a\"c")); in testQuote3()
42 assertEquals("\" xy \"", CommandLineSupport.quote(" xy ")); in testQuote4()
47 assertEquals("a\\\\b", CommandLineSupport.quote("a\\b")); in testQuote5()
52 assertEquals("", CommandLineSupport.quote(Arrays.<String> asList())); in testQuoteList1()
57 assertEquals("a", CommandLineSupport.quote(Arrays.asList("a"))); in testQuoteList2()
63 CommandLineSupport.quote(Arrays.asList("a", "b", "c"))); in testQuoteList3()
69 CommandLineSupport.quote(Arrays.asList("a", "b b", "c"))); in testQuoteList4()
/external/crosvm/enumn/src/
Dlib.rs112 use quote::quote;
155 signature = quote! { in testable_derive()
158 value = quote!(value); in testable_derive()
162 signature = quote! { in testable_derive()
165 value = quote! { in testable_derive()
174 quote! { in testable_derive()
180 quote! { in testable_derive()
185 quote! { in testable_derive()
/external/crosvm/sys_util/poll_token_derive/
Dpoll_token_derive.rs10 use quote::quote;
59 quote!({ #member: data }) in generate_as_raw_token()
65 Fields::Named(_) | Fields::Unnamed(_) => Some(quote! { in generate_as_raw_token()
72 quote! { in generate_as_raw_token()
77 quote! { in generate_as_raw_token()
101 quote!({ #member: (data >> #variant_bits) as #ty }) in generate_from_raw_token()
105 quote! { in generate_from_raw_token()
110 quote! { in generate_from_raw_token()
146 quote! { in poll_token_inner()
/external/crosvm/msg_socket/msg_on_socket_derive/
Dmsg_on_socket_derive.rs11 use quote::quote;
24 return quote! { in socket_msg_impl()
37 _ => quote! { in socket_msg_impl()
58 quote! { in impl_for_named_struct()
98 quote! { in define_buffer_size_for_struct()
115 init_fields.push(quote!(#name)); in define_read_buffer_for_struct()
117 quote! { in define_read_buffer_for_struct()
141 quote! { in define_write_buffer_for_struct()
162 quote! { in impl_for_enum()
179 quote! { in define_buffer_size_for_enum()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtokiter.cpp73 UChar quote = 0; in nextToken() local
77 quote = c; in nextToken()
94 } else if ((quote != 0 && c == quote) || in nextToken()
95 (quote == 0 && PatternProps::isWhiteSpace(c))) { in nextToken()
98 } else if (quote == 0 && c == '#') { in nextToken()
105 if (quote != 0) { in nextToken()
/external/icu/android_icu4j/src/main/java/android/icu/impl/data/
DTokenIterator.java120 char quote = 0; in nextToken() local
124 quote = c; in nextToken()
148 } else if ((quote != 0 && c == quote) || in nextToken()
149 (quote == 0 && PatternProps.isWhiteSpace(c))) { in nextToken()
151 } else if (quote == 0 && c == '#') { in nextToken()
158 if (quote != 0) { in nextToken()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/data/
DTokenIterator.java118 char quote = 0; in nextToken() local
122 quote = c; in nextToken()
146 } else if ((quote != 0 && c == quote) || in nextToken()
147 (quote == 0 && PatternProps.isWhiteSpace(c))) { in nextToken()
149 } else if (quote == 0 && c == '#') { in nextToken()
156 if (quote != 0) { in nextToken()
/external/v8/src/ast/
Dprettyprinter.h79 void PrintLiteral(Handle<Object> value, bool quote);
80 void PrintLiteral(const AstRawString* value, bool quote);
114 void PrintLiteral(const AstRawString* value, bool quote);
115 void PrintLiteral(const AstConsString* value, bool quote);
116 void PrintLiteral(Literal* literal, bool quote);
125 void PrintLiteralIndented(const char* info, Literal* literal, bool quote);
127 bool quote);
129 bool quote);
/external/crosvm/p9/wire_format_derive/
Dwire_format_derive.rs14 use quote::{quote, quote_spanned};
27 return quote! { in p9_wire_format_inner()
40 quote! { in p9_wire_format_inner()
78 quote! { in byte_size_sum()
101 quote! { in encode_wire_format()
128 quote! { in decode_wire_format()
133 quote! { in decode_wire_format()
163 let expected = quote! { in byte_size()
183 let expected = quote! { in encode()
207 let expected = quote! { in decode()
[all …]
/external/crosvm/bit_field/bit_field_derive/
Dbit_field_derive.rs10 use quote::{quote, quote_spanned};
27 quote! { in bitfield()
120 let expanded = quote! { in bitfield_tuple_struct_impl()
171 quote! { in bitfield_enum_with_width_impl()
176 let expanded = quote! { in bitfield_enum_with_width_impl()
242 quote! { in bitfield_enum_without_width_impl()
247 let expanded = quote! { in bitfield_enum_without_width_impl()
316 quote! { in get_declare_discriminants_for_enum()
340 let expanded = quote! { in bitfield_struct_impl()
437 let data_size_in_bits = quote! { in get_struct_def()
[all …]
/external/pcre/dist2/testdata/
Dtestinput923 " (?: # opening quote...
24 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
27 )* " # closing quote
37 " (?: # opening quote...
38 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
41 )* " # closing quote
74 " (?: # opening quote...
75 [^\\\x80-\xff\n\015"] # Anything except backslash and quote
78 )* " # closing quote
86 " (?: # opening quote...
[all …]
/external/libcxx/test/std/strings/string.view/string.view.nonmem/
Dquoted.pass.cpp80 std::string quote ( const char *p, char delim='"', char escape='\\' ) { in quote() function
144 std::wstring quote ( const wchar_t *p, wchar_t delim='"', wchar_t escape='\\' ) { in quote() function
180 assert ( quote ( "Hi", '!' ) == "!Hi!" ); in main()
181 assert ( quote ( "Hi!", '!' ) == R"(!Hi\!!)" ); in main()
187 assert ( quote ( L"Hi", '!' ) == L"!Hi!" ); in main()
188 assert ( quote ( L"Hi!", '!' ) == LR"(!Hi\!!)" ); in main()
195 assert ( quote ( "" ) == "\"\"" ); in main()
196 assert ( quote ( L"" ) == L"\"\"" ); in main()
197 assert ( quote ( "a" ) == "\"a\"" ); in main()
198 assert ( quote ( L"a" ) == L"\"a\"" ); in main()
/external/clang/test/Modules/Inputs/macro-ambiguity/
Dmodule.modulemap2 header "Inputs/macro-ambiguity/a/quote/a_quote.h"
7 header "Inputs/macro-ambiguity/b/quote/b_quote.h"
12 header "Inputs/macro-ambiguity/c/quote/c_quote.h"
17 header "Inputs/macro-ambiguity/d/quote/d_quote.h"
22 textual header "Inputs/macro-ambiguity/e/quote/e_quote.h"

12345678910>>...29