Home
last modified time | relevance | path

Searched refs:push_str (Results 1 – 25 of 93) sorted by relevance

1234

/external/rust/crates/grpcio-compiler/src/
Dprost_codegen.rs113 buf.push_str("const "); in generate_method()
114 buf.push_str(&name); in generate_method()
115 buf.push_str(": "); in generate_method()
116 buf.push_str(&ty); in generate_method()
117 buf.push_str(" = "); in generate_method()
130 buf.push_str(&fq_grpc("Method")); in generate_method_body()
140 buf.push_str("};\n"); in generate_method_body()
156 buf.push_str(name); in generate_field_init()
157 buf.push_str(": "); in generate_field_init()
158 buf.push_str(value); in generate_field_init()
[all …]
/external/rust/crates/libm/
Dbuild.rs251 src.push_str("use std::io::Write;"); in generate_test_outputs()
252 src.push_str("fn main() {"); in generate_test_outputs()
253 src.push_str("let mut result = Vec::new();"); in generate_test_outputs()
255 src.push_str("unsafe {"); in generate_test_outputs()
256 src.push_str("extern { fn "); in generate_test_outputs()
257 src.push_str(&function.name); in generate_test_outputs()
258 src.push_str("("); in generate_test_outputs()
265 src.push_str(&format!("arg{}: {},", i, arg.libc_ty())); in generate_test_outputs()
268 src.push_str(&format!("argret{}: {},", i, ret.libc_pty())); in generate_test_outputs()
270 src.push_str(")"); in generate_test_outputs()
[all …]
/external/rust/crates/clap/src/completions/
Dfish.rs49 basic_template.push_str("\"__fish_use_subcommand\"");
51 basic_template.push_str(format!("\"__fish_seen_subcommand_from {}\"", subcommand).as_str());
57 template.push_str(format!(" -s {}", data).as_str());
60 template.push_str(format!(" -l {}", data).as_str());
63 template.push_str(format!(" -d '{}'", escape_string(data)).as_str());
66 template.push_str(format!(" -r -f -a \"{}\"", data.join(" ")).as_str());
68 buffer.push_str(template.as_str());
69 buffer.push_str("\n");
75 template.push_str(format!(" -s {}", data).as_str());
78 template.push_str(format!(" -l {}", data).as_str());
[all …]
Delvish.rs85 completions.push_str(&preamble); in generate_inner()
86 completions.push_str(format!("-{} '{}'", data, tooltip).as_str()); in generate_inner()
90 completions.push_str(&preamble); in generate_inner()
91 completions.push_str(format!("--{} '{}'", data, tooltip).as_str()); in generate_inner()
98 completions.push_str(&preamble); in generate_inner()
99 completions.push_str(format!("-{} '{}'", data, tooltip).as_str()); in generate_inner()
103 completions.push_str(&preamble); in generate_inner()
104 completions.push_str(format!("--{} '{}'", data, tooltip).as_str()); in generate_inner()
111 completions.push_str(&preamble); in generate_inner()
112 completions.push_str(format!("{} '{}'", data, tooltip).as_str()); in generate_inner()
[all …]
Dpowershell.rs92 completions.push_str(&preamble); in generate_inner()
93 completions.push_str( in generate_inner()
103 completions.push_str(&preamble); in generate_inner()
104 completions.push_str( in generate_inner()
117 completions.push_str(&preamble); in generate_inner()
118 completions.push_str( in generate_inner()
128 completions.push_str(&preamble); in generate_inner()
129 completions.push_str( in generate_inner()
142 completions.push_str(&preamble); in generate_inner()
143 completions.push_str( in generate_inner()
[all …]
/external/rust/cxx/gen/src/
Dblock.rs15 out.push_str("inline "); in write_begin()
18 out.push_str(" {\n"); in write_begin()
22 out.push_str("} // "); in write_end()
29 Block::AnonymousNamespace => out.push_str("namespace"), in write_common()
31 out.push_str("namespace "); in write_common()
32 out.push_str(name); in write_common()
35 out.push_str("namespace "); in write_common()
36 out.push_str(&name.to_string()); in write_common()
39 out.push_str("namespace "); in write_common()
40 out.push_str(name); in write_common()
[all …]
Dout.rs75 out.push_str(include); in content()
79 out.push_str(builtin); in content()
83 out.push_str(content); in content()
85 out.push_str("// empty\n"); in content()
149 self.bytes.push_str(b); in write()
/external/rust/crates/clap/src/app/
Dusage.rs16 usage.push_str("USAGE:\n "); in create_usage_with_title()
17 usage.push_str(&*create_usage_no_title(p, used)); in create_usage_with_title()
67 usage.push_str(&*name); in create_help_usage()
81 usage.push_str(" [FLAGS]"); in create_help_usage()
83 usage.push_str(" [OPTIONS]"); in create_help_usage()
90 usage.push_str(" [OPTIONS]"); in create_help_usage()
93 usage.push_str(&req_string[..]); in create_help_usage()
105 usage.push_str(" [--]"); in create_help_usage()
113 usage.push_str(&*args_tag); in create_help_usage()
115 usage.push_str(" [ARGS]"); in create_help_usage()
[all …]
/external/rust/crates/protobuf/src/text_format/
Dmod.rs116 buf.push_str(" "); in do_indent()
129 buf.push_str(" "); in print_start_field()
133 buf.push_str(field_name); in print_start_field()
138 buf.push_str("\n"); in print_end_field()
154 buf.push_str(" {"); in print_field()
156 buf.push_str("\n"); in print_field()
160 buf.push_str("}"); in print_field()
163 buf.push_str(": "); in print_field()
164 buf.push_str(e.name()); in print_field()
167 buf.push_str(": "); in print_field()
[all …]
Dprint.rs5 b'\n' => buf.push_str(r"\n"), in quote_bytes_to()
6 b'\r' => buf.push_str(r"\r"), in quote_bytes_to()
7 b'\t' => buf.push_str(r"\t"), in quote_bytes_to()
8 b'\'' => buf.push_str("\\\'"), in quote_bytes_to()
9 b'"' => buf.push_str("\\\""), in quote_bytes_to()
10 b'\\' => buf.push_str(r"\\"), in quote_bytes_to()
/external/rust/crates/protobuf/src/
Drust.rs88 b'\n' => buf.push_str(r"\n"), in quote_escape_bytes()
89 b'\r' => buf.push_str(r"\r"), in quote_escape_bytes()
90 b'\t' => buf.push_str(r"\t"), in quote_escape_bytes()
91 b'"' => buf.push_str("\\\""), in quote_escape_bytes()
92 b'\\' => buf.push_str(r"\\"), in quote_escape_bytes()
95 buf.push_str(r"\x"); in quote_escape_bytes()
Ddescriptorx.rs283 r.push_str("."); in prefix()
308 r.push_str(self.get_name()); in name_to_package()
315 r.push_str("."); in name_absolute()
318 r.push_str(package); in name_absolute()
319 r.push_str("."); in name_absolute()
321 r.push_str(&self.name_to_package()); in name_absolute()
330 r.push_str(self.escape_prefix()); in rust_name()
332 r.push_str(self.get_name()); in rust_name()
454 r.push_str("value_"); in rust_name()
456 r.push_str(self.get_name()); in rust_name()
/external/rust/crates/criterion-plot/src/
Dfilledcurve.rs36 script.push_str("with filledcurves "); in script()
38 script.push_str("fillstyle "); in script()
41 script.push_str(&format!("solid {} ", opacity)) in script()
45 script.push_str("noborder "); in script()
48 script.push_str(&format!("lc rgb '{}' ", color.display())); in script()
52 script.push_str("title '"); in script()
53 script.push_str(label); in script()
56 script.push_str("notitle") in script()
Dcurve.rs48 script.push_str(&format!("with {} ", self.style.display())); in script()
49 script.push_str(&format!("lt {} ", self.line_type.display())); in script()
52 script.push_str(&format!("lw {} ", lw)) in script()
56 script.push_str(&format!("lc rgb '{}' ", color.display())) in script()
60 script.push_str(&format!("pt {} ", pt.display())) in script()
64 script.push_str(&format!("ps {} ", ps)) in script()
68 script.push_str("title '"); in script()
69 script.push_str(label); in script()
72 script.push_str("notitle") in script()
Dkey.rs61 script.push_str(&format!("inside {} {} ", v.display(), h.display())) in script()
64 script.push_str(&format!("outside {} {} ", v.display(), h.display())) in script()
69 script.push_str(stacked.display()); in script()
74 script.push_str(justification.display()); in script()
79 script.push_str(order.display()); in script()
84 script.push_str(&format!("title '{}' ", title)) in script()
88 script.push_str("box ") in script()
Dlib.rs444 s.push_str(&format!( in script()
450 s.push_str(&format!("set boxwidth {}\n", width)) in script()
454 s.push_str(&format!("set title '{}'\n", title)) in script()
458 s.push_str(&axis.script()); in script()
462 s.push_str(script); in script()
466 s.push_str(&key.script()) in script()
470 s.push_str(&format!("set style fill transparent solid {}\n", alpha)) in script()
473 s.push_str(&format!("set terminal {} dashed", self.terminal.display())); in script()
476 s.push_str(&format!(" size {}, {}", width, height)) in script()
481 s.push_str(&format!(" font '{},{}'", name, size)) in script()
[all …]
Derrorbar.rs42 script.push_str(&format!("lt {} ", self.line_type.display())); in script()
45 script.push_str(&format!("lw {} ", lw)) in script()
49 script.push_str(&format!("lc rgb '{}' ", color.display())) in script()
53 script.push_str(&format!("pt {} ", pt.display())) in script()
57 script.push_str(&format!("ps {} ", ps)) in script()
61 script.push_str("title '"); in script()
62 script.push_str(label); in script()
65 script.push_str("notitle") in script()
Dcandlestick.rs33 script.push_str(&format!("lt {} ", self.line_type.display())); in script()
36 script.push_str(&format!("lw {} ", lw)) in script()
40 script.push_str(&format!("lc rgb '{}' ", color.display())); in script()
44 script.push_str("title '"); in script()
45 script.push_str(label); in script()
48 script.push_str("notitle") in script()
Daxis.rs169 script.push_str(&format!("({})", tics)) in script()
175 script.push_str(&format!("set {}label '{}'\n", axis_, label)) in script()
179 script.push_str(&format!("set {}range [{}:{}]\n", axis_, low, high)) in script()
183 script.push_str(&format!("set logscale {}\n", axis_)); in script()
187 script.push_str(&(axis, grid, properties).script()); in script()
/external/rust/crates/plotters-svg/src/
Dsvg.rs85 '<' => buf.push_str("&lt;"), in escape_and_push()
86 '>' => buf.push_str("&gt;"), in escape_and_push()
87 '&' => buf.push_str("&amp;"), in escape_and_push()
88 '"' => buf.push_str("&quot;"), in escape_and_push()
89 '\'' => buf.push_str("&apos;"), in escape_and_push()
95 buf.push_str("<"); in open_tag()
96 buf.push_str(tag.to_tag_name()); in open_tag()
98 buf.push_str(" "); in open_tag()
99 buf.push_str(key); in open_tag()
100 buf.push_str("=\""); in open_tag()
[all …]
/external/rust/crates/bindgen/src/codegen/
Dimpl_debug.rs18 format_string.push_str("opaque"); in gen_debug_impl()
22 format_string.push_str("union"); in gen_debug_impl()
32 format_string.push_str(", "); in gen_debug_impl()
35 format_string.push_str(&fstring); in gen_debug_impl()
41 format_string.push_str(" }}"); in gen_debug_impl()
96 format_string.push_str(", "); in impl_debug()
100 format_string.push_str(&format!("{} : {{:?}}", bitfield_name)); in impl_debug()
/external/rust/crates/regex/src/
Dexpand.rs17 dst.push_str(&replacement[..i]); in expand_str()
22 dst.push_str("$"); in expand_str()
30 dst.push_str("$"); in expand_str()
38 dst.push_str(caps.get(i).map(|m| m.as_str()).unwrap_or("")); in expand_str()
41 dst.push_str( in expand_str()
47 dst.push_str(replacement); in expand_str()
/external/rust/crates/regex/examples/
Dshootout-regex-dna-single-cheat.rs71 new.push_str(&text[last_match..m.start()]); in replace_all()
72 new.push_str(replacements[text.as_bytes()[m.start()] as usize]); in replace_all()
75 new.push_str(&text[last_match..]); in replace_all()
Dshootout-regex-dna-cheat.rs86 new.push_str(&text[last_match..m.start()]); in replace_all()
87 new.push_str(replacements[text.as_bytes()[m.start()] as usize]); in replace_all()
90 new.push_str(&text[last_match..]); in replace_all()
/external/rust/crates/regex-syntax/src/
Derror.rs216 notated.push_str(&self.left_pad_line_number(i + 1)); in notate()
217 notated.push_str(": "); in notate()
219 notated.push_str(" "); in notate()
221 notated.push_str(line); in notate()
224 notated.push_str(&notes); in notate()
265 result.push_str(&n); in left_pad_line_number()

1234