/external/rust/crates/csv/src/ |
D | reader.rs | 133 pub fn from_reader<R: io::Read>(&self, rdr: R) -> Reader<R> { in from_reader() 134 Reader::new(self, rdr) in from_reader() 715 rdr: io::BufReader<R>, field 819 fn new(builder: &ReaderBuilder, rdr: R) -> Reader<R> { in new() 822 rdr: io::BufReader::with_capacity(builder.capacity, rdr), in new() 863 pub fn from_reader(rdr: R) -> Reader<R> { in from_reader() 864 ReaderBuilder::new().from_reader(rdr) in from_reader() 1638 let input_res = self.rdr.fill_buf(); in read_byte_record_impl() 1650 self.rdr.consume(nin); in read_byte_record_impl() 1765 self.rdr.get_ref() in get_ref() [all …]
|
/external/rust/crates/csv-core/src/ |
D | reader.rs | 159 rdr: Reader, field 170 let mut rdr = self.rdr.clone(); in build() localVariable 171 rdr.build_dfa(); in build() 172 rdr in build() 179 self.rdr.delimiter = delimiter; in delimiter() 189 self.rdr.term = term; in terminator() 197 self.rdr.quote = quote; in quote() 208 self.rdr.escape = escape; in escape() 217 self.rdr.double_quote = yes; in double_quote() 226 self.rdr.quoting = yes; in quoting() [all …]
|
/external/rust/crates/csv/benches/ |
D | bench.rs | 133 let mut rdr = localVariable 135 assert_eq!($counter(&mut rdr), $result); 148 let mut rdr = ReaderBuilder::new() localVariable 152 assert_eq!($counter(&mut rdr), $result); 166 let mut rdr = localVariable 168 assert_eq!($counter::<_, $type>(&mut rdr), $result); 203 let mut rdr = localVariable 205 assert_eq!($counter::<_, $type>(&mut rdr), $result); 243 let mut rdr = ReaderBuilder::new() localVariable 248 while rdr.read_byte_record(&mut rec).unwrap() { [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | HolidayTest.java | 238 RangeDateRule rdr = new RangeDateRule(); in TestCoverage() local 239 rdr.add(new SimpleDateRule(7, 10)); in TestCoverage() 246 rdr.add(new SimpleDateRule(Calendar.JULY, 10, Calendar.MONDAY, false)); in TestCoverage() 247 rdr.add(dbd, new SimpleDateRule(Calendar.AUGUST, 15, Calendar.WEDNESDAY, true)); in TestCoverage() 248 rdr.add(xbd, null); in TestCoverage() 249 rdr.add(nbd, new SimpleDateRule(Calendar.DECEMBER, 17, Calendar.MONDAY, false)); in TestCoverage() 250 rdr.add(ybd, null); in TestCoverage() 252 logln("first after " + mbd + " is " + rdr.firstAfter(mbd)); in TestCoverage() 253 logln("first between " + mbd + " and " + dbd + " is " + rdr.firstBetween(mbd, dbd)); in TestCoverage() 254 logln("first between " + dbd + " and " + nbd + " is " + rdr.firstBetween(dbd, nbd)); in TestCoverage() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/ |
D | HolidayTest.java | 241 RangeDateRule rdr = new RangeDateRule(); in TestCoverage() local 242 rdr.add(new SimpleDateRule(7, 10)); in TestCoverage() 249 rdr.add(new SimpleDateRule(Calendar.JULY, 10, Calendar.MONDAY, false)); in TestCoverage() 250 rdr.add(dbd, new SimpleDateRule(Calendar.AUGUST, 15, Calendar.WEDNESDAY, true)); in TestCoverage() 251 rdr.add(xbd, null); in TestCoverage() 252 rdr.add(nbd, new SimpleDateRule(Calendar.DECEMBER, 17, Calendar.MONDAY, false)); in TestCoverage() 253 rdr.add(ybd, null); in TestCoverage() 255 logln("first after " + mbd + " is " + rdr.firstAfter(mbd)); in TestCoverage() 256 logln("first between " + mbd + " and " + dbd + " is " + rdr.firstBetween(mbd, dbd)); in TestCoverage() 257 logln("first between " + dbd + " and " + nbd + " is " + rdr.firstBetween(dbd, nbd)); in TestCoverage() [all …]
|
/external/rust/crates/csv-core/benches/ |
D | bench.rs | 28 let mut rdr = ReaderBuilder::new().nfa($nfa).build(); localVariable 30 rdr.reset(); 31 assert_eq!($counter(&mut rdr, data), $result); 57 fn count_fields(rdr: &mut Reader, mut data: &[u8]) -> u64 { in count_fields() 63 let (res, nin, _) = rdr.read_field(data, &mut field); in count_fields() 77 fn count_records(rdr: &mut Reader, mut data: &[u8]) -> u64 { in count_records() 84 let (res, nin, _, _) = rdr.read_record(data, &mut record, &mut ends); in count_records()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | FileCopier.java | 26 …public static void copyAndReplace(Reader rdr, Map<String, String> replacements, Writer out) throws… in copyAndReplace() argument 28 copy(rdr, out); in copyAndReplace() 32 try (BufferedReader br = new BufferedReader(rdr);) { in copyAndReplace() 69 public static void copy(Reader rdr, Writer wr) throws IOException { in copy() argument 71 try (BufferedReader br = new BufferedReader(rdr)) { in copy() 89 …public static void copyAndReplace(Reader rdr, Writer wr, Map<String, String> replacements) throws … in copyAndReplace() argument 91 copy(rdr, wr); in copyAndReplace() 95 try (BufferedReader br = new BufferedReader(rdr);) { in copyAndReplace()
|
/external/rust/crates/csv/examples/ |
D | tutorial-read-headers-02.rs | 6 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 9 let headers = rdr.headers()?; in run() 12 for result in rdr.records() { in run() 18 let headers = rdr.headers()?; in run()
|
D | tutorial-pipeline-search-01.rs | 15 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 19 wtr.write_record(rdr.headers()?)?; in run() 23 for result in rdr.records() { in run()
|
D | tutorial-pipeline-search-02.rs | 12 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 15 wtr.write_record(rdr.byte_headers()?)?; in run() 17 for result in rdr.byte_records() { in run()
|
D | tutorial-perf-serde-03.rs | 20 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 22 let headers = rdr.byte_headers()?.clone(); in run() 25 while rdr.read_byte_record(&mut raw_record)? { in run()
|
D | tutorial-perf-serde-02.rs | 20 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 22 let headers = rdr.headers()?.clone(); in run() 25 while rdr.read_record(&mut raw_record)? { in run()
|
D | tutorial-setup-01.rs | 7 let mut rdr = csv::Reader::from_reader(io::stdin()); in main() localVariable 9 for result in rdr.records() { in main()
|
D | tutorial-error-01.rs | 4 let mut rdr = csv::Reader::from_reader(io::stdin()); in main() localVariable 5 for result in rdr.records() { in main()
|
D | tutorial-error-02.rs | 5 let mut rdr = csv::Reader::from_reader(io::stdin()); in main() localVariable 6 for result in rdr.records() { in main()
|
D | tutorial-error-04.rs | 13 let mut rdr = csv::Reader::from_reader(io::stdin()); in run() localVariable 14 for result in rdr.records() { in run()
|
D | cookbook-read-basic.rs | 7 let mut rdr = csv::Reader::from_reader(io::stdin()); in example() localVariable 8 for result in rdr.records() { in example()
|
D | cookbook-read-no-headers.rs | 6 let mut rdr = in example() localVariable 8 for result in rdr.records() { in example()
|
D | tutorial-read-headers-01.rs | 6 let mut rdr = in run() localVariable 8 for result in rdr.records() { in run()
|
D | cookbook-read-colon.rs | 6 let mut rdr = in example() localVariable 8 for result in rdr.records() { in example()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TextFileReader.java | 73 public TextFileReader(Reader rdr) throws IOException { in TextFileReader() argument 74 try (BufferedReader br = new BufferedReader(rdr)) { in TextFileReader() 105 try (BufferedReader rdr = bufferedReader()) { in getLines() argument 108 while ((line = rdr.readLine()) != null) { in getLines()
|
/external/python/cpython2/Mac/Demo/imgbrowse/ |
D | imgbrowse.py | 52 rdr = img.reader(imgformat.macrgb16, pathname) 56 w, h = rdr.width, rdr.height 58 data = rdr.read()
|
/external/python/cpython2/Lib/plat-mac/ |
D | videoreader.py | 250 rdr = _Reader(url) 253 return rdr 265 rdr = reader(path) 266 if not rdr: 272 videofmt = rdr.GetVideoFormat() 275 timestamp, data = rdr.ReadVideo() 285 timestamp, data = rdr.ReadVideo()
|
/external/rust/crates/aho-corasick/src/ |
D | ahocorasick.rs | 687 rdr: R, in stream_find_iter() 689 StreamFindIter::new(self, rdr) in stream_find_iter() 752 rdr: R, in stream_replace_all() 767 self.stream_replace_all_with(rdr, wtr, |mat, _, wtr| { in stream_replace_all() 837 rdr: R, in stream_replace_all_with() 846 let mut it = StreamChunkIter::new(self, rdr); in stream_replace_all_with() 1305 fn new(ac: &'a AhoCorasick<S>, rdr: R) -> StreamFindIter<'a, R, S> { in new() 1306 StreamFindIter { it: StreamChunkIter::new(ac, rdr) } in new() 1342 rdr: R, field 1378 fn new(ac: &'a AhoCorasick<S>, rdr: R) -> StreamChunkIter<'a, R, S> { in new() [all …]
|
/external/oss-fuzz/projects/rustls/ |
D | persist.rs | 24 let mut rdr = Reader::init(data); in try_type() localVariable 25 T::read(&mut rdr); in try_type()
|