Functions



DSStrTok

	public:

DSStrTok(char * string, char sep=' ');

This constructs a new StrTok for a specified input string, and a specified character to use for breaking it up.

Parameters

NameDescription
stringThe input string to be broken up.
sepThe character to use as a seperator.

getElement

	public:

char * getElement(int i);

This function retrieves the specified portion of the broken string.

Parameters

NameDescription
iThe 0-based index number of the portion of the string needed.
Result: A pointer to the portion of the string requested.

getNumElements

	public:

int getNumElements();

This function retrieves the number of portions in the broken string.

Result: The number of portions in the larger string.

~DSStrTok

	public:

~DSStrTok();

Destroys a StrTok.


Generated with HeaderDoc - © 2000 Apple Computer, Inc. — (Last Updated 5/10/2004)