VAPOR3 3.9.4
Functions
STLUtils Namespace Reference

Functions

template<typename T >
bool Contains (const std::vector< T > &toSearch, const T &object)
 
template<typename T >
void AppendTo (std::vector< T > &a, const std::vector< T > &b)
 
template<typename T >
std::vector< T > Slice (const std::vector< T > &a, int from, int to=-1)
 
template<typename T >
vector< T > Filter (const std::vector< T > &v, std::function< bool(const T &)> f)
 
template<typename T >
bool BeginsWith (const T &str, const T &match)
 
COMMON_API bool BeginsWith (const std::string &str, const std::string &match)
 
COMMON_API bool Contains (const std::string &toSearch, const std::string &query)
 
COMMON_API bool ContainsIgnoreCase (const std::string &toSearch, const std::string &query)
 
COMMON_API bool EndsWith (const std::string &str, const std::string &match)
 
COMMON_API std::string ToLower (std::string str)
 
COMMON_API std::vector< std::string > Split (std::string str, const std::string &delimeter)
 
COMMON_API std::string Join (const std::vector< std::string > &parts, const std::string &delimeter)
 
COMMON_API std::string ReplaceAll (std::string source, const std::string &oldSegment, const std::string &newSegment)
 

Function Documentation

◆ AppendTo()

template<typename T >
void STLUtils::AppendTo ( std::vector< T > &  a,
const std::vector< T > &  b 
)

Definition at line 14 of file STLUtils.h.

◆ BeginsWith() [1/2]

COMMON_API bool STLUtils::BeginsWith ( const std::string &  str,
const std::string &  match 
)

◆ BeginsWith() [2/2]

template<typename T >
bool STLUtils::BeginsWith ( const T &  str,
const T &  match 
)

Definition at line 24 of file STLUtils.h.

◆ Contains() [1/2]

COMMON_API bool STLUtils::Contains ( const std::string &  toSearch,
const std::string &  query 
)

◆ Contains() [2/2]

template<typename T >
bool STLUtils::Contains ( const std::vector< T > &  toSearch,
const T &  object 
)

Definition at line 12 of file STLUtils.h.

◆ ContainsIgnoreCase()

COMMON_API bool STLUtils::ContainsIgnoreCase ( const std::string &  toSearch,
const std::string &  query 
)

◆ EndsWith()

COMMON_API bool STLUtils::EndsWith ( const std::string &  str,
const std::string &  match 
)

◆ Filter()

template<typename T >
vector< T > STLUtils::Filter ( const std::vector< T > &  v,
std::function< bool(const T &)>  f 
)

Definition at line 18 of file STLUtils.h.

◆ Join()

COMMON_API std::string STLUtils::Join ( const std::vector< std::string > &  parts,
const std::string &  delimeter 
)

◆ ReplaceAll()

COMMON_API std::string STLUtils::ReplaceAll ( std::string  source,
const std::string &  oldSegment,
const std::string &  newSegment 
)

◆ Slice()

template<typename T >
std::vector< T > STLUtils::Slice ( const std::vector< T > &  a,
int  from,
int  to = -1 
)

Definition at line 16 of file STLUtils.h.

◆ Split()

COMMON_API std::vector< std::string > STLUtils::Split ( std::string  str,
const std::string &  delimeter 
)

◆ ToLower()

COMMON_API std::string STLUtils::ToLower ( std::string  str)