Classes | Namespaces | Functions
StringCompare.h File Reference
#include <string>
#include <algorithm>
#include <cctype>

Go to the source code of this file.

Classes

class  utl::CharEqualNoCase
 Utility class to compare characters in a case-independent way. More...
 

Namespaces

 utl
 

Functions

template<class Predicate >
bool utl::ContainsSubstring (const std::string &a, const std::string &b, Predicate p)
 Utility to search for a substring within a string according to a given search predicate. More...
 
bool utl::ContainsSubstring (const std::string &a, const std::string &b)
 Syntactic sugar for searching within a string for a substring. Search is case-sensitive. More...
 
bool utl::ContainsSubstringEquivalent (const std::string &a, const std::string &b)
 Syntactic sugar for searching within a string for a substring. Search is case-insensitive. More...
 
template<class Predicate >
bool utl::StringEquivalent (const std::string &a, const std::string &b, Predicate p)
 Utility to compare strings for equivalence. It takes a predicate to determine the equivalence of individual characters. More...
 
bool utl::StringEquivalent (const std::string &a, const std::string &b)
 Utility to compare strings for equivalence. The two-argument variant internally uses the predicate CharEqualNoCase, which implements case-insensitive equivalence. More...
 

, generated on Tue Sep 26 2023.