[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.hpp
From: |
Jon Daniel |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.hpp |
Date: |
Thu, 03 Mar 2005 22:31:43 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <address@hidden> 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 <address@hidden>
Copyright (C) 2005 by Guillaume Melquiond <address@hidden>
@@ -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);
- [Wesnoth-cvs-commits] wesnoth/src/serialization string_utils.hpp,
Jon Daniel <=