From 3f4158aa7ec1746bacc9c1a65d4422bed47e25a2 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 8 Jul 2007 18:43:13 +0000 Subject: [PATCH] added support for escape characters in SMC files --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401079 --- core/TextParsers.cpp | 39 ++++++++++++++++++++++++---- translations/common.phrases.txt | 2 +- translations/plugin.basecommands.txt | 21 +++++++++------ 3 files changed, 48 insertions(+), 14 deletions(-) diff --git a/core/TextParsers.cpp b/core/TextParsers.cpp index 2bee2732..1fd4ad6d 100644 --- a/core/TextParsers.cpp +++ b/core/TextParsers.cpp @@ -166,10 +166,36 @@ const char *FixupString(StringInfo &data) } #endif + /* Do some extra work on strings that have special quoted characters. */ if (data.special) { - //:TODO: this string has special tokens in it, like \, and we must - //resolve these before passing the string back to the app + char *outptr = data.ptr; + size_t len = data.end - data.ptr; + if (len >= 2) + { + for (size_t i=0; i