addHead(const T<>) |
String |
Add substring on head of String |
addTail(const T<>) |
String |
Add substring on tail of String |
charAt(const int) |
char |
Get character at specific position |
compare(const T<>) |
bool |
Compares String with String or std::string |
concat(const T<>) |
String |
Concats String with const char*, std::string or String |
contains(const T<>) |
bool |
Checks if String contains a specific substring |
copyTo(String ) |
void |
Saves reference of internal std::string to other internal std::string of String |
copyTo(std::string&) |
void |
Saves reference of internal std::string to other std::string |
count(const T<>) |
int |
Returns number of occurences of const char*, std::string or String argument in String |
endsWith(const T<>) |
bool |
Checks if a String ends with a specific substring |
equals(const T<>) |
bool |
Alias to compare(const T<>) |
erase(const T<>) |
String |
Erases all occurences of substring |
eraseFirst(const T<>) |
String |
Erases first occurence of substring |
eraseHead(int) |
String |
Erases head of String |
eraseLast(const T<>) |
String |
Erases last occurence of substring |
eraseTail(int) |
String |
Erases tail of String |
fillHead(const int, const char) |
String |
Fill head of String with number of characters |
fillTail(const int, const char) |
String |
Fill tail of String with number of characters |
find(const T<>) |
std::vector |
Search all occurences of substring and saves position of them in vector container |
findAll(const T<>) |
std::vector |
Alias of find(const T<>) |
findFirst(const T<>) |
int |
Returns position of first occurence of substring |
findLast(const T<>) |
int |
Returns position of last occurence of substring |
format(const T<>1, const T<>2) |
String |
Replaces {%} with given arguments |
indexOf(const T<>) |
int |
Alias of findFirst(const T<>) |
isEmpty() |
bool |
Checks if String is empty string "" |
isEmptyOrWhiteSpace() |
bool |
Checks if String is empty string or string with WhiteSpaces only |
lastIndexOf(const T<>) |
int |
Alias of findLast(const T<>) |
length() |
int |
Get length of String |
padLeft(const int, const char) |
String |
Alias for fillHead(const int, const char) |
padRight(const int, const char) |
String |
Alias for fillTail(const int, const char) |
print() |
void |
Prints String to stdout |
print(const T<>, const T<> = "") |
void |
Prints const char*, std::string or String to stdout |
print(const T<> = "", const T<>, const T<>...) |
void |
Prints n const char*, std::string or String to stdout with specific separator |
replace(const T<>) |
String |
Replaces all occurences of substring |
replaceFirst(const T<>) |
String |
Replaces first occurence of substring |
replaceHead(int, const T<>) |
String |
Replaces head of String with new substring |
replaceLast(const T<>) |
String |
Replaces last occurence of substring |
replaceTail(int, const T<>) |
String |
Replaces tail of String with new substring |
reverse() |
String |
Reverse String |
size() |
int |
Alias of length() |
split(const T<>) |
std::vector |
Splits string with help of delimiter (char or string) into substrings and saves them in a container |
startsWith(const T<>) |
bool |
Checks if a String starts with a specific substring |
swap(std::string&) |
void |
Swaps String and std::string |
swap(String &s) |
void |
Swaps String and String |
toBool() |
bool |
Casts String to bool (if "0", "false", "" then "false" else "true") |
toCharArr() |
std::vector |
Returns container with characters |
toCStr() |
const char* |
Returns const char* from String |
toStdStr() |
String |
Returns internal std::string of String |
toDouble() |
double |
Returns double if String is numeric |
toFloat() |
float |
Returns float if String is numeric |
toInt() |
int |
Returns Integer if String is numeric |
toLong() |
long |
Returns Long if String is numeric |
toLower() |
String |
Formats String to lower case |
toUpper() |
String |
Formats String to upper case |
trim() |
String |
Trims WhiteSpaces on |
trimHead() |
String |
Trims WhiteSpaces at head of String |
trimTail() |
String |
Trims WhiteSpaces at tail of String |