|
template<typename CharType > |
static bool | IsCharacterWhitespace (CharType character) |
|
template<typename CharType > |
static bool | IsCharacterQuote (CharType character) |
|
template<typename CharType > |
static bool | IsCharacterPathSeparator (CharType character) |
|
template<class StringTypeN > |
static void | MakeString (StringTypeN &str, const char *characters, size_t count) |
|
template<class StringTypeN > |
static StringTypeN | RepeatCharacter (int character, size_t count) |
|
template<class StringTypeN > |
static const StringTypeN | RemoveExtension (const StringTypeN &filepath, bool delpath=true) |
|
template<class StringTypeN > |
static const StringTypeN | GetExtension (const StringTypeN &filepath) |
|
template<class StringTypeN > |
static const StringTypeN | ChangeExtension (const StringTypeN &filepath, const StringTypeN &newext) |
|
template<class StringTypeN > |
static const StringTypeN | RemovePath (const StringTypeN &filepath) |
|
template<class StringTypeN > |
static const StringTypeN | GetPath (const StringTypeN &filepath) |
| Returns the path part of a path+filename. More...
|
|
static DLLEXPORT std::string | URLProtocol (const std::string &url) |
|
static DLLEXPORT std::string | BaseHostName (const std::string &url) |
|
static DLLEXPORT std::string | URLPath (const std::string &url, bool stripoptions=true) |
|
static DLLEXPORT std::string | CombineURL (const std::string &first, const std::string &second) |
|
static DLLEXPORT std::string | RemovePartsBeforeAbsoluteURLParts (const std::string &url) |
|
static DLLEXPORT bool | IsURLDomain (const std::string &str) |
| Returns true if string looks like a top level domain. More...
|
|
template<class StringTypeN > |
static const StringTypeN | ChangeLineEndsToWindows (const StringTypeN &input) |
| Changes all line separators to Windows line separators. More...
|
|
template<class StringTypeN > |
static const StringTypeN | ChangeLineEndsToUniversal (const StringTypeN &input) |
| Changes all line separators to universal line separators. More...
|
|
template<class StringTypeN > |
static size_t | CutLines (const StringTypeN &input, std::vector< StringTypeN > &output) |
| Splits a string on line separators. More...
|
|
template<class StringTypeN > |
static bool | CutString (const StringTypeN &strtocut, const StringTypeN &separator, std::vector< StringTypeN > &vec) |
|
template<class StringTypeN > |
static int | CountOccuranceInString (const StringTypeN &data, const StringTypeN &lookfor) |
|
template<class StringTypeN > |
static StringTypeN | Replace (const StringTypeN &data, const StringTypeN &toreplace, const StringTypeN &replacer) |
|
template<class StringTypeN > |
static StringTypeN | ReplaceSingleCharacter (const StringTypeN &data, int toreplace, int replacer=' ') |
|
template<class StringTypeN > |
static void | ReplaceSingleCharacterInPlace (StringTypeN &data, int toreplace, int replacer=' ') |
|
template<class StringTypeN > |
static StringTypeN | RemoveCharacters (const StringTypeN &data, const StringTypeN &toremove) |
|
template<class StringTypeN > |
static StringTypeN | RemoveFirstWords (const StringTypeN &data, int amount) |
|
template<class StringTypeN > |
static StringTypeN | RemovePrefix (const StringTypeN &data, const StringTypeN &prefix) |
|
template<class StringTypeN > |
static StringTypeN | StitchTogether (const std::vector< StringTypeN * > &data, const StringTypeN &separator) |
|
template<class StringTypeN > |
static StringTypeN | StitchTogether (const std::vector< StringTypeN > &data, const StringTypeN &separator) |
|
template<class StringTypeN > |
static StringTypeN | StitchTogether (const std::vector< std::shared_ptr< StringTypeN >> &data, const StringTypeN &separator) |
|
template<class StringTypeN > |
static void | RemovePreceedingTrailingSpaces (StringTypeN &str) |
|
template<class StringTypeN > |
static bool | CompareInsensitive (const StringTypeN &data, const StringTypeN &second) |
|
template<class StringTypeN > |
static bool | StringStartsWith (const StringTypeN &data, const StringTypeN &tomatch) |
|
template<class StringTypeN > |
static bool | StringEndsWith (const StringTypeN &data, const StringTypeN &tomatch) |
|
template<class StringTypeN > |
static bool | IsStringNumeric (const StringTypeN &data) |
|
template<class StringTypeN > |
static StringTypeN | ToUpperCase (const StringTypeN &data) |
|
template<class StringTypeN > |
static StringTypeN | Indent (size_t numspaces) |
|
template<class StringTypeN > |
static StringTypeN | IndentLines (const StringTypeN &str, size_t spaces) |
| Appends spaces number of spaces to each line in str and returns the result. More...
|
|
template<class StringTypeN > |
static StringTypeN | RemoveEnding (const StringTypeN &str, const StringTypeN &ending) |
|
static bool | IsLineTerminator (int32_t codepoint) |
|
static bool | IsLineTerminator (int32_t codepoint1, int32_t codepoint2) |
|
Singleton class that has string processing functions.
Most functions work with any type of string, but it is recommended to only pass string or wstring to avoid headaches.
- Todo:
Get rid of ElementType and just use ints for everything and hope that it is large enough
Drop wstring support
Definition at line 33 of file StringOperations.h.