Class Scanner
public class Scanner
- Inheritance
-
Scanner
- Inherited Members
Methods
CurLine(ScannerHandle)
Calls native method g_scanner_cur_line.
public static extern uint CurLine(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
CurPosition(ScannerHandle)
Calls native method g_scanner_cur_position.
public static extern uint CurPosition(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
CurToken(ScannerHandle)
Calls native method g_scanner_cur_token.
public static extern TokenType CurToken(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- TokenType
Transfer ownership: None Nullable: False
CurValue(ScannerHandle)
Calls native method g_scanner_cur_value.
public static extern TokenValueData CurValue(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- TokenValueData
Transfer ownership: None Nullable: False
Destroy(ScannerHandle)
Calls native method g_scanner_destroy.
public static extern void Destroy(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Eof(ScannerHandle)
Calls native method g_scanner_eof.
public static extern bool Eof(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- bool
Transfer ownership: None Nullable: False
GetNextToken(ScannerHandle)
Calls native method g_scanner_get_next_token.
public static extern TokenType GetNextToken(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- TokenType
Transfer ownership: None Nullable: False
InputFile(ScannerHandle, int)
Calls native method g_scanner_input_file.
public static extern void InputFile(ScannerHandle scanner, int inputFd)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
inputFd
intTransfer ownership: None Nullable: False
InputText(ScannerHandle, NonNullableUtf8StringHandle, uint)
Calls native method g_scanner_input_text.
public static extern void InputText(ScannerHandle scanner, NonNullableUtf8StringHandle text, uint textLen)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
text
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
textLen
uintTransfer ownership: None Nullable: False
LookupSymbol(ScannerHandle, NonNullableUtf8StringHandle)
Calls native method g_scanner_lookup_symbol.
public static extern IntPtr LookupSymbol(ScannerHandle scanner, NonNullableUtf8StringHandle symbol)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
symbol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
New(ScannerConfigHandle)
Calls native function g_scanner_new.
public static extern ScannerUnownedHandle New(ScannerConfigHandle configTempl)
Parameters
configTempl
ScannerConfigHandleTransfer ownership: None Nullable: False
Returns
- ScannerUnownedHandle
Transfer ownership: None Nullable: False
PeekNextToken(ScannerHandle)
Calls native method g_scanner_peek_next_token.
public static extern TokenType PeekNextToken(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
Returns
- TokenType
Transfer ownership: None Nullable: False
ScopeAddSymbol(ScannerHandle, uint, NonNullableUtf8StringHandle, IntPtr)
Calls native method g_scanner_scope_add_symbol.
public static extern void ScopeAddSymbol(ScannerHandle scanner, uint scopeId, NonNullableUtf8StringHandle symbol, IntPtr value)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
scopeId
uintTransfer ownership: None Nullable: False
symbol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
value
IntPtrTransfer ownership: None Nullable: True
ScopeForeachSymbol(ScannerHandle, uint, HFunc, IntPtr)
Calls native method g_scanner_scope_foreach_symbol.
public static extern void ScopeForeachSymbol(ScannerHandle scanner, uint scopeId, HFunc func, IntPtr userData)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
scopeId
uintTransfer ownership: None Nullable: False
func
HFuncTransfer ownership: None Nullable: False
userData
IntPtrTransfer ownership: None Nullable: True
ScopeLookupSymbol(ScannerHandle, uint, NonNullableUtf8StringHandle)
Calls native method g_scanner_scope_lookup_symbol.
public static extern IntPtr ScopeLookupSymbol(ScannerHandle scanner, uint scopeId, NonNullableUtf8StringHandle symbol)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
scopeId
uintTransfer ownership: None Nullable: False
symbol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
Returns
- IntPtr
Transfer ownership: None Nullable: True
ScopeRemoveSymbol(ScannerHandle, uint, NonNullableUtf8StringHandle)
Calls native method g_scanner_scope_remove_symbol.
public static extern void ScopeRemoveSymbol(ScannerHandle scanner, uint scopeId, NonNullableUtf8StringHandle symbol)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
scopeId
uintTransfer ownership: None Nullable: False
symbol
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
SetScope(ScannerHandle, uint)
Calls native method g_scanner_set_scope.
public static extern uint SetScope(ScannerHandle scanner, uint scopeId)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
scopeId
uintTransfer ownership: None Nullable: False
Returns
- uint
Transfer ownership: None Nullable: False
SyncFileOffset(ScannerHandle)
Calls native method g_scanner_sync_file_offset.
public static extern void SyncFileOffset(ScannerHandle scanner)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
UnexpToken(ScannerHandle, TokenType, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, NonNullableUtf8StringHandle, int)
Calls native method g_scanner_unexp_token.
public static extern void UnexpToken(ScannerHandle scanner, TokenType expectedToken, NonNullableUtf8StringHandle identifierSpec, NonNullableUtf8StringHandle symbolSpec, NonNullableUtf8StringHandle symbolName, NonNullableUtf8StringHandle message, int isError)
Parameters
scanner
ScannerHandleTransfer ownership: None Nullable: False
expectedToken
TokenTypeTransfer ownership: None Nullable: False
identifierSpec
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
symbolSpec
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
symbolName
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
message
NonNullableUtf8StringHandleTransfer ownership: None Nullable: False
isError
intTransfer ownership: None Nullable: False