![]() |
Norbert's Game Engine v200
|
#include <String.hpp>
Public Member Functions | |
| eString (const eString &vl) | |
| String constructor. | |
| eString (const char *vl) | |
| String constructor with c-string. | |
| eString (strg vl) | |
| String constructor with std::string. | |
| ~eString () | |
| String deconstructor. | |
| void | Set (const char *vl) |
| Set text. | |
| void | Add (const char *vl) |
| Add to text. | |
| void | AddLine (const char *vl) |
| Add to text in new line. | |
| void | Clear () |
| Clear text. | |
| const char * | Get () |
| Return text as c-string. | |
| const strg & | GetStrg () const |
| Return text as std::string. | |
| void | Set (eString vl) |
| Set text by string. | |
| void | Add (eString vl) |
| Add to text by string. | |
| void | AddLine (eString vl) |
| Add to text by string in new line. | |
| bool | Compare (eString s1) |
| Compare to string. | |
| bool | Contains (eString s0) |
| Token check. | |
| uint64 | Size () |
| Returns text size. | |
| uint64 | Lenght () |
| Returns text lenght. | |
| const bool & | IsEmpty () const |
| Returns true if text is empty. | |
| const bool | Find (eString vl) |
| Returns true if token was found. | |
| void | Replace (char th, char withMe) |
| Replaces a character with another one. | |
| void | Replace (strg th, strg withMe) |
| Replaces a std::string with an std::string. | |
| void | Replace (eString th, eString withMe) |
| Replaces a string with a string. | |
| eString | operator+ (const char *in) |
| void | operator+= (const char *in) |
| void | operator+= (char in) |
| void | operator= (char in) |
| eString | operator+ (eString in) |
| void | operator+= (eString in) |
| bool | operator== (eString in) |
| char | operator[] (uint in) |
| strg & | Ref () |
| Reference to cpp string. | |
Public Member Functions inherited from eBase | |
| template<typename T > | |
| T * | Cast (eBase *obj) |
| Cast class to base. | |
Static Public Member Functions | |
| template<typename T > | |
| static eString | ToString (T vl) |
| template<typename T > | |
| static T | ToInt (eString &vl) |
| static real6 | ToReal6 (eString &vl) |
| static real3 | ToReal3 (eString &vl) |
Simple string class using standard library
Definition at line 13 of file String.hpp.
| eString::eString | ( | ) |
Definition at line 8 of file String.cpp.
| eString::eString | ( | const eString & | vl | ) |
String constructor.
Definition at line 14 of file String.cpp.
| eString::eString | ( | const char * | vl | ) |
String constructor with c-string.
Definition at line 21 of file String.cpp.
| eString::eString | ( | strg | vl | ) |
String constructor with std::string.
Definition at line 27 of file String.cpp.
| eString::~eString | ( | ) |
| void eString::Add | ( | const char * | vl | ) |
| void eString::Add | ( | eString | vl | ) |
Add to text by string.
Definition at line 108 of file String.cpp.
| void eString::AddLine | ( | const char * | vl | ) |
Add to text in new line.
Definition at line 52 of file String.cpp.
| void eString::AddLine | ( | eString | vl | ) |
Add to text by string in new line.
Definition at line 114 of file String.cpp.
| void eString::Clear | ( | ) |
| bool eString::Compare | ( | eString | s1 | ) |
| bool eString::Contains | ( | eString | s0 | ) |
Token check.
Definition at line 82 of file String.cpp.
| const bool eString::Find | ( | eString | vl | ) |
Returns true if token was found.
Definition at line 126 of file String.cpp.
| const char * eString::Get | ( | ) |
Return text as c-string.
Definition at line 64 of file String.cpp.
| const strg & eString::GetStrg | ( | ) | const |
| const bool & eString::IsEmpty | ( | ) | const |
Returns true if text is empty.
Definition at line 120 of file String.cpp.
| uint64 eString::Lenght | ( | ) |
|
inline |
Definition at line 71 of file String.hpp.
|
inline |
Definition at line 83 of file String.hpp.
|
inline |
Definition at line 78 of file String.hpp.
|
inline |
Definition at line 100 of file String.hpp.
|
inline |
Definition at line 88 of file String.hpp.
|
inline |
Definition at line 105 of file String.hpp.
|
inline |
Definition at line 110 of file String.hpp.
| strg & eString::Ref | ( | ) |
| void eString::Replace | ( | char | th, |
| char | withMe ) |
Replaces a character with another one.
Definition at line 132 of file String.cpp.
Replaces a string with a string.
Definition at line 162 of file String.cpp.
| void eString::Replace | ( | strg | th, |
| strg | withMe ) |
Replaces a std::string with an std::string.
Definition at line 138 of file String.cpp.
| void eString::Set | ( | const char * | vl | ) |
Set text.
Definition at line 39 of file String.cpp.
| void eString::Set | ( | eString | vl | ) |
Set text by string.
Definition at line 101 of file String.cpp.
| uint64 eString::Size | ( | ) |
|
inlinestatic |
Definition at line 54 of file String.hpp.
|
inlinestatic |
Definition at line 66 of file String.hpp.
|
inlinestatic |
Definition at line 60 of file String.hpp.
|
inlinestatic |
Definition at line 47 of file String.hpp.