String class.
More...
#include <estring.h>
◆ EString() [1/4]
◆ EString() [2/4]
| EString::EString |
( |
cpStr |
s | ) |
|
|
inline |
Class constructor.
- Parameters
-
| s | the NULL terminated string to initilize this string object to. |
◆ EString() [3/4]
| EString::EString |
( |
const std::string & |
s | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ EString() [4/4]
| EString::EString |
( |
const EString & |
s | ) |
|
|
inline |
Copy constructor.
- Parameters
-
◆ format()
| EString & EString::format |
( |
cpChar |
pszFormat, |
|
|
|
... |
|
) |
| |
Sets the value to the string using a "printf" style format string and arguments.
- Returns
- reference to this string object.
◆ icompare() [1/2]
| Int EString::icompare |
( |
cpStr |
str | ) |
|
|
inline |
Compares this string object to the specified NULL terminated string.
- Returns
- see "strnicmp" for the definition of return value.
◆ icompare() [2/2]
| Int EString::icompare |
( |
EString & |
str | ) |
|
|
inline |
Compares this string object to the specified string object.
- Returns
- see "strnicmp" for the definition of return value.
◆ ltrim()
Removes leading white space.
◆ operator cpChar()
| EString::operator cpChar |
( |
| ) |
|
|
inline |
Retrieves a const char* to this string.
- Returns
- a const char* to this string.
◆ operator=() [1/2]
| EString& EString::operator= |
( |
const std::string |
s | ) |
|
|
inline |
Assignment operator.
- Parameters
-
| s | the string to assignment to this object. |
◆ operator=() [2/2]
| EString& EString::operator= |
( |
cpChar |
s | ) |
|
|
inline |
Assigns the specified NULL terminated strint to this string object.
- Returns
- reference to this string object.
◆ replaceAll()
| EString & EString::replaceAll |
( |
cpStr |
srch, |
|
|
size_t |
srchlen, |
|
|
cpStr |
rplc, |
|
|
size_t |
rplclen |
|
) |
| |
Replaces all occurances of the search string with the replacement string.
- Parameters
-
| srch | the search string. |
| srchlen | the length of the search string. |
| rplc | the replacement string. |
| rplclen | the length of the replacement string. |
- Returns
- a reference to this object.
◆ replaceAllCopy()
| EString 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 object.
- Parameters
-
| srch | the search string. |
| srchlen | the length of the search string. |
| rplc | the replacement string. |
| rplclen | the length of the replacement string. |
- Returns
- the new string object.
◆ rtrim()
Removes trailing white space.
◆ tolower()
Converts this string to lowercase.
- Returns
- reference to this string object.
◆ toupper()
Converts this string to uppercase.
- Returns
- reference to this string object.
◆ trim()
Removes leading and trailing white space.
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/estring.h
- /home/vagrant/share/code/epctools/src/estring.cpp