BloombergLP::bdlpcre::RegEx::namedSubpatterns

Load into result the mapping between sub-pattern names and indices.

Synopsis

Declared in <bdlpcre_regex.h>

void
namedSubpatterns(bsl::vector<bsl::pair<std::string_view, int>>* result) const;

Description

Names are in alphabetical order. The behavior is undefined unless isPrepared() is true.

Parameters

NameDescription
resultreceives (name, index) pairs for named sub-patterns