Text_Buffer module

find_text

procedure · 1 overloadsince 0.31.0Source

Search for needle from from; returns the offset of the first match or -1. Matches across pieces are found.

find_text :: (buffer: *Text_Buffer, needle: string, from: int = 0) -> int

Search for needle from from; returns the offset of the first match or -1. Matches across pieces are found.

Parameters

buffer: *Text_Buffer
needle: string
from: int

Returns

int

See also