Method String.Buffer()->_search()


Method _search

int(0..) search(String.Buffer from, int character, int|void start, int|void end)

Description

Search for a character in the buffer, starting the scan from start and ending at end (inclusive).

Returns

Returns to position in the buffer where the character was found on success, and UNDEFINED on failure.

See also

Stdio.Buffer()->_search(), search(), lfun::_search()


Method _search

int(0..) search(String.Buffer from, string substring, int|void start, int|void end)

Description

Search for a substring in the buffer, starting the scan from start and ending at end (inclusive).

Returns

Returns to position in the buffer where the substring was found on success, and UNDEFINED on failure.

See also

Stdio.Buffer()->_search(), search(), lfun::_search()