string::find() has a 3-argument version, with the third argument
specifying the 'length of sequence of characters to match' (for a const
char* 1st argument, typically used when it is not null-terminated).
This change adds support for this by wrapping the search string and the search string length in absl::string_view.
clang-format: please reformat the code
- NewNeedleStr = std::string("absl::string_view(") + - NeedleExprCode.str() + ", " + NeedleLengthCode.str() + - ")"; + NewNeedleStr = std::string("absl::string_view(") + NeedleExprCode.str() + + ", " + NeedleLengthCode.str() + ")";