aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/stats.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-01-28 11:32:39 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:46 +0100
commit271c7cabf5e16a1afed560b9f707b3955b3ec725 (patch)
tree026b6678c6973205e32698af795830d58c5121d6 /src/base/stats.hpp
parent2adaea29500b412c342838e22df2f8b4ac2eb02d (diff)
downloadusdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.tar.gz
usdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.tar.xz
usdx-271c7cabf5e16a1afed560b9f707b3955b3ec725.zip
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
Diffstat (limited to '')
-rw-r--r--src/base/stats.hpp30
1 files changed, 15 insertions, 15 deletions
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);