[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.cpp
From: |
Philippe Plantier |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.cpp |
Date: |
Wed, 24 Aug 2005 17:21:56 -0400 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Philippe Plantier <address@hidden> 05/08/24 21:21:55
Modified files:
src/serialization: string_utils.cpp
Log message:
The escaping routine should also escape the = character.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/serialization/string_utils.cpp.diff?tr1=1.24&tr2=1.25&r1=text&r2=text
Patches:
Index: wesnoth/src/serialization/string_utils.cpp
diff -u wesnoth/src/serialization/string_utils.cpp:1.24
wesnoth/src/serialization/string_utils.cpp:1.25
--- wesnoth/src/serialization/string_utils.cpp:1.24 Sun Jul 24 20:46:43 2005
+++ wesnoth/src/serialization/string_utils.cpp Wed Aug 24 21:21:55 2005
@@ -1,4 +1,4 @@
-/* $Id: string_utils.cpp,v 1.24 2005/07/24 20:46:43 j_daniel Exp $ */
+/* $Id: string_utils.cpp,v 1.25 2005/08/24 21:21:55 gruikya Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Copyright (C) 2005 by Guillaume Melquiond <address@hidden>
@@ -235,12 +235,12 @@
//prepend all special characters with a backslash
//special characters are:
-//address@hidden,\*
+//address@hidden,\*=
std::string &escape(std::string &str)
{
std::string::size_type pos = 0;
do {
- pos = str.find_first_of("address@hidden,\\*", pos);
+ pos = str.find_first_of("address@hidden,\\*=", pos);
if (pos == std::string::npos)
break;
str.insert(pos, 1, '\\');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.cpp,
Philippe Plantier <=