Blender V4.5
BLI_csv_parse.hh File Reference
#include "BLI_any.hh"
#include "BLI_function_ref.hh"
#include "BLI_linear_allocator.hh"
#include "BLI_offset_indices.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"

Go to the source code of this file.

Classes

class  blender::csv_parse::CsvRecord
 
class  blender::csv_parse::CsvRecords
 
struct  blender::csv_parse::CsvParseOptions
 

Namespaces

namespace  blender
 
namespace  blender::csv_parse
 
namespace  blender::csv_parse::detail
 

Functions

std::optional< Vector< Any<> > > blender::csv_parse::parse_csv_in_chunks (const Span< char > buffer, const CsvParseOptions &options, FunctionRef< void(const CsvRecord &record)> process_header, FunctionRef< Any<>(const CsvRecords &records)> process_records)
 
template<typename ChunkT >
std::optional< Vector< ChunkT > > blender::csv_parse::parse_csv_in_chunks (const Span< char > buffer, const CsvParseOptions &options, FunctionRef< void(const CsvRecord &record)> process_header, FunctionRef< ChunkT(const CsvRecords &records)> process_records)
 
StringRef blender::csv_parse::unescape_field (const StringRef str, const CsvParseOptions &options, LinearAllocator<> &allocator)
 
int64_t blender::csv_parse::detail::find_end_of_simple_field (Span< char > buffer, int64_t start, char delimiter)
 
std::optional< int64_tblender::csv_parse::detail::find_end_of_quoted_field (Span< char > buffer, int64_t start, char quote, Span< char > escape_chars)
 
std::optional< int64_tblender::csv_parse::detail::parse_record_fields (const Span< char > buffer, const int64_t start, const char delimiter, const char quote, const Span< char > quote_escape_chars, Vector< Span< char > > &r_fields)