[Home] [Prev] [Next] [Up]


XGString class

Provides simple resizable string support

Usage:

#include <XString.h>

class XGString;

Description

This provides similar functionality to the standard C string class. This is done so I can have the basic functionality I need in the YAAF library.

Construction/Destruction Methods

XGString::XGString()

Default constructor creates an empty string.

XGString::XGString(XGString &s)

Constructs a copy of the string.

XGString::XGString(const char *str)

Constructs an XGString object with the contents of the C string provided

XGString::~XGString()

Releases the initialized string.

Copy operator

XGString &XGString::operator = (XGString &)

This copies the specified string into the XGString's buffers.

XGString &XGString::operator = (const char *str);

This copies the specified C string into the XGString's buffers.

Fetch contents

const char *XGString::Get(void)

This returns a pointer to the C string stored.


[Home] [Prev] [Next] [Up]