From 271c7cabf5e16a1afed560b9f707b3955b3ec725 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 28 Jan 2010 11:32:39 +0100 Subject: converted all strings and chars to wstrings and wchar_ts all strings with displayable content are now the wide strings for proper unicode handling added boost dependency for proper reading unicode from files --- src/base/database.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/base/database.hpp') diff --git a/src/base/database.hpp b/src/base/database.hpp index ca13ec8c..2a320f45 100644 --- a/src/base/database.hpp +++ b/src/base/database.hpp @@ -62,13 +62,13 @@ namespace usdx * parameters and executing the statement. Need to be freed * with sqlite3_finalize. */ - sqlite3_stmt *sqlite_prepare(const std::string sqlStatement); + sqlite3_stmt *sqlite_prepare(const std::wstring sqlStatement); /** * Just a quick alias for sqlite_prepare, sqlite3_step and * sqlite3_finalize. */ - void sqlite_exec(const std::string sqlStatement); + void sqlite_exec(const std::wstring sqlStatement); /** * Check if the given table exists in the database. @@ -76,7 +76,7 @@ namespace usdx * @param table Name to check if exists * @return true, if table exists, false if not */ - const bool sqlite_table_exists(const std::string table); + const bool sqlite_table_exists(const std::wstring table); /** * Check if the given table has the given column by name. @@ -85,7 +85,7 @@ namespace usdx * @param column Name of the column to check if exists * @return true, if column exists in that table, false if not */ - const bool sqlite_table_contains_column(const std::string table, const std::string column); + const bool sqlite_table_contains_column(const std::wstring table, const std::wstring column); /** * Queries the user version from the sqlite database. This is a -- cgit v1.2.3