Class Hierarchy   Compound List   File List   Header Files   Compound Members   File Members  

MString.h File Reference

A String implementation containing most of the methods that you would expect in a String. More...


Compounds

class String

Defines

#define __STRING__

Functions

simple_stack<String>* split (const char *x,char separator)
Split a string into a stack of elements, separated by a separator. More...


Variables

const String emptyString


Detailed Description

A String implementation containing most of the methods that you would expect in a String.

Strings are represented as possibly shared segment lists Copying and assignment are fast. (const char *) operator and c_str which access the value as a char pointer can be slow.


Define Documentation

#define __STRING__


Function Documentation

simple_stack<String>* split (const char * x, char separator)

Split a string into a stack of elements, separated by a separator.

Parameters:
x - - the string to split up
separator - - the separator NOTE: repeated separators will produce an empty string. e.g. split("a b",' ') produces "a","","b" as output.

Variable Documentation

const String emptyString


Generated at Wed Apr 25 17:34:43 2001 for NCI SUIF by doxygen  written by Dimitri van Heesch, © 1997-1999