Alamo
Functions
Util::String Namespace Reference

Functions

AMREX_FORCE_INLINE int ReplaceAll (std::string &str, const std::string before, const std::string after)
 
AMREX_FORCE_INLINE int ReplaceAll (std::string &str, const char before, const std::string after)
 
AMREX_FORCE_INLINE std::string Wrap (std::string text, unsigned per_line)
 
AMREX_FORCE_INLINE std::string Join (const std::vector< std::string > &vec, std::string separator="_")
 
AMREX_FORCE_INLINE std::string Join (const std::vector< std::string > &vec, char separator)
 
AMREX_FORCE_INLINE std::string Join (const std::vector< double > &vec, std::string separator=" ")
 
AMREX_FORCE_INLINE std::string Join (const Set::Vector &vec, char separator=' ')
 
AMREX_FORCE_INLINE std::string Join (const Set::Matrix &vec, char separator=' ')
 
AMREX_FORCE_INLINE std::vector< std::string > Split (std::string &str, const char delim=' ')
 
AMREX_FORCE_INLINE bool Contains (std::string &str, const std::string find)
 
template<class T >
AMREX_FORCE_INLINE T Parse (std::string)
 
template<>
AMREX_FORCE_INLINE std::complex< int > Parse (std::string input)
 

Function Documentation

◆ Contains()

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

Definition at line 150 of file String.H.

◆ Join() [1/5]

AMREX_FORCE_INLINE std::string Util::String::Join ( const Set::Matrix vec,
char  separator = ' ' 
)

Definition at line 123 of file String.H.

◆ Join() [2/5]

AMREX_FORCE_INLINE std::string Util::String::Join ( const Set::Vector vec,
char  separator = ' ' 
)

Definition at line 110 of file String.H.

◆ Join() [3/5]

AMREX_FORCE_INLINE std::string Util::String::Join ( const std::vector< double > &  vec,
std::string  separator = " " 
)

Definition at line 102 of file String.H.

◆ Join() [4/5]

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

Definition at line 96 of file String.H.

◆ Join() [5/5]

AMREX_FORCE_INLINE std::string Util::String::Join ( const std::vector< std::string > &  vec,
std::string  separator = "_" 
)

Definition at line 83 of file String.H.

◆ Parse() [1/2]

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

Definition at line 162 of file String.H.

◆ Parse() [2/2]

template<class T >
AMREX_FORCE_INLINE T Util::String::Parse ( std::string  )

◆ ReplaceAll() [1/2]

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

Definition at line 34 of file String.H.

◆ ReplaceAll() [2/2]

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

Definition at line 23 of file String.H.

◆ Split()

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

Definition at line 138 of file String.H.

◆ Wrap()

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

Definition at line 45 of file String.H.