#include <ALStringCleaner.h>
|
static std::string | cleanSpaces (std::string str, bool replace=true, char replaceBy='_') |
| Clean a string of spaces, can delete or replace them.
|
|
static std::string | cleanASCII (std::string str, bool replace=true, char replaceBy='_') |
| Clean a string of non-ASCII chars, can delete or replace them.
|
|
static void | toLowerCase (std::string str) |
| Convert a string to lower case.
|
|
static std::string | getUID () |
| return a unique ID.
|
|
static std::string | curentUID () |
| return the current UID WITHOUT incrementing the UID.
|
|
static void | resetUID () |
| reset the uid to 0.
|
|
static std::string | cleanString (std::string str, bool toLower=true, bool clASCII=true, bool clSpaces=true, bool bUID=true) |
| Clean a string.
|
|
Definition at line 19 of file ALStringCleaner.h.
◆ cleanASCII()
std::string ALStringCleaner::cleanASCII |
( |
std::string |
str, |
|
|
bool |
replace = true , |
|
|
char |
replaceBy = '_' |
|
) |
| |
|
static |
Clean a string of non-ASCII chars, can delete or replace them.
- Parameters
-
str | : The string to clean. |
replace | : True if you want to replace the non-ASCII chars instead of deleting them. |
replaceBy | : The char who's gonna replace the non-ASCII chars. |
Definition at line 38 of file ALStringCleaner.cpp.
◆ cleanSpaces()
std::string ALStringCleaner::cleanSpaces |
( |
std::string |
str, |
|
|
bool |
replace = true , |
|
|
char |
replaceBy = '_' |
|
) |
| |
|
static |
Clean a string of spaces, can delete or replace them.
- Parameters
-
str | : The string to clean. |
replace | : True if you want to replace the spaces instead of deleting them. |
replaceBy | : The char who's gonna replace the spaces. |
Definition at line 71 of file ALStringCleaner.cpp.
◆ cleanString()
std::string ALStringCleaner::cleanString |
( |
std::string |
str, |
|
|
bool |
toLower = true , |
|
|
bool |
clASCII = true , |
|
|
bool |
clSpaces = true , |
|
|
bool |
bUID = true |
|
) |
| |
|
static |
Clean a string.
- Parameters
-
str | : The string to clean. |
toLower | : If true, will lower case the entire string. |
clASCII | : If true, will delete non-ASCII chars. |
clSpaces | : If true, will replace spaces. |
bUID | : If true, append a unique ID to the string. |
Definition at line 130 of file ALStringCleaner.cpp.
◆ curentUID()
std::string ALStringCleaner::curentUID |
( |
| ) |
|
|
static |
◆ getUID()
std::string ALStringCleaner::getUID |
( |
| ) |
|
|
static |
◆ resetUID()
void ALStringCleaner::resetUID |
( |
| ) |
|
|
static |
◆ toLowerCase()
void ALStringCleaner::toLowerCase |
( |
std::string |
str | ) |
|
|
static |
The documentation for this class was generated from the following files: