MetadataRegexHelpers.cc
Go to the documentation of this file.
2 
3 using namespace std::string_literals;
4 
5 std::regex
7 {
8  return std::regex{"(" + spec + "\\s*:\\s*)(:?<string>)"};
9 }
10 
11 void
13  std::string const& spec,
14  std::regex const& r)
15 {
16  str = std::regex_replace(str, r, "$1"s + spec);
17 }
std::regex regex_for_spec(std::string const &)
std::string string
Definition: nybbler.cc:12
void replace_type(std::string &str, std::string const &spec, std::regex const &r)
static QCString * s
Definition: config.cpp:1042
static QCString str