diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-23 19:59:58 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-23 19:59:58 +0000 |
commit | a38dd450bed029084c79d4a6a77dc5b375af6a08 (patch) | |
tree | eef965d24b5fe150e6ae8ee164ff5dd975f96b74 | |
parent | Add methods for getting recent news and searching news. (diff) | |
download | gentoobrowse-api-a38dd450bed029084c79d4a6a77dc5b375af6a08.tar.bz2 gentoobrowse-api-a38dd450bed029084c79d4a6a77dc5b375af6a08.tar.xz gentoobrowse-api-a38dd450bed029084c79d4a6a77dc5b375af6a08.zip |
Simplified escape sequence handling
-rw-r--r-- | gentoobrowse-api/service/unpackPqTextArray.ll | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gentoobrowse-api/service/unpackPqTextArray.ll b/gentoobrowse-api/service/unpackPqTextArray.ll index 9c53157..e4b0ccd 100644 --- a/gentoobrowse-api/service/unpackPqTextArray.ll +++ b/gentoobrowse-api/service/unpackPqTextArray.ll @@ -49,17 +49,7 @@ char [^"] BEGIN(AFTER); } <QUOTED>{esc} { - switch (*(YYText() + 1)) { - case '"': - list.back().push_back('"'); - break; - case '\\': - list.back().push_back('\\'); - break; - case 'n': - list.back().push_back('\n'); - break; - } + list.back().push_back(*(YYText() + 1)); } <QUOTED>{char} { list.back().append(YYText()); |