|
Blender V5.0
|
#include <BLI_csv_parse.hh>
Public Member Functions | |
#CsvRecord inline functions. | |
| CsvRecord (Span< Span< char > > fields) | |
| int64_t | size () const |
| IndexRange | index_range () const |
| Span< char > | field (const int64_t index) const |
| StringRef | field_str (const int64_t index) const |
Contains the fields of a single record of a .csv file. Usually that corresponds to a single line.
Definition at line 22 of file BLI_csv_parse.hh.
Definition at line 141 of file BLI_csv_parse.hh.
Get the field at the given index. Empty data is returned if the index is too large.
Definition at line 153 of file BLI_csv_parse.hh.
References BLI_assert.
Referenced by field_str(), blender::io::csv::parse_column_as_floats(), and blender::io::csv::parse_column_as_ints().
Definition at line 162 of file BLI_csv_parse.hh.
References blender::Span< T >::data(), field(), and blender::Span< T >::size().
Referenced by blender::csv_parse::tests::parse_csv_fields().
|
inline |
Definition at line 148 of file BLI_csv_parse.hh.
References blender::IndexRange::index_range().
Referenced by blender::csv_parse::tests::parse_csv_fields().
|
inline |
Number of fields in the record.
Definition at line 143 of file BLI_csv_parse.hh.