MVault 1.0.0
Simple c++ database
|
All functions for working with MVault and csv. More...
Classes | |
class | mvlt::CsvParser |
A class for parsing csv files that provides data in a form similar to generators. More... | |
class | mvlt::StreamFileReader |
A class for reading files as a stream. More... | |
Functions | |
std::string | mvlt::FormatStringToCsv (const std::string &str) noexcept |
A function for converting a string to a csv field format. | |
All functions for working with MVault and csv.
|
noexcept |
A function for converting a string to a csv field format.
In csv files, the fields of one record are separated by commas. To store commas inside a field, the field is placed in double quotes. To store quotes inside a field, the fields are placed in quotation marks, and all quotes inside the field are duplicated.
For example: string ",,"", will be turned into """,,""""". Detailed description of each symbol: - " - a quotation mark to start escaping
[in] | str | the string to be converted |