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/stats.hpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'src/base/stats.hpp') diff --git a/src/base/stats.hpp b/src/base/stats.hpp index b3068024..d6bb48ad 100644 --- a/src/base/stats.hpp +++ b/src/base/stats.hpp @@ -69,7 +69,7 @@ namespace usdx /** * TODO */ - static int get_count(std::string query); + static int get_count(std::wstring query); public: /** @@ -111,27 +111,27 @@ namespace usdx class StatResultBestScores : public Stats { private: - std::string singer; + std::wstring singer; unsigned short score; unsigned short difficulty; - std::string song_artist; - std::string song_title; + std::wstring song_artist; + std::wstring song_title; time_t date; StatResultBestScores *next; StatResultBestScores( - char *singer, + wchar_t *singer, unsigned short score, unsigned short difficulty, - char* song_artist, - char* song_title, + wchar_t* song_artist, + wchar_t* song_title, time_t date); public: /** * TODO */ - StatResultBestScores(char* song_artist, char* song_title); + StatResultBestScores(wchar_t* song_artist, wchar_t* song_title); ~StatResultBestScores(void); @@ -145,12 +145,12 @@ namespace usdx class StatResultBestSingers : public Stats { private: - std::string singer; + std::wstring singer; unsigned short average_score; StatResultBestSingers *next; - StatResultBestSingers(char *singer, unsigned short average_score); + StatResultBestSingers(wchar_t *singer, unsigned short average_score); public: ~StatResultBestSingers(void); @@ -164,13 +164,13 @@ namespace usdx class StatResultMostSungSong : public Stats { private: - std::string song_artist; - std::string song_title; + std::wstring song_artist; + std::wstring song_title; unsigned short times_sung; StatResultMostSungSong *next; - StatResultMostSungSong(char* song_artist, char* song_title, unsigned short times_sung); + StatResultMostSungSong(wchar_t* song_artist, wchar_t* song_title, unsigned short times_sung); public: ~StatResultMostSungSong(void); @@ -184,12 +184,12 @@ namespace usdx class StatResultMostSungBand : public Stats { private: - std::string song_artist; + std::wstring song_artist; unsigned short times_sung; StatResultMostSungBand *next; - StatResultMostSungBand(char* song_artist, unsigned short times_sung); + StatResultMostSungBand(wchar_t* song_artist, unsigned short times_sung); public: ~StatResultMostSungBand(void); -- cgit v1.2.3