Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-38263 [C++]: Prefer to call string_view::data() instead of begin()…
… where a char pointer is expected (#38265) ### Rationale for this change The MSVC compiler doesn't seem to allow user code to assume `std::string_view::const_iterator` is `const char*`, so using only `re2::StringPiece` and preferring to call `.data()` instead of `.begin()` should make things more uniform across different compilers and STL implementations. ### What changes are included in this PR? - Using `re2::StringPiece` instead of `std::string_view` to interact with `re2` - Use `data()` instead of `begin()` where a `char*` is expected ### Are these changes tested? Yes, by existing tests. * Closes: #38263 Authored-by: Felipe Oliveira Carvalho <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
- Loading branch information