CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <[EMAIL PROTECTED]> 05/03/04 03:31:42
Modified files:
src/serialization: string_utils.hpp
Log message:
Added a typedef std::vector<Uint16> ucs2_string because they are easy
to pass to SDL_ttf.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/serialization/string_utils.hpp.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: wesnoth/src/serialization/string_utils.hpp
diff -u wesnoth/src/serialization/string_utils.hpp:1.3
wesnoth/src/serialization/string_utils.hpp:1.4
--- wesnoth/src/serialization/string_utils.hpp:1.3 Thu Mar 3 21:52:40 2005
+++ wesnoth/src/serialization/string_utils.hpp Fri Mar 4 03:31:42 2005
@@ -1,4 +1,4 @@
-/* $Id: string_utils.hpp,v 1.3 2005/03/03 21:52:40 gruikya Exp $ */
+/* $Id: string_utils.hpp,v 1.4 2005/03/04 03:31:42 j_daniel Exp $ */
/*
Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
Copyright (C) 2005 by Guillaume Melquiond <[EMAIL PROTECTED]>
@@ -18,10 +18,15 @@
#include <map>
#include <string>
#include <vector>
+#include "SDL_types.h"
//the type we use to represent Unicode strings.
typedef std::vector<wchar_t> wide_string;
+//if we append a 0 to that one we can pass it to SDL_ttf
+//as a const Uint16*
+typedef std::vector<Uint16> ucs2_string;
+
namespace utils {
bool isnewline(char c);