The part of s before the first byte that is in bytes, or all of s when there is none.
stop_at_any :: (s: string, bytes: string) -> string
Parameters
- s: string
- bytes: string
Returns
- string
assert(stop_at_any("name=value", "=:") == "name");The part of s before the first byte that is in bytes, or all of s when there is none.
stop_at_any :: (s: string, bytes: string) -> string
assert(stop_at_any("name=value", "=:") == "name");