![]() |
cppassist
1.0.0.f4fab4f962ff
C++ sanctuary for small but powerful and frequently required, stand alone features.
|
#include <string>
#include <vector>
#include <set>
#include <cppassist/cppassist_api.h>
#include <cppassist/string/manipulation.inl>
Go to the source code of this file.
Namespaces | |
cppassist | |
cppassist::string | |
Functions | |
template<class Iterable > | |
std::string | cppassist::string::join (const Iterable &iterable, const std::string &separator) |
Join all values of a container in a single string. More... | |
CPPASSIST_API std::string | cppassist::string::trim (const std::string &string, bool removeAllWhitespace=false) |
Trim string by removing whitespace. More... | |
CPPASSIST_API std::string | cppassist::string::padLeft (const std::string &string, size_t length, char c=' ') |
Pad string with character (add to the left until the given size is reached) More... | |
CPPASSIST_API std::string | cppassist::string::padRight (const std::string &string, size_t length, char c=' ') |
Pad string with character (add to the right until the given size is reached) More... | |
CPPASSIST_API std::string | cppassist::string::stripped (const std::string &string, const std::set< char > &blacklist) |
Remove all occurences of provided characters from the string. More... | |
CPPASSIST_API std::vector< std::string > | cppassist::string::parseArray (const std::string &string, size_t size) |
Split string into substrings. More... | |
CPPASSIST_API std::vector< std::string > | cppassist::string::split (const std::string &string, char delimiter, bool keepEmptyParts=true) |
Split string into substrings. More... | |
CPPASSIST_API bool | cppassist::string::contains (const std::string &string, const std::string &containsstring) |
Check if a string contains a substring. More... | |
CPPASSIST_API bool | cppassist::string::hasPrefix (const std::string &string, const std::string &prefix) |
Check if a string starts with a given prefix. More... | |
CPPASSIST_API bool | cppassist::string::hasSuffix (const std::string &string, const std::string &suffix) |
Check if a string ends with a given suffix. More... | |