20 #include <cudf/strings/regex/flags.hpp>
23 #include <rmm/mr/device/per_device_resource.hpp>
60 std::optional<size_type> max_replace_count = std::nullopt,
62 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
82 std::vector<std::string>
const& patterns,
86 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
109 std::string_view replacement,
111 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
An owning class to represent a string in device memory.
Given a column-view of strings type, an instance of this class provides a wrapper on this compound co...
Class definition for cudf::column.
rmm::cuda_stream_view const get_default_stream()
Get the current default stream.
std::unique_ptr< column > replace_with_backrefs(strings_column_view const &input, regex_program const &prog, std::string_view replacement, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
For each string, replaces any character sequence matching the given regex using the replacement templ...
std::unique_ptr< column > replace_re(strings_column_view const &input, regex_program const &prog, string_scalar const &replacement=string_scalar(""), std::optional< size_type > max_replace_count=std::nullopt, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource())
For each string, replaces any character sequence matching the given regex with the provided replaceme...
Class definitions for cudf::scalar.
Class definition for cudf::strings_column_view.