From 2bae54256b2b87040ab6ae2bc1f1ba82f68d543a Mon Sep 17 00:00:00 2001 From: Jens Heuschkel Date: Mon, 21 Nov 2016 14:39:34 +0100 Subject: made escape function more vhdl friendly --- src/uscxml/util/String.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uscxml/util/String.cpp b/src/uscxml/util/String.cpp index 24c7d42..f189140 100644 --- a/src/uscxml/util/String.cpp +++ b/src/uscxml/util/String.cpp @@ -34,7 +34,7 @@ std::string escapedMacro(std::string const& s) { returnValue += c; } else { - returnValue += "__"; + returnValue += "_"; switch(c) { case '"': returnValue += "COLON"; break; case '\\': returnValue += "BACHSLASH"; break; @@ -47,7 +47,7 @@ std::string escapedMacro(std::string const& s) { returnValue += hexdig[c >> 4]; returnValue += hexdig[c & 0xF]; } - returnValue += "__"; + returnValue += "_"; } } return returnValue; -- cgit v0.12