OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
CSV_Utils Class Reference

#include <CSV_Utils.h>

Collaboration diagram for CSV_Utils:
Collaboration graph

Static Public Member Functions

static void slim (string &str)
 Strips leading and trailing double quotes from string. More...
 
static void split (const string &str, char delimiter, vector< string > &tokens)
 Splits a string into separate strings based on the delimiter. More...
 

Detailed Description

Definition at line 46 of file CSV_Utils.h.

Member Function Documentation

void CSV_Utils::slim ( 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 87 of file CSV_Utils.cc.

Referenced by CSV_Obj::load(), and CSV_Header::populate().

void CSV_Utils::split ( const string &  str,
char  delimiter,
vector< 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 48 of file CSV_Utils.cc.

References BESUtil::explode().

Referenced by CSV_Reader::get().

Here is the call graph for this function:


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