Classes | Enumerations | Functions
Regex

Classes

struct  cudf::strings::regex_program
 Regex program class. More...
 

Enumerations

enum  cudf::strings::regex_flags : uint32_t { cudf::strings::DEFAULT = 0 , cudf::strings::MULTILINE = 8 , cudf::strings::DOTALL = 16 , cudf::strings::ASCII = 256 }
 Regex flags. More...
 
enum class  cudf::strings::capture_groups : uint32_t { cudf::strings::EXTRACT , cudf::strings::NON_CAPTURE }
 Capture groups setting. More...
 

Functions

constexpr bool cudf::strings::is_multiline (regex_flags const f)
 Returns true if the given flags contain MULTILINE. More...
 
constexpr bool cudf::strings::is_dotall (regex_flags const f)
 Returns true if the given flags contain DOTALL. More...
 
constexpr bool cudf::strings::is_ascii (regex_flags const f)
 Returns true if the given flags contain ASCII. More...
 

Detailed Description

Enumeration Type Documentation

◆ capture_groups

enum cudf::strings::capture_groups : uint32_t
strong

Capture groups setting.

For processing a regex pattern containing capture groups. These can be used to optimize the generated regex instructions where the capture groups do not require extracting the groups.

Enumerator
EXTRACT 

Capture groups processed normally for extract.

NON_CAPTURE 

Convert all capture groups to non-capture groups.

Definition at line 84 of file flags.hpp.

◆ regex_flags

enum cudf::strings::regex_flags : uint32_t

Regex flags.

These types can be or'd to combine them. The values are chosen to leave room for future flags and to match the Python flag values.

Enumerator
DEFAULT 

default

MULTILINE 

the '^' and '$' honor new-line characters

DOTALL 

the '.' matching includes new-line characters

ASCII 

use only ASCII when matching built-in character classes

Definition at line 37 of file flags.hpp.

Function Documentation

◆ is_ascii()

constexpr bool cudf::strings::is_ascii ( regex_flags const  f)
constexpr

Returns true if the given flags contain ASCII.

Parameters
fRegex flags to check
Returns
true if f includes ASCII

Definition at line 72 of file flags.hpp.

◆ is_dotall()

constexpr bool cudf::strings::is_dotall ( regex_flags const  f)
constexpr

Returns true if the given flags contain DOTALL.

Parameters
fRegex flags to check
Returns
true if f includes DOTALL

Definition at line 61 of file flags.hpp.

◆ is_multiline()

constexpr bool cudf::strings::is_multiline ( regex_flags const  f)
constexpr

Returns true if the given flags contain MULTILINE.

Parameters
fRegex flags to check
Returns
true if f includes MULTILINE

Definition at line 50 of file flags.hpp.