| 枚举 | 函数
正则表达式

结构体  cudf::strings::regex_program
 正则表达式程序类。 更多...
 

枚举

枚举  cudf::strings::regex_flags : uint32_t {
  cudf::strings::DEFAULT = 0 , cudf::strings::MULTILINE = 8 , cudf::strings::DOTALL = 16 , cudf::strings::ASCII = 256 ,
  cudf::strings::EXT_NEWLINE = 512
}
 正则表达式标志。 更多...
 
枚举类  cudf::strings::capture_groups : uint32_t { cudf::strings::EXTRACT , cudf::strings::NON_CAPTURE }
 捕获组设置。 更多...
 

函数

constexpr bool cudf::strings::is_multiline (regex_flags const f)
 如果给定的标志包含 MULTILINE 则返回 true。 更多...
 
constexpr bool cudf::strings::is_dotall (regex_flags const f)
 如果给定的标志包含 DOTALL 则返回 true。 更多...
 
constexpr bool cudf::strings::is_ascii (regex_flags const f)
 如果给定的标志包含 ASCII 则返回 true。 更多...
 
constexpr bool cudf::strings::is_ext_newline (regex_flags const f)
 如果给定的标志包含 EXT_NEWLINE 则返回 true。 更多...
 

详细描述

枚举类型文档

◆ capture_groups (捕获组)

枚举 cudf::strings::capture_groups : uint32_t

捕获组设置。

用于处理包含捕获组的正则表达式模式。这些设置可以用来优化生成的正则表达式指令,特别是当捕获组不需要提取时。

枚举成员
EXTRACT (提取) 

正常处理捕获组以便提取。

NON_CAPTURE (非捕获) 

将所有捕获组转换为非捕获组。

定义位于文件 flags.hpp96 行。

◆ regex_flags (正则表达式标志)

枚举 cudf::strings::regex_flags : uint32_t

正则表达式标志。

这些类型可以使用按位或运算符组合。选择这些值是为了为未来的标志预留空间,并与 Python 的标志值匹配。

枚举成员
DEFAULT (默认) 

默认

MULTILINE (多行模式) 

'^' 和 '$' 尊重换行符

DOTALL (点号匹配所有字符) 

'.' 匹配包含换行符

ASCII (ASCII模式) 

匹配内置字符类时仅使用 ASCII

EXT_NEWLINE (扩展换行符) 

换行符匹配扩展字符

定义位于文件 flags.hpp37 行。

函数文档

◆ is_ascii()

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

如果给定的标志包含 ASCII 则返回 true。

参数
f要检查的正则表达式标志
返回值
如果 f 包含 ASCII 则为 true

定义位于文件 flags.hpp73 行。

◆ is_dotall()

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

如果给定的标志包含 DOTALL 则返回 true。

参数
f要检查的正则表达式标志
返回值
如果 f 包含 DOTALL 则为 true

定义位于文件 flags.hpp62 行。

◆ is_ext_newline()

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

如果给定的标志包含 EXT_NEWLINE 则返回 true。

参数
f要检查的正则表达式标志
返回值
如果 f 包含 EXT_NEWLINE 则为 true

定义位于文件 flags.hpp84 行。

◆ is_multiline()

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

如果给定的标志包含 MULTILINE 则返回 true。

参数
f要检查的正则表达式标志
返回值
如果 f 包含 MULTILINE 则为 true

定义位于文件 flags.hpp51 行。