Foundry.TextIter

Fields

Name

Type

Access

Description

buffer

Foundry.TextBuffer

r

vtable

Foundry.TextIterVTable

r

Methods

backward_char ()

ends_line ()

forward_char ()

forward_line ()

get_line ()

get_line_offset ()

get_offset ()

get_slice (end)

init (buffer, vtable)

is_end ()

is_start ()

move_to_line_and_offset (line, line_offset)

set_offset (offset)

starts_line ()

Details

class Foundry.TextIter
backward_char()
Return type:

bool

ends_line()
Return type:

bool

forward_char()
Return type:

bool

forward_line()
Return type:

bool

get_line()
Return type:

int

get_line_offset()
Return type:

int

get_offset()
Return type:

int

get_slice(end)
Parameters:

end (Foundry.TextIter) –

Return type:

str

init(buffer, vtable)
Parameters:
is_end()
Return type:

bool

is_start()
Return type:

bool

move_to_line_and_offset(line, line_offset)
Parameters:
  • line (int) –

  • line_offset (int) –

Return type:

bool

set_offset(offset)
Parameters:

offset (int) –

starts_line()
Return type:

bool