![]() |
DynRPG
v0.20
RM2k3 Plugin SDK
|
Helper class representing a Delphi string. More...
Public Member Functions | |
operator std::string () const | |
Cast operator returning a std::string (recommended) | |
operator char * () const | |
Cast operator returning a char * | |
int | length () |
Returns the length of the string. |
Helper class representing a Delphi string.
This class has no members. It is only "virtual", which means an RPG::DString pointer can be used instead of a char *
to be able to access the length information of the string and provide a nice automatic cast to std::string even when there are embedded nulls.
int RPG::DString::length | ( | ) |
Returns the length of the string.
RPG::DString::operator char * | ( | ) | const |
Cast operator returning a char *
RPG::DString::operator std::string | ( | ) | const |
Cast operator returning a std::string
(recommended)