summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-23 19:59:58 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2015-12-23 19:59:58 +0000
commitcb2ba948d38400b39791a67b0d55e87871ac56f3 (patch)
treeeef965d24b5fe150e6ae8ee164ff5dd975f96b74
parentAdd methods for getting recent news and searching news. (diff)
downloadgentoobrowse-api-cb2ba948d38400b39791a67b0d55e87871ac56f3.tar.bz2
gentoobrowse-api-cb2ba948d38400b39791a67b0d55e87871ac56f3.tar.xz
gentoobrowse-api-cb2ba948d38400b39791a67b0d55e87871ac56f3.zip
Simplified escape sequence handling
-rw-r--r--gentoobrowse-api/service/unpackPqTextArray.ll12
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());