DynRPG v0.32 Unofficial
Plugin SDK
Public Member Functions | List of all members
RPG::DString Class Reference

Helper class representing a Delphi string. More...

#include <DString.h>

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 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 DStringPtr class is used instead of an DString pointer.
Warning
Please mind the Rules about strings!
See also
DStringPtr

The documentation for this class was generated from the following file: