Alamo
Functions
Util::String Namespace Reference

Functions

int ReplaceAll (std::string &str, const std::string before, const std::string after)
 
int ReplaceAll (std::string &str, const char before, const std::string after)
 
std::string Join (std::vector< std::string > &vec, char separator)
 
std::string Wrap (std::string text, unsigned per_line)
 
std::vector< std::string > Split (std::string &str, const char delim)
 
bool Contains (std::string &str, const std::string find)
 
template<>
std::complex< int > Parse (std::string input)
 

Function Documentation

◆ Contains()

bool Util::String::Contains ( std::string &  str,
const std::string  find 
)

Definition at line 301 of file Util.cpp.

◆ Join()

std::string Util::String::Join ( std::vector< std::string > &  vec,
char  separator 
)

Definition at line 243 of file Util.cpp.

◆ Parse()

template<>
std::complex< int > Util::String::Parse ( std::string  input)

Definition at line 308 of file Util.cpp.

Here is the call graph for this function:

◆ ReplaceAll() [1/2]

int Util::String::ReplaceAll ( std::string &  str,
const char  before,
const std::string  after 
)

Definition at line 233 of file Util.cpp.

◆ ReplaceAll() [2/2]

int Util::String::ReplaceAll ( std::string &  str,
const std::string  before,
const std::string  after 
)

Definition at line 224 of file Util.cpp.

◆ Split()

std::vector< std::string > Util::String::Split ( std::string &  str,
const char  delim 
)

Definition at line 291 of file Util.cpp.

◆ Wrap()

std::string Util::String::Wrap ( std::string  text,
unsigned  per_line 
)

Definition at line 255 of file Util.cpp.