toSQLParse::stringTokenizer Class Reference

#include <tosqlparse.h>

Inheritance diagram for toSQLParse::stringTokenizer:

Inheritance graph
[legend]
Collaboration diagram for toSQLParse::stringTokenizer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 stringTokenizer (const QString &str, int offset=0, int line=0)
virtual QString getToken (bool forward=true, bool comment=false)
virtual QString remaining (bool eol)


Detailed Description

Tokenizer class which gets tokens from a string.

Constructor & Destructor Documentation

toSQLParse::stringTokenizer::stringTokenizer ( const QString &  str,
int  offset = 0,
int  line = 0 
) [inline]


Member Function Documentation

QString toSQLParse::stringTokenizer::getToken ( bool  forward = true,
bool  comment = false 
) [virtual]

Get a token from the string.

Parameters:
forward Go forward or backwards to get next token.
comment Include comments as tokens.

Implements toSQLParse::tokenizer.

References toSQLParse::tokenizer::Line, toSQLParse::tokenizer::Offset, QUOTE_CHARACTER, and toIsIdent().

Referenced by toSQLParse::editorTokenizer::getToken().

QString toSQLParse::stringTokenizer::remaining ( bool  eol  )  [virtual]

Get the data remaining after the current position.

Parameters:
eol If true end of line, otherwise end of tokenizer.

Implements toSQLParse::tokenizer.

References toSQLParse::tokenizer::Offset.


The documentation for this class was generated from the following files:

Generated on Sat Jul 26 09:05:57 2008 for Sqliteman by  doxygen 1.5.5