DLiteScript

strings.find

Finds the first occurrence of a substring (alias for indexOf).

Examples

1
2
printf("%g\n", strings.find("hello world", "world")) // 6
printf("%g\n", strings.find("hello world", "xyz"))   // -1