bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
CSV_Utils Class Reference
Collaboration diagram for CSV_Utils:
Collaboration graph

Static Public Member Functions

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.
 

Detailed Description

Definition at line 44 of file CSV_Utils.h.

Member Function Documentation

◆ 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
strstring 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
strThe string to break apart into different tokens
delimitersContains the delimiters to use to break apart the string
tokensThe resulting vector of tokens

Definition at line 52 of file CSV_Utils.cc.


The documentation for this class was generated from the following files: