diff options
author | Jens Heuschkel <heuschkel@tk.tu-darmstadt.de> | 2016-11-21 13:39:34 (GMT) |
---|---|---|
committer | Jens Heuschkel <heuschkel@tk.tu-darmstadt.de> | 2016-11-21 13:39:34 (GMT) |
commit | 2bae54256b2b87040ab6ae2bc1f1ba82f68d543a (patch) | |
tree | e520ab8376e8b095bba035621ed86517e3f807c5 | |
parent | 7b0a98bca90248aaaa25cac0f5263617ba5b7e4b (diff) | |
download | uscxml-2bae54256b2b87040ab6ae2bc1f1ba82f68d543a.zip uscxml-2bae54256b2b87040ab6ae2bc1f1ba82f68d543a.tar.gz uscxml-2bae54256b2b87040ab6ae2bc1f1ba82f68d543a.tar.bz2 |
made escape function more vhdl friendly
-rw-r--r-- | src/uscxml/util/String.cpp | 4 |
1 files 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; |