Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Internal helper class. More...
#include <StringTools.h>
Static Public Member Functions | |
static bool | Contains (const std::string &str, const char c) |
Will return wether or not a given char is in a string. More... | |
static std::string | Replace (const std::string &str, const char find, const std::string &subst) |
Will replace a part of a string with another string. More... | |
static std::string | Replace (const std::string &str, const std::string &find, const std::string &subst) |
Will replace a part of a string with another string. More... | |
static bool | IsNumeric (const std::string &str, const bool allowDecimalPoint=false) |
Will return true if the given string consists only of digits (including signage) More... | |
static bool | ParseNumber (const std::string &str, bool &out_isInt, long double &out_number) |
Will convert the number in str to a number. More... | |
static std::vector< std::string > | SplitString (const std::string &str, const char delimiter) |
Will split a string by a delimiter char. The delimiter will be excluded! More... | |
static std::vector< std::string > | SplitString (const std::string &str, const std::string &delimiter) |
Will split a string by a delimiter string. The delimiter will be excluded! More... | |
static std::string | ToLower (const std::string &str) |
Will make a string all lower-case. More... | |
|
static |
Will return wether or not a given char is in a string.
Definition at line 5 of file StringTools.cpp.
|
static |
Will return true if the given string consists only of digits (including signage)
Definition at line 56 of file StringTools.cpp.
|
static |
Will convert the number in str to a number.
Returns wether or not the operation was successful.
Also returns wether the number is an integer, or floating point. If int, cast out_number to int.
Definition at line 82 of file StringTools.cpp.
|
static |
Will replace a part of a string with another string.
Definition at line 14 of file StringTools.cpp.
|
static |
Will replace a part of a string with another string.
Definition at line 27 of file StringTools.cpp.
|
static |
Will split a string by a delimiter char. The delimiter will be excluded!
Definition at line 125 of file StringTools.cpp.
|
static |
Will split a string by a delimiter string. The delimiter will be excluded!
Definition at line 132 of file StringTools.cpp.
|
static |
Will make a string all lower-case.
Definition at line 173 of file StringTools.cpp.