The last of either byte before end, or -1.
Byte_Search :: #import "Extensions/Byte_Search";
assert(Byte_Search.find_last_any("dir\\file/name", #char "/", #char "\\") == 8);find_last_any :: (text: string, a: u8, b: u8, end := -1) -> int
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