baml.regex._index_of_from

(internal) Offset search for callback replacement; returns an absolute codepoint index without constructing the remaining suffix. An offset outside `[0, length]` returns null, including for an empty search.

Reference version

Signature

function baml.regex._index_of_from(
haystack: string,
search: string,
start: int
) -> int | null throws never

(internal) Offset search for callback replacement; returns an absolute codepoint index without constructing the remaining suffix. An offset outside [0, length] returns null, including for an empty search.

Source:<builtin>/baml/ns_regex/regex.bamlbytes 14492–14605