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"]);
75 * foreach (record; csvReader!(string[string])
79 * record["Name"], record["Occupation"],
80 * record["Salary"]);
84 * This module allows content to be iterated by record stored in a struct,
312 An optional `header` can be provided. The first record will be read in
315 not a type which can contain the entire record, the `header` must be
431 auto record = records.front;
433 assert(record.front == text);
548 foreach (record; records)
550 foreach (cell; record)
558 // Test newline on last record
589 foreach (record; records)
591 assert(ans[count].name == record.name);
592 assert(ans[count].value == record.value);
615 assertThrown!CSVException((){foreach (record; records) { }}());
644 foreach (record; records)
646 assert(ans[count].name == record.name);
647 assert(ans[count].value == record.value);
648 assert(abs(ans[count].other - record.other) < 0.00001);
662 foreach (record; records)
664 assert(equal(record, ans));
692 foreach (record; records)
694 assert(ans[count].name == record.name);
695 assert(ans[count].value == record.value);
696 assert(abs(ans[count].other - record.other) < 0.00001);
712 foreach (record; records)
714 assert(equal(record, ans.front));
731 foreach (record; records2)
733 assert(equal(record, ans2.front));
742 foreach (record; records2)
744 assert(equal(record, ans2.front));
762 foreach (record; csvReader!(string,Malformed.ignore)(str))
764 foreach (cell; record)
775 foreach (record; csvReader!(Ans,Malformed.ignore)(str))
777 assert(record.a == "one \"quoted\"");
778 assert(record.b == "two \"quoted\" end");
789 foreach (record; csvReader(str))
805 auto record = records.front;
806 assert(record.front == "one");
807 record.popFront();
808 assert(record.front == "two");
810 record = records.front;
811 assert(record.front == "three");
822 foreach (record; records)
825 assert(record["1"] == "34");
826 assert(record["3"] == "63");
862 foreach (record; csvReader(ir, cast(string[]) null))
863 foreach (cell; record) {}
864 foreach (record; csvReader!(Tuple!(string, string, int))
866 foreach (record; csvReader!(string[string])
946 * foreach (record; records)
948 * assert(equal(record, ans));
979 * foreach (record; records)
981 * assert(equal(record, ans));
1077 * If `Contents` is a struct, will be filled with record data.
1079 * If `Contents` is a class, will be filled with record data.
1082 * with record data.
1247 foreach (record; records)
1249 assert(equal(record, ans));
1345 * is empty or starts with record break
1373 // Skip last of record when header is depleted.
1420 // there may be an empty record after it.
1503 * start with either a delimiter or record break (\n, \r\n, \r) which
1735 // Test empty data is pulled at end of record.