INNER CODE UNIT · C++
RemapTable
SasLuca/rayfork · devutils/amalgamate-src/Amalgamate.cpp:40
class RemapTable : public std::unordered_map <std::string, std::string>
{
public:
RemapTable () : m_pattern (
"[ \t]*/\\*[ \t]*@remap[ \t]+\"([^\"]+)\"[ \t]+\"([^\"]+)\"[ \t]*\\*/[ \t]*")
{
}
// Returns true if the line was a @remap directive
//
bool processLine (std::string const& line)
{
bool wasRemap = false;
std::match_results <std::string::const_iterator> result;
if (std::regex_match (line, result, m_pattern))
{