Change string matchers, like HasSubstr, to accept `string_view` input if available. PiperOrigin-RevId: 315726484