[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: |
Fri, 04 Mar 2005 08:10:47 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Jon Daniel <address@hidden> 05/03/04 13:10:47
Modified files:
src/serialization: string_utils.hpp
Log message:
added typedef std::string utf8_string and typedef std::vector<wchar_t>
ucs4_string
to make the type of encoding clear. Feel free to use them or not.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/serialization/string_utils.hpp.diff?tr1=1.4&tr2=1.5&r1=text&r2=text
Patches:
Index: wesnoth/src/serialization/string_utils.hpp
diff -u wesnoth/src/serialization/string_utils.hpp:1.4
wesnoth/src/serialization/string_utils.hpp:1.5
--- wesnoth/src/serialization/string_utils.hpp:1.4 Fri Mar 4 03:31:42 2005
+++ wesnoth/src/serialization/string_utils.hpp Fri Mar 4 13:10:46 2005
@@ -1,4 +1,4 @@
-/* $Id: string_utils.hpp,v 1.4 2005/03/04 03:31:42 j_daniel Exp $ */
+/* $Id: string_utils.hpp,v 1.5 2005/03/04 13:10:46 j_daniel Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Copyright (C) 2005 by Guillaume Melquiond <address@hidden>
@@ -22,10 +22,11 @@
//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;
+typedef std::vector<wchar_t> ucs4_string;
+typedef std::string utf8_string;
namespace utils {