18 #ifndef __estring_h_included 19 #define __estring_h_included 61 operator cpChar()
const {
return c_str(); }
67 *(std::string *)
this = s;
74 *(std::string *)
this = s;
81 return epc_strnicmp(c_str(), str.c_str(), length() > str.length() ? length() : str.length());
87 size_t len = strlen(str);
88 return epc_strnicmp(c_str(), str, length() > len ? length() : len);
94 erase(begin(), std::find_if(begin(), end(), [](Char ch) {
95 return !std::isspace(ch);
102 erase(std::find_if(rbegin(), rend(), [](Char ch) {
103 return !std::isspace(ch);
133 #endif // #define __estring_h_included EString(cpStr s, size_t n)
Class constructor.
Definition: estring.h:42
Void trim()
Removes leading and trailing white space.
Definition: estring.h:109
EString & operator=(cpChar s)
Assigns the specified NULL terminated strint to this string object.
Definition: estring.h:65
EString replaceAllCopy(cpStr srch, size_t srchlen, cpStr rplc, size_t rplclen)
Replaces all occurances of the search string with the replacement string and returns a new string obj...
Definition: estring.cpp:83
Macros for various standard C library functions and standard includes.
EString()
Default constructor.
Definition: estring.h:35
std::vector< EString > EStringVec
Definition: estring.h:131
Int icompare(EString &str)
Compares this string object to the specified string object.
Definition: estring.h:79
#define epc_strnicmp(str1, str2, count)
strnicmp - strnicmp, strncasecmp
Definition: ebase.h:54
EString & toupper()
Converts this string to uppercase.
Definition: estring.cpp:72
EString & tolower()
Converts this string to lowercase.
Definition: estring.cpp:66
EString & replaceAll(cpStr srch, size_t srchlen, cpStr rplc, size_t rplclen)
Replaces all occurances of the search string with the replacement string.
Definition: estring.cpp:78
EString(const std::string &s)
Copy constructor.
Definition: estring.h:45
Int icompare(cpStr str)
Compares this string object to the specified NULL terminated string.
Definition: estring.h:85
Void rtrim()
Removes trailing white space.
Definition: estring.h:100
EString(cpStr s)
Class constructor.
Definition: estring.h:38
EString & format(cpChar pszFormat,...)
Sets the value to the string using a "printf" style format string and arguments.
Definition: estring.cpp:38
EString(const EString &s)
Copy constructor.
Definition: estring.h:48
EString & operator=(const std::string s)
Assignment operator.
Definition: estring.h:72
String class.
Definition: estring.h:31
Void ltrim()
Removes leading white space.
Definition: estring.h:92