VAPOR3 3.9.4
Namespaces | Functions
STLUtils.h File Reference
#include <vapor/MyBase.h>
#include <string>
#include <vector>
#include <algorithm>
#include <functional>
#include <iterator>

Go to the source code of this file.

Namespaces

namespace  STLUtils
 

Functions

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