GClasses
GClasses::GWordIterator Class Reference

Detailed Description

This iterates over the words in a block of text.

#include <GText.h>

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. More...
 

Protected Attributes

size_t m_len
 
const char * m_pText
 

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