7#ifndef TWOBLUECUBES_CATCH_STRING_MANIP_H_INCLUDED
8#define TWOBLUECUBES_CATCH_STRING_MANIP_H_INCLUDED
18 bool startsWith( std::string
const&
s, std::string
const& prefix );
19 bool startsWith( std::string
const&
s,
char prefix );
20 bool endsWith( std::string
const&
s, std::string
const& suffix );
21 bool endsWith( std::string
const&
s,
char suffix );
22 bool contains( std::string
const&
s, std::string
const& infix );
24 std::string
toLower( std::string
const&
s );
25 std::string
trim( std::string
const& str );
29 bool replaceInPlace( std::string& str, std::string
const& replaceThis, std::string
const& withThis );
GenericStringRef< CharType > StringRef(const CharType *str)
Mark a character pointer as constant string.
void toLowerInPlace(std::string &s)
std::string trim(std::string const &str)
std::vector< StringRef > splitStringRef(StringRef str, char delimiter)
bool startsWith(std::string const &s, std::string const &prefix)
bool contains(std::string const &s, std::string const &infix)
std::string toLower(std::string const &s)
bool endsWith(std::string const &s, std::string const &suffix)
bool replaceInPlace(std::string &str, std::string const &replaceThis, std::string const &withThis)
pluralise(std::size_t count, std::string const &label)
friend std::ostream & operator<<(std::ostream &os, pluralise const &pluraliser)