7#ifndef ALSTRING_CLEANER_H
8#define ALSTRING_CLEANER_H
29 static std::string
cleanSpaces(std::string
str,
bool replace=
true,
char replaceBy=
'_');
37 static std::string
cleanASCII(std::string
str,
bool replace=
true,
char replaceBy=
'_');
48 static std::string
getUID();
68 static std::string
cleanString(std::string
str,
bool toLower=
true,
bool clASCII=
true,
bool clSpaces=
true,
bool bUID=
true);
80 static bool invalidASCIIChar(
char c);
82 static bool invalidCharE(
char c);
84 static bool invalidCharA(
char c);
90 static bool isSpace(
char toTest);
95 static unsigned int getFirstID();
97 static unsigned int uids;
static std::string curentUID()
return the current UID WITHOUT incrementing the UID.
static void resetUID()
reset the uid to 0.
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 cleanSpaces(std::string str, bool replace=true, char replaceBy='_')
Clean a string of spaces, can delete or replace them.
static std::string cleanString(std::string str, bool toLower=true, bool clASCII=true, bool clSpaces=true, bool bUID=true)
Clean a string.
STBI_EXTERN unsigned long const char * str