[rkward-cvs] SF.net SVN: rkward:[3679] trunk/rkward/rkward/misc/rkcommonfunctions.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Mon Jun 6 13:47:16 UTC 2011


Revision: 3679
          http://rkward.svn.sourceforge.net/rkward/?rev=3679&view=rev
Author:   tfry
Date:     2011-06-06 13:47:16 +0000 (Mon, 06 Jun 2011)

Log Message:
-----------
Also (un)-escape tabs

Modified Paths:
--------------
    trunk/rkward/rkward/misc/rkcommonfunctions.cpp

Modified: trunk/rkward/rkward/misc/rkcommonfunctions.cpp
===================================================================
--- trunk/rkward/rkward/misc/rkcommonfunctions.cpp	2011-06-06 13:46:27 UTC (rev 3678)
+++ trunk/rkward/rkward/misc/rkcommonfunctions.cpp	2011-06-06 13:47:16 UTC (rev 3679)
@@ -171,6 +171,7 @@
 			QChar c = in[i];
 			if (c == '\\') out.append ("\\\\");
 			else if (c == '\n') out.append ("\\n");
+			else if (c == '\t') out.append ("\\t");
 			else if (c == '"') out.append ("\\\"");
 			else out.append (c);
 		}
@@ -188,6 +189,7 @@
 				if (i >= in.size ()) break;
 				c = in[i];
 				if (c == 'n') c = '\n';
+				if (c == 't') c = '\t';
 				else if (c == '"') c = '"';
 			}
 			out.append (c);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list