#include <tosqlparse.h>


Public Member Functions | |
| editorTokenizer (SqlEditorWidget *editor, int offset=0, int line=0) | |
| virtual QString | getToken (bool forward=true, bool comment=false) |
| virtual QString | remaining (bool eol) |
| toSQLParse::editorTokenizer::editorTokenizer | ( | SqlEditorWidget * | editor, | |
| int | offset = 0, |
|||
| int | line = 0 | |||
| ) |
Create a tokenizer which takes its input from an editor.
| editor | The editor to read from. Observe that if this is a syntax highlighted editor the syntax analyzer is used that is used for the editor. |
| QString toSQLParse::editorTokenizer::getToken | ( | bool | forward = true, |
|
| bool | comment = false | |||
| ) | [virtual] |
Get a token from the string.
| forward | Go forward or backwards to get next token. | |
| comment | Include comments as tokens. |
Implements toSQLParse::tokenizer.
References toSQLParse::stringTokenizer::getToken(), toSQLParse::tokenizer::line(), toSQLParse::tokenizer::Line, toSQLParse::tokenizer::offset(), toSQLParse::tokenizer::Offset, and QUOTE_CHARACTER.
| QString toSQLParse::editorTokenizer::remaining | ( | bool | eol | ) | [virtual] |
Get the data remaining after the current position.
| eol | If true end of line, otherwise end of tokenizer. |
Implements toSQLParse::tokenizer.
References toSQLParse::tokenizer::line(), toSQLParse::tokenizer::Line, toSQLParse::tokenizer::offset(), and toSQLParse::tokenizer::Offset.
1.5.5