Added String::escape and String::unescape.

This commit is contained in:
Martín Lucas Golini
2022-03-08 00:24:41 -03:00
parent cd2db3897c
commit ca2d01d790
3 changed files with 187 additions and 33 deletions

View File

@@ -69,6 +69,12 @@ class EE_API String {
return 0;
}
/** Escape string sequence */
static String escape( const String& str );
/** Unescape string sequence */
static String unescape( const String& str );
/** @return string hash */
static String::HashType hash( const std::string& str );
@@ -776,6 +782,10 @@ class EE_API String {
String& toUpper();
String& escape();
String& unescape();
StringBaseType lastChar() const;
std::vector<String> split( const StringBaseType& delim = '\n',