How to determine the range of string in string in different languages?

Which languages have the function determining the range like this below from swift:

myString.range(of: anotherString)