|
static void | slim (std::string &str) |
| Strips leading and trailing double quotes from string.
|
|
static void | split (const std::string &str, char delimiter, std::vector< std::string > &tokens) |
| Splits a string into separate strings based on the delimiter.
|
|
Definition at line 44 of file CSV_Utils.h.
◆ slim()
void CSV_Utils::slim |
( |
std::string & |
str | ) |
|
|
static |
Strips leading and trailing double quotes from string.
There must be a leading and trailing quote for them to be removed. If there is just one or the other, then the double quote is left.
- Parameters
-
str | string to remove leading and trailing double quotes from |
Definition at line 72 of file CSV_Utils.cc.
◆ split()
void CSV_Utils::split |
( |
const std::string & |
str, |
|
|
char |
delimiter, |
|
|
std::vector< std::string > & |
tokens |
|
) |
| |
|
static |
Splits a string into separate strings based on the delimiter.
- Parameters
-
str | The string to break apart into different tokens |
delimiters | Contains the delimiters to use to break apart the string |
tokens | The resulting vector of tokens |
Definition at line 52 of file CSV_Utils.cc.
The documentation for this class was generated from the following files: