Regex program class.
More...
#include <regex_program.hpp>
|
struct | regex_device_builder |
|
Regex program class.
Create an instance from a regex pattern and use it to call the appropriate strings APIs. An instance can be reused.
See the Regex Features page for details on patterns and APIs that support regex.
Definition at line 40 of file regex_program.hpp.
◆ regex_program()
cudf::strings::regex_program::regex_program |
( |
regex_program && |
other | ) |
|
Move constructor.
- Parameters
-
◆ capture()
Return the capture_groups used to create this instance.
- Returns
- capture groups setting
◆ compute_working_memory_size()
std::size_t cudf::strings::regex_program::compute_working_memory_size |
( |
int32_t |
num_strings | ) |
const |
Return the size of the working memory for the regex execution.
- Parameters
-
num_strings | Number of strings for computation |
- Returns
- Size of the working memory in bytes
◆ create()
Create a program from a pattern.
- Exceptions
-
- Parameters
-
pattern | Regex pattern |
flags | Regex flags for interpreting special characters in the pattern |
capture | Controls how capture groups in the pattern are used |
- Returns
- Instance of this object
◆ flags()
regex_flags cudf::strings::regex_program::flags |
( |
| ) |
const |
Return the regex_flags used to create this instance.
- Returns
- regex flags setting
◆ groups_count()
int32_t cudf::strings::regex_program::groups_count |
( |
| ) |
const |
Return the number of capture groups in this instance.
- Returns
- Number of groups
◆ instructions_count()
int32_t cudf::strings::regex_program::instructions_count |
( |
| ) |
const |
Return the number of instructions in this instance.
- Returns
- Number of instructions
◆ operator=()
Move operator assignment.
- Parameters
-
- Returns
- this object
◆ pattern()
std::string cudf::strings::regex_program::pattern |
( |
| ) |
const |
Return the pattern used to create this instance.
- Returns
- regex pattern as a string
The documentation for this struct was generated from the following file: