Description | Hierarchy | Fields | Methods | Properties |
type TSqlitePassSQLTokenizer = class(TObject)
The TSqlitePassTokenizer is an utility object used to : Split a SQL statement or a piece of SQL statement into a list of tokens (TSqlitePassSQLToken)
Move to the First, Prior, Next, Last Token Locate a specific token by text or type Replace a specific token located before an existing token Remove a specific token located after an existing token Insert a new token before an existing token Insert a new token after an existing token Set the string to be tokenized and rebuild a string representation from the tokens (Text property)...
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function First: Boolean; |
![]() |
function GetTextAfter(TokenType: TSqlitePassSQLTokenType): String; |
![]() |
function Last: Boolean; |
![]() |
function Locate(TokenText: String): Boolean; overload; |
![]() |
function Locate(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Next(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Next: Boolean; overload; |
![]() |
function Prior(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Prior: Boolean; overload; |
![]() |
procedure InsertAfter(TokenText, InsertedStmt: String); |
![]() |
procedure InsertBefore(TokenText, InsertedStmt: String); |
![]() |
procedure Remove(TokenText: String); |
![]() |
procedure RemoveAfter(TokenText, RemovedStmt: String); |
![]() |
procedure RemoveBefore(TokenText, RemovedStmt: String); |
![]() |
procedure Replace(OldText, NewText: String); |
![]() |
procedure Tokenize(Options: TSqlitePassSQLTokenizerOptions = []); |
![]() |
property Count: Integer Read GetFCount; |
![]() |
property EOF: Boolean Read GetFEOF; |
![]() |
property Text: String Read GetFText Write SetFText; |
![]() |
property Token: TSqlitePassSQLToken Read GetFCurrentToken; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function First: Boolean; |
![]() |
function GetTextAfter(TokenType: TSqlitePassSQLTokenType): String; |
![]() |
function Last: Boolean; |
![]() |
function Locate(TokenText: String): Boolean; overload; |
![]() |
function Locate(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Next(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Next: Boolean; overload; |
![]() |
function Prior(TokenType: TSqlitePassSQLTokenType): Boolean; overload; |
![]() |
function Prior: Boolean; overload; |
![]() |
procedure InsertAfter(TokenText, InsertedStmt: String); |
![]() |
procedure InsertBefore(TokenText, InsertedStmt: String); |
![]() |
procedure Remove(TokenText: String); |
![]() |
procedure RemoveAfter(TokenText, RemovedStmt: String); |
![]() |
procedure RemoveBefore(TokenText, RemovedStmt: String); |
![]() |
procedure Replace(OldText, NewText: String); |
![]() |
procedure Tokenize(Options: TSqlitePassSQLTokenizerOptions = []); |
![]() |
property Count: Integer Read GetFCount; |
![]() |
property EOF: Boolean Read GetFEOF; |
![]() |
property Text: String Read GetFText Write SetFText; |
Sets the original string to be tokenized or builds and returns a string from the tokens |
![]() |
property Token: TSqlitePassSQLToken Read GetFCurrentToken; |
Gives access to the currently selected |