ESyS-Particle  2.3.2
esys::lsm::StringUtil Namespace Reference

Classes

class  StdOStreamOp
class  StdIStreamOp

Typedefs

typedef esys::lsm::StringVector StringVector

Functions

template<class TmplIterator , class TmplStringOperator >
std::string join (TmplIterator begin, TmplIterator end, const std::string &delim, TmplStringOperator toStringOp=StdOStreamOp< TmplIterator >())
template<class TmplContainer , class TmplStringOperator >
std::string join (const TmplContainer &container, const std::string &delim, TmplStringOperator toStringOp=StdOStreamOp< typename TmplContainer::const_iterator >())
std::string joinStringVector (const StringVector &container, const std::string &delim)
template<typename TmplData >
TmplData to (const std::string &str)
template<typename TmplData >
std::string toString (const TmplData &data)
template<class TmplData , class TmplStdStreamOp >
std::vector< TmplData > split (const std::string &str, const std::string &delim, TmplStdStreamOp fromStringOp=StdIStreamOp< TmplData >())
StringVector splitStrings (const std::string &str, const std::string &delim)
std::string trim (const std::string &str)

Detailed Description

Convenience functions for string manipulation.

Typedef Documentation

Function Documentation

template<class TmplIterator , class TmplStringOperator >
std::string esys::lsm::StringUtil::join ( TmplIterator  begin,
TmplIterator  end,
const std::string &  delim,
TmplStringOperator  toStringOp = StdOStreamOp<TmplIterator>() 
)
inline

Referenced by esys::lsm::joinIntVector(), and esys::lsm::CheckPointInfo::Impl::write().

Here is the caller graph for this function:

template<class TmplContainer , class TmplStringOperator >
std::string esys::lsm::StringUtil::join ( const TmplContainer &  container,
const std::string &  delim,
TmplStringOperator  toStringOp = StdOStreamOp<typename TmplContainer::const_iterator>() 
)
inline
std::string esys::lsm::StringUtil::joinStringVector ( const StringVector &  container,
const std::string &  delim 
)
inline
template<class TmplData , class TmplStdStreamOp >
std::vector<TmplData> esys::lsm::StringUtil::split ( const std::string &  str,
const std::string &  delim,
TmplStdStreamOp  fromStringOp = StdIStreamOp<TmplData>() 
)
inline
StringVector esys::lsm::StringUtil::splitStrings ( const std::string &  str,
const std::string &  delim 
)
inline
template<typename TmplData >
TmplData esys::lsm::StringUtil::to ( const std::string &  str)
std::string esys::lsm::StringUtil::trim ( const std::string &  str)
inline

Referenced by esys::lsm::WallForcesRecord::parseLine(), and esys::lsm::CheckPointInfo::Impl::read().

Here is the caller graph for this function: