GClasses

GClasses::GWordIterator Class Reference

This iterates over the words in a block of text. More...

#include <GText.h>

List of all members.

Public Member Functions

 GWordIterator (const char *text, size_t len)
 ~GWordIterator ()
bool next (const char **ppWord, size_t *pLen)
 Obtains the next word in the block of text. Returns false if there are no words left.

Protected Attributes

const char * m_pText
size_t m_len

Detailed Description

This iterates over the words in a block of text.


Constructor & Destructor Documentation

GClasses::GWordIterator::GWordIterator ( const char *  text,
size_t  len 
)
GClasses::GWordIterator::~GWordIterator ( )

Member Function Documentation

bool GClasses::GWordIterator::next ( const char **  ppWord,
size_t *  pLen 
)

Obtains the next word in the block of text. Returns false if there are no words left.


Member Data Documentation

size_t GClasses::GWordIterator::m_len [protected]
const char* GClasses::GWordIterator::m_pText [protected]