Luna::BasicString::find

usize find(value_type ch, usize pos=0) const

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

Parameters

  • in ch

    The character to search for.

  • in pos

    The index at which to start the search.

Return value

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