MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / regexMatches

Function regexMatches

src/attributes.cpp:839–848  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

837 namespace {
838
839 Rcpp::List regexMatches(Rcpp::CharacterVector lines,
840 const std::string& regex)
841 {
842 Rcpp::Environment base("package:base");
843 Rcpp::Function regexec = base["regexec"];
844 Rcpp::Function regmatches = base["regmatches"];
845 Rcpp::RObject result = regexec(regex, lines);
846 Rcpp::List matches = regmatches(lines, result);
847 return matches;
848 }
849
850 template <typename Stream>
851 void readFile(const std::string& file, Stream& os) {

Callers 3

parseSourceDependenciesFunction · 0.85
parseEmbeddedRFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected