Main Page   Class Hierarchy   Compound List   Header Files   Compound Members  

ddgStr Class Reference

Basic string class, supports streaming to output. More...

#include <ddgstr.h>

List of all members.


Public Members

 ddgStr (void)
Create str initialize to zero.

 ddgStr (const char *ss, int size = 0)
Create string initialized to ss, allocate with given size.

 ddgStr (const int s)
Create string with a given buffer size.

 ddgStr (const ddgStr *str)
Create string based on the value of another.

 ddgStr (const ddgStr &str)
Create string based on the value of another.

 ~ddgStr ()
Free the string.

bool assign ( const char * b )
Assign a value to the string.

bool assign ( const ddgStr * str )
Assign a value to the string.

 operator char * ()
Return the string managed by this object.

 operator const char * ()
Return the string managed by this object.

 operator ddgStr * ()
Return the pointer to this object.

ddgStr& operator+= ( const ddgStr& s)
Concatenate another this to this one.

unsigned int length (void)
Return the length of this string.

bool equal ( const char *b)
Compare this object to a character string.

char* findChar ( const char target )
Find char in string. Return null if char is not there.

char* s
String data.

unsigned int l
Length of string.


Static Public Members

unsigned int length ( const char *s)
Return the length of the string.

bool equal (const char * a, const char *b)
Compare two string objects.

float stof ( const char * s)
Convert a string to a floating point value.

int stoi ( const char * s)
Convert a string to an integer value.


Detailed Description

Basic string class, supports streaming to output.


The documentation for this class was generated from the following files:
Generated at Sun Sep 17 19:27:56 2000 for Digital Dawn Graphics Toolkit by doxygen 0.49-991205 written by Dimitri van Heesch, © 1997-1999