Byte_Search module

find_last_any

procedure · 2 overloadsSource

The last of either byte before end, or -1.

find_last_any :: (text: string, a: u8, b: u8, end := -1) -> int

The last of either byte before end, or -1.

Parameters

text: string
a: u8
b: u8
end := -1

Returns

int
find_last_any :: (text: string, a: u8, b: u8, c: u8, end := -1) -> int

The last of any of the three bytes before end, or -1.

Parameters

text: string
a: u8
b: u8
c: u8
end := -1

Returns

int

See also