Home
last modified time | relevance | path

Searched refs:wtr (Results 1 – 23 of 23) sorted by relevance

/external/rust/crates/regex-syntax/src/ast/
Dprint.rs59 pub fn print<W: fmt::Write>(&mut self, ast: &Ast, wtr: W) -> fmt::Result { in print()
60 visitor::visit(ast, Writer { printer: self, wtr: wtr }) in print()
67 wtr: W, field
95 Ast::Dot(_) => self.wtr.write_str("."), in visit_post()
110 self.wtr.write_str("|") in visit_alternation_in()
136 self.wtr.write_str("-")?; in visit_class_set_item_post()
160 CaptureIndex(_) => self.wtr.write_str("("), in fmt_group_pre()
162 self.wtr.write_str("(?P<")?; in fmt_group_pre()
163 self.wtr.write_str(&x.name)?; in fmt_group_pre()
164 self.wtr.write_str(">")?; in fmt_group_pre()
[all …]
/external/rust/crates/csv-core/src/
Dwriter.rs14 wtr: Writer, field
20 let wtr = Writer { in new() localVariable
30 WriterBuilder { wtr: wtr } in new()
37 let mut wtr = self.wtr.clone(); in build() localVariable
38 wtr.requires_quotes[self.wtr.delimiter as usize] = true; in build()
39 wtr.requires_quotes[self.wtr.quote as usize] = true; in build()
40 if !self.wtr.double_quote { in build()
43 wtr.requires_quotes[self.wtr.escape as usize] = true; in build()
45 match self.wtr.term { in build()
51 wtr.requires_quotes[b'\r' as usize] = true; in build()
[all …]
/external/rust/crates/csv/src/
Dwriter.rs115 pub fn from_writer<W: io::Write>(&self, wtr: W) -> Writer<W> { in from_writer()
116 Writer::new(self, wtr) in from_writer()
510 wtr: Option<W>, field
563 if self.wtr.is_some() && !self.state.panicked { in drop()
597 fn new(builder: &WriterBuilder, wtr: W) -> Writer<W> { in new()
605 wtr: Some(wtr), in new()
640 pub fn from_writer(wtr: W) -> Writer<W> { in from_writer()
641 WriterBuilder::new().from_writer(wtr) in from_writer()
1059 self.wtr.as_mut().unwrap().flush()?; in flush()
1067 let result = self.wtr.as_mut().unwrap().write_all(self.buf.readable()); in flush_buf()
[all …]
Dserializer.rs20 wtr: &mut Writer<W>, in serialize()
23 value.serialize(&mut SeRecord { wtr: wtr }) in serialize()
27 wtr: &'w mut Writer<W>, field
43 self.wtr.write_field("true") in serialize_bool()
45 self.wtr.write_field("false") in serialize_bool()
51 self.wtr.write_field(buffer.format(v)) in serialize_i8()
56 self.wtr.write_field(buffer.format(v)) in serialize_i16()
61 self.wtr.write_field(buffer.format(v)) in serialize_i32()
66 self.wtr.write_field(buffer.format(v)) in serialize_i64()
77 self.wtr.write_field(buffer.format(v)) in serialize_u8()
[all …]
Derror.rs308 wtr: W, field
317 pub(crate) fn new(wtr: W, err: io::Error) -> IntoInnerError<W> { in new()
318 IntoInnerError { wtr: wtr, err: err } in new()
333 self.wtr in into_inner()
/external/rust/crates/regex-syntax/src/hir/
Dprint.rs67 pub fn print<W: fmt::Write>(&mut self, hir: &Hir, wtr: W) -> fmt::Result { in print()
68 visitor::visit(hir, Writer { printer: self, wtr: wtr }) in print()
75 wtr: W, field
99 self.wtr.write_str("[")?; in visit_pre()
105 self.wtr.write_str("-")?; in visit_pre()
109 self.wtr.write_str("]")?; in visit_pre()
112 self.wtr.write_str("(?-u:[")?; in visit_pre()
118 self.wtr.write_str("-")?; in visit_pre()
122 self.wtr.write_str("])")?; in visit_pre()
125 self.wtr.write_str("(?m:^)")?; in visit_pre()
[all …]
/external/rust/crates/termcolor/src/
Dlib.rs322 let wtr = io::BufWriter::new(io::stdout()); in new() localVariable
323 IoStandardStream::StdoutBuffered(wtr) in new()
326 let wtr = io::BufWriter::new(io::stderr()); in new() localVariable
327 IoStandardStream::StderrBuffered(wtr) in new()
400 wtr: LossyStandardStream<WriterInner<IoStandardStream>>, field
411 wtr: LossyStandardStream<WriterInnerLock<'a, IoStandardStreamLock<'a>>>, field
416 wtr: LossyStandardStream<WriterInner<IoStandardStream>>, field
426 wtr: W,
444 wtr: W,
459 let wtr = WriterInner::create(StandardStreamType::Stdout, choice); in stdout() localVariable
[all …]
/external/rust/crates/csv/examples/
Dtutorial-write-01.rs6 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
10 wtr.write_record(&[ in run()
17 wtr.write_record(&[ in run()
24 wtr.write_record(&["Kenai", "AK", "7610", "60.5544444", "-151.2583333"])?; in run()
25 wtr.write_record(&["Oakman", "AL", "", "33.7133333", "-87.3886111"])?; in run()
29 wtr.flush()?; in run()
Dtutorial-write-serde-01.rs6 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
9 wtr.write_record(&[ in run()
23 wtr.serialize(( in run()
30 wtr.serialize(("Kenai", "AK", Some(7610), 60.5544444, -151.2583333))?; in run()
31 wtr.serialize(("Oakman", "AL", None::<u64>, 33.7133333, -87.3886111))?; in run()
33 wtr.flush()?; in run()
Dtutorial-write-delimiter-01.rs6 let mut wtr = csv::WriterBuilder::new() in run() localVariable
11 wtr.write_record(&[ in run()
18 wtr.write_record(&[ in run()
25 wtr.write_record(&["Kenai", "AK", "7610", "60.5544444", "-151.2583333"])?; in run()
26 wtr.write_record(&["Oakman", "AL", "", "33.7133333", "-87.3886111"])?; in run()
28 wtr.flush()?; in run()
Dtutorial-write-02.rs8 let mut wtr = csv::Writer::from_path(file_path)?; in run() localVariable
10 wtr.write_record(&[ in run()
17 wtr.write_record(&[ in run()
24 wtr.write_record(&["Kenai", "AK", "7610", "60.5544444", "-151.2583333"])?; in run()
25 wtr.write_record(&["Oakman", "AL", "", "33.7133333", "-87.3886111"])?; in run()
27 wtr.flush()?; in run()
Dcookbook-write-basic.rs6 let mut wtr = csv::Writer::from_writer(io::stdout()); in example() localVariable
10 wtr.write_record(&["city", "region", "country", "population"])?; in example()
11 wtr.write_record(&["Southborough", "MA", "United States", "9686"])?; in example()
12 wtr.write_record(&["Northbridge", "MA", "United States", "14061"])?; in example()
13 wtr.flush()?; in example()
Dtutorial-write-serde-02.rs19 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
21 wtr.serialize(Record { in run()
28 wtr.serialize(Record { in run()
35 wtr.serialize(Record { in run()
43 wtr.flush()?; in run()
Dtutorial-pipeline-search-01.rs16 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
19 wtr.write_record(rdr.headers()?)?; in run()
26 wtr.write_record(&record)?; in run()
31 wtr.flush()?; in run()
Dtutorial-pipeline-search-02.rs13 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
15 wtr.write_record(rdr.byte_headers()?)?; in run()
22 wtr.write_record(&record)?; in run()
26 wtr.flush()?; in run()
Dcookbook-write-serde.rs16 let mut wtr = csv::Writer::from_writer(io::stdout()); in example() localVariable
20 wtr.serialize(Record { in example()
26 wtr.serialize(Record { in example()
32 wtr.flush()?; in example()
Dtutorial-pipeline-pop-01.rs32 let mut wtr = csv::Writer::from_writer(io::stdout()); in run() localVariable
48 wtr.serialize(record)?; in run()
53 wtr.flush()?; in run()
/external/rust/crates/csv-core/
DREADME.md82 let mut wtr = Writer::new();
86 let (_, _, n) = wtr.field(&b"foo"[..], &mut out[nout..]);
90 let (_, n) = wtr.delimiter(&mut out[nout..]);
92 let (_, _, n) = wtr.field(&b"bar,baz"[..], &mut out[nout..]);
94 let (_, n) = wtr.terminator(&mut out[nout..]);
98 let (_, _, n) = wtr.field(&b"a \"b\" c"[..], &mut out[nout..]);
100 let (_, n) = wtr.delimiter(&mut out[nout..]);
102 let (_, _, n) = wtr.field(&b"quux"[..], &mut out[nout..]);
107 let (_, n) = wtr.finish(&mut out[nout..]);
/external/rust/crates/csv/benches/
Dbench.rs184 let mut wtr = WriterBuilder::new() localVariable
188 wtr.serialize(val).unwrap();
221 let mut wtr = WriterBuilder::new() localVariable
225 wtr.serialize(val).unwrap();
430 let mut wtr = Writer::from_writer(vec![]); localVariable
432 wtr.write_record(r).unwrap();
434 assert!(wtr.flush().is_ok());
449 let mut wtr = Writer::from_writer(vec![]); localVariable
451 wtr.write_byte_record(r).unwrap();
453 assert!(wtr.flush().is_ok());
/external/rust/crates/tokio/src/loom/std/
Dparking_lot.rs100 let wtr = self.0.wait_for(&mut guard, timeout); in wait_timeout() localVariable
101 Ok((guard, wtr)) in wait_timeout()
/external/rust/crates/byteorder/src/
Dlib.rs3420 let mut wtr = vec![]; localVariable
3421 wtr.$write::<BigEndian>(n.clone()).unwrap();
3422 let offset = wtr.len() - $bytes;
3423 let mut rdr = Cursor::new(&mut wtr[offset..]);
3432 let mut wtr = vec![]; localVariable
3433 wtr.$write::<LittleEndian>(n.clone()).unwrap();
3434 let mut rdr = Cursor::new(wtr);
3443 let mut wtr = vec![]; localVariable
3444 wtr.$write::<NativeEndian>(n.clone()).unwrap();
3446 wtr.len() - $bytes
[all …]
/external/rust/crates/aho-corasick/src/
Dahocorasick.rs753 wtr: W, in stream_replace_all()
767 self.stream_replace_all_with(rdr, wtr, |mat, _, wtr| { in stream_replace_all()
768 wtr.write_all(replace_with[mat.pattern()].as_ref()) in stream_replace_all()
838 mut wtr: W, in stream_replace_all_with()
851 wtr.write_all(bytes)?; in stream_replace_all_with()
854 replace_with(&mat, bytes, &mut wtr)?; in stream_replace_all_with()
/external/rust/crates/aho-corasick/
DREADME.md103 let mut wtr = vec![];
106 ac.stream_replace_all(rdr.as_bytes(), &mut wtr, replace_with)
108 assert_eq!(b"The slow grey sloth.".to_vec(), wtr);