diff --git a/cpp/include/cudf/strings/regex/config.hpp b/cpp/include/cudf/strings/regex/config.hpp index 914c3917dfc..505b1cf2dc6 100644 --- a/cpp/include/cudf/strings/regex/config.hpp +++ b/cpp/include/cudf/strings/regex/config.hpp @@ -47,7 +47,7 @@ namespace cudf::strings { */ std::pair compute_regex_state_memory( strings_column_view const& input, - std::string const& pattern, + std::string_view pattern, regex_flags const flags = regex_flags::DEFAULT); /** @} */ // end of doxygen group diff --git a/cpp/src/strings/regex/config.cpp b/cpp/src/strings/regex/config.cpp index 62af4e10ede..ed732bb21bd 100644 --- a/cpp/src/strings/regex/config.cpp +++ b/cpp/src/strings/regex/config.cpp @@ -25,18 +25,18 @@ namespace cudf::strings { namespace detail { std::pair compute_regex_state_memory(strings_column_view const& input, - std::string const& pattern, + std::string_view pattern, regex_flags const flags, rmm::cuda_stream_view stream) { - auto d_prog = reprog_device::create(pattern, flags, stream); + auto const d_prog = reprog_device::create(pattern, flags, stream); return d_prog->compute_strided_working_memory(input.size()); } } // namespace detail std::pair compute_regex_state_memory(strings_column_view const& input, - std::string const& pattern, + std::string_view pattern, regex_flags const flags) { CUDF_FUNC_RANGE();