Str.strrstrLen

Searches the string @haystack for the last occurrence of the string @needle, limiting the length of the search to @haystack_len.

struct Str
static
string
strrstrLen
(
string haystack
,
ptrdiff_t haystackLen
,
string needle
)

Parameters

haystack string

a nul-terminated string

haystackLen ptrdiff_t

the maximum length of @haystack in bytes. A length of -1 can be used to mean "search the entire string", like g_strrstr().

needle string

the nul-terminated string to search for

Return Value

Type: string

a pointer to the found occurrence, or %NULL if not found.

Meta