Toast Engine
Loading...
Searching...
No Matches
csv.hpp
Go to the documentation of this file.
1
8
9#pragma once
10#include <string>
11#include <string_view>
12#include <toast/export.hpp>
13#include <vector>
14
15namespace ui {
16
17using CsvRow = std::vector<std::string>;
18using CsvTable = std::vector<CsvRow>;
19
20[[nodiscard]]
21TOAST_API auto parseCsv(std::string_view text) -> CsvTable;
22
23[[nodiscard]]
24TOAST_API auto writeCsv(const CsvTable& table) -> std::string;
25
26}