Luna::BasicString::find

usize find(const BasicString &str, usize pos=0) const

Finds the first occurrence of the specified character sequence in the string.

Parameters

  • in str

    The string that holds the character sequence to search.

  • in pos

    The index at which to start the search.

Return value

Returns the index of the first character of the found occurrence. Returns npos if no such occurrence is found.