strrstr

fun strrstr(haystack: String, needle: String): String?

Searches the string @haystack for the last occurrence of the string @needle.

The fact that this function returns gchar * rather than const gchar * is a historical artifact.

Return

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

Parameters

haystack

a string to search in

needle

the string to search for