Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::RegexpExtractAllFun Struct Reference

Static Public Member Functions

static ScalarFunctionSet GetFunctions ()

Static Public Attributes

static constexpr const char * Name = "regexp_extract_all"
static constexpr const char * Parameters = "string,regex,group,options"
static constexpr const char * Description = "Finds non-overlapping occurrences of the `regex` in the `string` and returns the corresponding values of the capturing `group`. A set of optional regex `options` can be set."
static constexpr const char * Example = "regexp_extract_all('Peter: 33, Paul:14', '(\\w+):\\s*(\\d+)', 2)"
static constexpr const char * Categories = "regex"

Member Function Documentation

◆ GetFunctions()

ScalarFunctionSet duckdb::RegexpExtractAllFun::GetFunctions ( )
static
234860 {
234861 ScalarFunctionSet regexp_extract_all("regexp_extract_all");
234862 regexp_extract_all.AddFunction(ScalarFunction(
234863 {LogicalType::VARCHAR, LogicalType::VARCHAR}, LogicalType::LIST(LogicalType::VARCHAR),
234864 RegexpExtractAll::Execute, RegexpExtractAll::Bind, nullptr, nullptr, RegexpExtractAll::InitLocalState,
234865 LogicalType::INVALID, FunctionStability::CONSISTENT, FunctionNullHandling::SPECIAL_HANDLING));
234866 regexp_extract_all.AddFunction(ScalarFunction(
234867 {LogicalType::VARCHAR, LogicalType::VARCHAR, LogicalType::INTEGER}, LogicalType::LIST(LogicalType::VARCHAR),
234868 RegexpExtractAll::Execute, RegexpExtractAll::Bind, nullptr, nullptr, RegexpExtractAll::InitLocalState,
234869 LogicalType::INVALID, FunctionStability::CONSISTENT, FunctionNullHandling::SPECIAL_HANDLING));
234870 regexp_extract_all.AddFunction(
234871 ScalarFunction({LogicalType::VARCHAR, LogicalType::VARCHAR, LogicalType::INTEGER, LogicalType::VARCHAR},
234872 LogicalType::LIST(LogicalType::VARCHAR), RegexpExtractAll::Execute, RegexpExtractAll::Bind,
234873 nullptr, nullptr, RegexpExtractAll::InitLocalState, LogicalType::INVALID,
234874 FunctionStability::CONSISTENT, FunctionNullHandling::SPECIAL_HANDLING));
234875 // Struct multi-match variant(s): pattern must be constant due to bind-time struct shape inference
234876 regexp_extract_all.AddFunction(
234877 ScalarFunction({LogicalType::VARCHAR, LogicalType::VARCHAR, LogicalType::LIST(LogicalType::VARCHAR)},
234878 LogicalType::LIST(LogicalType::VARCHAR), // temporary, replaced in bind
234879 RegexpExtractAllStruct::Execute, RegexpExtractAllStruct::Bind, nullptr, nullptr,
234880 RegexpExtractAllStruct::InitLocalState, LogicalType::INVALID, FunctionStability::CONSISTENT,
234881 FunctionNullHandling::SPECIAL_HANDLING));
234882 regexp_extract_all.AddFunction(ScalarFunction(
234883 {LogicalType::VARCHAR, LogicalType::VARCHAR, LogicalType::LIST(LogicalType::VARCHAR), LogicalType::VARCHAR},
234884 LogicalType::LIST(LogicalType::VARCHAR), // temporary, replaced in bind
234885 RegexpExtractAllStruct::Execute, RegexpExtractAllStruct::Bind, nullptr, nullptr,
234886 RegexpExtractAllStruct::InitLocalState, LogicalType::INVALID, FunctionStability::CONSISTENT,
234887 FunctionNullHandling::SPECIAL_HANDLING));
234888 return (regexp_extract_all);
234889}

The documentation for this struct was generated from the following file: