24 #ifndef UTILS_STRINGUTILS_H
25 #define UTILS_STRINGUTILS_H
40 std::string &
trim(std::string &str);
48 std::string &
toLower(std::string &str);
56 std::string &
toUpper(std::string &str);
77 std::string
toString(
unsigned char num);
83 std::string
toString(
const float num);
85 std::string
toString(
const double num);
158 const std::string
encodeStr(
unsigned int value,
198 void splitToIntSet(std::set<int> &tokens,
const std::string &text,
199 const char separator);
208 const std::string &text,
const char separator);
211 const std::string &text,
const char separator);
214 const std::string &text,
const char separator);
288 const
std::
string &str2);
291 const
std::
string &str2,
292 const
std::
string &str3);
295 const
std::
string &str2);
bool msg(InputEvent &event)
bool url(InputEvent &event)
union EAthena::ItemFlags __attribute__((packed))
std::string toString(uint32_t num)
std::string removeColors(std::string msg)
void sanitizePath(std::string &path)
bool isWordSeparator(const signed char chr) A_CONST
std::string packList(const std::list< std::string > &list)
void cutFirst(std::string &str1, const std::string &str2)
std::string combineDye3(std::string file, const std::string &dye)
const std::string findSameSubstringI(const std::string &str1, const std::string &str2)
std::string & toUpper(std::string &str)
std::string removeSpriteIndex(std::string str)
std::string getFileName(const std::string &path)
unsigned int atox(const std::string &str)
std::list< std::string > splitToStringList(const std::string &text, const char separator)
std::string & replaceAll(std::string &context, const std::string &from, const std::string &to)
void deleteCharLeft(std::string &str, unsigned *const pos)
void cutLast(std::string &str1, const std::string &str2)
std::string combineDye(std::string file, const std::string &dye)
void splitToIntVector(std::vector< int > &tokens, const std::string &text, const char separator)
bool parse2Int(const std::string &args, int &x, int &y)
std::string stringToHexPath(const std::string &str)
std::string & removeProtocol(std::string &url)
std::string toStringPrint(const unsigned int val)
std::string strprintf(const char *const format,...)
std::string getDateTimeString()
bool parse2Str(const std::string &args, std::string &str1, std::string &str2)
std::string & toLower(std::string &str)
std::string removeToken(std::string &str, const std::string &token)
void splitToStringVector(StringVect &tokens, const std::string &text, const char separator)
int compareStrI(const std::string &a, const std::string &b)
std::string timeDiffToString(int timeDiff)
std::string getFileDir(const std::string &path)
std::string escapeString(std::string str)
void replaceRecursiveAll(std::string &context, const std::string &from, const char to)
unsigned int decodeStr(const std::string &str)
bool findCutFirst(std::string &str1, const std::string &str2)
void splitToIntSet(std::set< int > &tokens, const std::string &text, const char separator)
size_t findI(std::string str, std::string subStr)
bool getBoolFromString(const std::string &text)
void replaceItemLinks(std::string &msg)
void splitToStringSet(std::set< std::string > &tokens, const std::string &text, const char separator)
bool findLast(const std::string &str1, const std::string &str2)
std::string decodeLinkText(std::string data)
signed char parseBoolean(const std::string &value)
size_t rfindSepatator(const std::string &str1)
std::string timeToStr(const uint32_t time)
bool findCutLast(std::string &str1, const std::string &str2)
std::string combineDye2(std::string file, const std::string &dye)
const char * getSafeUtf8String(const std::string &text)
std::string pathJoin(std::string str1, const std::string &str2)
size_t findAny(const std::string &text, const std::string &chars, const size_t pos)
std::string urlJoin(std::string str1, const std::string &str2)
const std::string encodeStr(unsigned int value, const unsigned int size)
bool isDigit(const std::string &str)
std::string normalize(const std::string &name)
std::list< int > splitToIntList(const std::string &text, const char separator)
void secureChatCommand(std::string &str)
std::string extractNameFromSprite(std::string str)
bool strStartWith(const std::string &str, const std::string &start)
void replaceSpecialChars(std::string &text)
const char * ipToString(const uint32_t address)
const std::string findSameSubstring(const std::string &str1, const std::string &str2)
uint32_t parseNumber(const std::string &str)
std::string encodeLinkText(std::string data)
std::string getDateString()
bool findFirst(const std::string &str1, const std::string &str2)
std::string & trim(std::string &str)
std::list< std::string > unpackList(const std::string &str)
std::vector< std::string > StringVect