LibreOffice Module connectivity (master) 1
|
Scanner for SQL92. More...
#include <sqlscan.hxx>
Public Member Functions | |
OSQLScanner () | |
~OSQLScanner () | |
sal_Int32 | SQLyygetc () |
void | SQLyyerror (char const *fmt) |
IParseContext::InternationalKeyCode | getInternationalTokenID (const char *sToken) const |
void | prepareScan (const OUString &rNewStatement, const IParseContext *pContext, bool bInternational) |
const OUString & | getErrorMessage () const |
const OString & | getStatement () const |
void | setScanner (bool _bNull=false) |
void | SetRule (sal_Int32 nRule) |
sal_Int32 | GetCurrentPos () const |
Static Public Member Functions | |
static sal_Int32 | SQLlex () |
static sal_Int32 | GetGERRule () |
static sal_Int32 | GetENGRule () |
static sal_Int32 | GetSQLRule () |
static sal_Int32 | GetDATERule () |
static sal_Int32 | GetSTRINGRule () |
Private Attributes | |
const IParseContext * | m_pContext |
OString | m_sStatement |
OUString | m_sErrorMessage |
sal_Int32 | m_nCurrentPos |
bool | m_bInternational |
sal_Int32 | m_nRule |
Scanner for SQL92.
Definition at line 30 of file sqlscan.hxx.
OSQLScanner::OSQLScanner | ( | ) |
Definition at line 712 of file sqlflex.l.
References IN_SQLyyerror, and m_nCurrentPos.
|
inline |
|
static |
Definition at line 797 of file sqlflex.l.
References DATE.
Referenced by connectivity::OSQLParser::predicateTree().
|
static |
Definition at line 795 of file sqlflex.l.
Referenced by connectivity::OSQLParser::predicateTree().
|
inline |
Definition at line 50 of file sqlscan.hxx.
References m_sErrorMessage.
Referenced by connectivity::OSQLParser::predicateTree().
|
static |
Definition at line 794 of file sqlflex.l.
Referenced by connectivity::OSQLParser::predicateTree().
IParseContext::InternationalKeyCode OSQLScanner::getInternationalTokenID | ( | const char * | sToken | ) | const |
Definition at line 789 of file sqlflex.l.
References connectivity::IParseContext::getIntlKeyCode(), m_bInternational, m_pContext, and connectivity::IParseContext::None.
Referenced by gatherName(), and gatherNamePre().
|
static |
Definition at line 796 of file sqlflex.l.
References SQL.
Referenced by connectivity::OSQLParser::predicateTree().
|
inline |
|
static |
Definition at line 798 of file sqlflex.l.
References STRING.
Referenced by connectivity::OSQLParser::predicateTree().
void OSQLScanner::prepareScan | ( | const OUString & | rNewStatement, |
const IParseContext * | pContext, | ||
bool | bInternational | ||
) |
Definition at line 768 of file sqlflex.l.
References BEGIN, m_bInternational, m_nCurrentPos, m_nRule, m_pContext, m_sErrorMessage, m_sStatement, and pq_sdbc_driver::OUStringToOString().
Referenced by connectivity::OSQLParser::predicateTree().
|
inline |
Definition at line 57 of file sqlscan.hxx.
References m_nRule.
Referenced by connectivity::OSQLParser::predicateTree().
void OSQLScanner::setScanner | ( | bool | _bNull = false | ) |
Definition at line 799 of file sqlflex.l.
References xxx_pGLOBAL_SQLSCAN.
Referenced by connectivity::OSQLParser::OSQLParser(), and connectivity::OSQLParser::~OSQLParser().
void OSQLScanner::SQLyyerror | ( | char const * | fmt | ) |
Definition at line 726 of file sqlflex.l.
References ch, checkeof(), IN_SQLyyerror, m_nCurrentPos, m_pContext, m_sErrorMessage, and m_sStatement.
Referenced by do_fatal_error().
sal_Int32 OSQLScanner::SQLyygetc | ( | void | ) |
Definition at line 781 of file sqlflex.l.
References m_nCurrentPos, m_sStatement, and nPos.
|
private |
Definition at line 37 of file sqlscan.hxx.
Referenced by getInternationalTokenID(), and prepareScan().
|
private |
Definition at line 36 of file sqlscan.hxx.
Referenced by GetCurrentPos(), prepareScan(), SQLyyerror(), and SQLyygetc().
|
private |
Definition at line 38 of file sqlscan.hxx.
Referenced by prepareScan(), and SetRule().
|
private |
Definition at line 32 of file sqlscan.hxx.
Referenced by getInternationalTokenID(), prepareScan(), and SQLyyerror().
|
private |
Definition at line 34 of file sqlscan.hxx.
Referenced by getErrorMessage(), prepareScan(), and SQLyyerror().
|
private |
Definition at line 33 of file sqlscan.hxx.
Referenced by getStatement(), prepareScan(), SQLyyerror(), and SQLyygetc().