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::RegexLocalState Struct Reference
Inheritance diagram for duckdb::RegexLocalState:
Collaboration diagram for duckdb::RegexLocalState:

Public Member Functions

 RegexLocalState (RegexpBaseBindData &info, bool extract_all=false)
Public Member Functions inherited from duckdb::FunctionLocalState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

RE2 constant_pattern
RegexStringPieceArgs group_buffer
 Used by regexp_extract_all to pre-allocate the args.

Constructor & Destructor Documentation

◆ RegexLocalState()

duckdb::RegexLocalState::RegexLocalState ( RegexpBaseBindData & info,
bool extract_all = false )
inlineexplicit
233857 : constant_pattern(duckdb_re2::StringPiece(info.constant_string.c_str(), info.constant_string.size()),
233858 info.options) {
233859 if (!constant_pattern.ok()) {
233860 throw InvalidInputException(constant_pattern.error());
233861 }
233862 if (extract_all) {
233863 auto group_count_p = constant_pattern.NumberOfCapturingGroups();
233864 if (group_count_p != -1) {
233865 group_buffer.Init(NumericCast<idx_t>(group_count_p));
233866 }
233867 }
233868 D_ASSERT(info.constant_pattern);
233869 }
RegexStringPieceArgs group_buffer
Used by regexp_extract_all to pre-allocate the args.
Definition duckdb.cpp:233873

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