PUMA Library Reference Manual
|
#include <Puma/CWStrLiteral.h>
Wide string literal abstraction.
Holds the wide string value, its length, and the string type.
Public Member Functions | |
CWStrLiteral (const wchar_t *s, unsigned long len, CTypeInfo *t) | |
Constructor. | |
virtual | ~CWStrLiteral () |
Destructor. | |
virtual void | print (std::ostream &out) const |
Print the wide string on the given output stream. | |
const wchar_t * | String () const |
Get the wide string. | |
unsigned long | Length () const |
Get the length of the string. | |
CWStrLiteral * | WStrLiteral () const |
Get this. | |
Public Member Functions inherited from Puma::CExprValue | |
virtual | ~CExprValue () |
Destructor. | |
CTypeInfo * | Type () const |
Get the type of the value. | |
virtual CConstant * | Constant () const |
Get a pointer to CConstant if this is an arithmetic constant. | |
virtual CStrLiteral * | StrLiteral () const |
Get a pointer to CStrLiteral if this is a string literal. | |
Additional Inherited Members | |
Protected Member Functions inherited from Puma::CExprValue | |
CExprValue (CTypeInfo *t) | |
Constructor. | |
|
inline |
Constructor.
s | The wide string array. |
len | The length of the string. |
t | The type of the string. |
|
inlinevirtual |
Destructor.
Frees the string.
|
inline |
Get the length of the string.
|
inlinevirtual |
Print the wide string on the given output stream.
out | The output stream. |
Implements Puma::CExprValue.
|
inline |
Get the wide string.
|
inlinevirtual |
Get this.
Reimplemented from Puma::CExprValue.