Table of Contents

Class Scanner

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
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 ScannerHandle

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

Eof(ScannerHandle)

Calls native method g_scanner_eof.

public static extern bool Eof(ScannerHandle scanner)

Parameters

scanner ScannerHandle

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

inputFd int

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

text NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

textLen uint

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

symbol NonNullableUtf8StringHandle

Transfer 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 ScannerConfigHandle

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

scopeId uint

Transfer ownership: None Nullable: False

symbol NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

value IntPtr

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

scopeId uint

Transfer ownership: None Nullable: False

func HFunc

Transfer ownership: None Nullable: False

userData IntPtr

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

scopeId uint

Transfer ownership: None Nullable: False

symbol NonNullableUtf8StringHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

scopeId uint

Transfer ownership: None Nullable: False

symbol NonNullableUtf8StringHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

scopeId uint

Transfer 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 ScannerHandle

Transfer 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 ScannerHandle

Transfer ownership: None Nullable: False

expectedToken TokenType

Transfer ownership: None Nullable: False

identifierSpec NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

symbolSpec NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

symbolName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

message NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

isError int

Transfer ownership: None Nullable: False