String module

find_index_of_any_from_right

procedure · 1 overloadSource

The index of the last byte of s that is in bytes, or -1 when there is none.

find_index_of_any_from_right :: (s: string, bytes: string) -> s64

Parameters

s: string
bytes: string

Returns

s64
ExampleOpen in playground ↗
assert(find_index_of_any_from_right("dir\\sub/file", "/\\") == 7);

See also