PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
Gedim::StringsUtilities Class Reference

#include <StringsUtilities.hpp>

Static Public Member Functions

static std::vector< std::string > Split (const std::string &stringToSplit, const char &character=' ')
 
static std::vector< std::string > Split (const std::string &stringToSplit, const std::vector< char > &characters=std::vector< char >(' '))
 
static char FindSeparator (const std::string &stringToSearch, const std::string &keyOne, const std::string &keyTwo)
 
static std::string ToLower (const std::string &input)
 Convert string to lower.
 
static std::string ToUpper (const std::string &input)
 Convert string to upper.
 
template<class T >
static T Parse (const std::string &objectString)
 Parse a string to object.
 
template<>
char Parse (const string &objectString)
 
template<>
int Parse (const string &objectString)
 
template<>
unsigned int Parse (const string &objectString)
 
template<>
float Parse (const string &objectString)
 
template<>
double Parse (const string &objectString)
 
template<>
string Parse (const string &objectString)
 
template<>
bool Parse (const string &objectString)
 
template<>
vector< intParse (const string &objectString)
 
template<>
vector< unsigned intParse (const string &objectString)
 
template<>
vector< doubleParse (const string &objectString)
 
template<>
set< unsigned intParse (const string &objectString)
 

Member Function Documentation

◆ FindSeparator()

char Gedim::StringsUtilities::FindSeparator ( const std::string &  stringToSearch,
const std::string &  keyOne,
const std::string &  keyTwo 
)
static

◆ Parse() [1/12]

template<class T >
static T Gedim::StringsUtilities::Parse ( const std::string &  objectString)
static

Parse a string to object.

◆ Parse() [2/12]

template<>
char Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [3/12]

template<>
int Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [4/12]

template<>
unsigned int Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [5/12]

template<>
float Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [6/12]

template<>
double Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [7/12]

template<>
string Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Parse() [8/12]

template<>
set< unsigned int > Gedim::StringsUtilities::Parse ( const string objectString)
static
Note
Supported vector separator are {',' ';' ' '}

◆ Parse() [9/12]

template<>
vector< double > Gedim::StringsUtilities::Parse ( const string objectString)
static
Note
Supported vector separator are {',' ';' ' '}

◆ Parse() [10/12]

template<>
vector< unsigned int > Gedim::StringsUtilities::Parse ( const string objectString)
static
Note
Supported vector separator are {',' ';' ' '}

◆ Parse() [11/12]

template<>
vector< int > Gedim::StringsUtilities::Parse ( const string objectString)
static
Note
Supported vector separator are {',' ';' ' '}

◆ Parse() [12/12]

template<>
bool Gedim::StringsUtilities::Parse ( const string objectString)
static

◆ Split() [1/2]

static std::vector< std::string > Gedim::StringsUtilities::Split ( const std::string &  stringToSplit,
const char character = ' ' 
)
static

◆ Split() [2/2]

static std::vector< std::string > Gedim::StringsUtilities::Split ( const std::string &  stringToSplit,
const std::vector< char > &  characters = std::vector< char >(' ') 
)
static

◆ ToLower()

string Gedim::StringsUtilities::ToLower ( const std::string &  input)
static

Convert string to lower.

◆ ToUpper()

string Gedim::StringsUtilities::ToUpper ( const std::string &  input)
static

Convert string to upper.


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