Lines Matching refs:record

14  *     $(LI A record is separated by a new line (CRLF,LF,CR))
15 * $(LI A final record may end with a new line)
16 * $(LI A header may be provided as the first record in input)
17 * $(LI A record has fields separated by a comma (customizable))
21 * $(LI Each record should contain the same number of fields)
37 * foreach (record; csvReader!(Tuple!(string, string, int))(text))
40 * record[0], record[1], record[2]);
46 * foreach (record;
50 * record[0], record[1], record[2]);
63 * foreach (record; csvReader!(string[string])
67 * record["Name"], record["Occupation"],
68 * record["Salary"]);
72 * This module allows content to be iterated by record stored in a struct,
255 * foreach (record; records)
257 * assert(equal(record, ans));
274 * foreach (record; records)
276 * writeln(record.name);
277 * writeln(record.value);
278 * writeln(record.other);
289 * auto record = records.front;
291 * assert(record.front == str);
324 * An optional $(D header) can be provided. The first record will be read in
327 * not a type which can contain the entire record, the $(D header) must be
337 * foreach (record; records)
339 * assert(equal(record, ans.front));
434 foreach (record; records)
436 foreach (cell; record)
444 // Test newline on last record
475 foreach (record; records)
477 assert(ans[count].name == record.name);
478 assert(ans[count].value == record.value);
501 assertThrown!CSVException((){foreach (record; records) { }}());
530 foreach (record; records)
532 assert(ans[count].name == record.name);
533 assert(ans[count].value == record.value);
534 assert(abs(ans[count].other - record.other) < 0.00001);
548 foreach (record; records)
550 assert(equal(record, ans));
578 foreach (record; records)
580 assert(ans[count].name == record.name);
581 assert(ans[count].value == record.value);
582 assert(abs(ans[count].other - record.other) < 0.00001);
598 foreach (record; records)
600 assert(equal(record, ans.front));
617 foreach (record; records2)
619 assert(equal(record, ans2.front));
628 foreach (record; records2)
630 assert(equal(record, ans2.front));
648 foreach (record; csvReader!(string,Malformed.ignore)(str))
650 foreach (cell; record)
661 foreach (record; csvReader!(Ans,Malformed.ignore)(str))
663 assert(record.a == "one \"quoted\"");
664 assert(record.b == "two \"quoted\" end");
675 foreach (record; csvReader(str))
691 auto record = records.front;
692 assert(record.front == "one");
693 record.popFront();
694 assert(record.front == "two");
696 record = records.front;
697 assert(record.front == "three");
708 foreach (record; records)
711 assert(record["1"] == "34");
712 assert(record["3"] == "63");
748 foreach (record; csvReader(ir, cast(string[]) null))
749 foreach (cell; record) {}
750 foreach (record; csvReader!(Tuple!(string, string, int))
752 foreach (record; csvReader!(string[string])
831 * foreach (record; records)
833 * assert(equal(record, ans));
856 * foreach (record; records)
858 * assert(equal(record, ans));
943 * If $(D Contents) is a struct, will be filled with record data.
945 * If $(D Contents) is a class, will be filled with record data.
948 * with record data.
1111 foreach (record; records)
1113 assert(equal(record, ans));
1205 * is empty or starts with record break
1233 // Skip last of record when header is depleted.
1265 // there may be an empty record after it.
1348 * start with either a delimiter or record break (\n, \r\n, \r) which
1579 // Test empty data is pulled at end of record.