◆ 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: