0.5.4
C++ to UML diagram generator based on Clang
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
YAML::convert< string_or_regex > Struct Reference

Detailed Description

Definition at line 476 of file yaml_decoders.cc.

Static Public Member Functions

static bool decode (const Node &node, string_or_regex &rhs)
 

Member Function Documentation

◆ decode()

static bool YAML::convert< string_or_regex >::decode ( const Node &  node,
string_or_regex &  rhs 
)
inlinestatic

Definition at line 477 of file yaml_decoders.cc.

478 {
479 using namespace std::string_literals;
480 if (node.IsMap()) {
481 auto pattern = node["r"].as<std::string>();
482 auto rx = std::regex(pattern);
483 rhs = string_or_regex{std::move(rx), std::move(pattern)};
484 }
485 else {
486 rhs = string_or_regex{node.as<std::string>()};
487 }
488
489 return true;
490 }

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