DynRPG  v0.14a
RM2k3 Plugin SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions
RPG::DString Class Reference

Helper class representing a Delphi string. More...

List of all members.

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.

Detailed Description

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.

Note:
In most cases, the RPG::DStringPtr class is used instead of an RPG::DString pointer.
Warning:
Please mind the Rules about strings!
See also:
RPG::DStringPtr

Member Function Documentation

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)

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator