TStringView::IsValidIndex

Tests if index is valid, i.e. greater than or equal to zero, and less than the number of characters in the string view.