From cb2ba948d38400b39791a67b0d55e87871ac56f3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 23 Dec 2015 19:59:58 +0000 Subject: Simplified escape sequence handling --- gentoobrowse-api/service/unpackPqTextArray.ll | 12 +----------- 1 file changed, 1 insertion(+), 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); } {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)); } {char} { list.back().append(YYText()); -- cgit v1.2.3