added support for UTF-8

now the UTF-8 is a default charset


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@677 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-11-21 00:19:17 +00:00
parent f1f0fa34cb
commit 8e72a820dd
153 changed files with 4270 additions and 2784 deletions

View File

@@ -15,64 +15,66 @@
namespace Stats
{
using TemplatesFunctions::Info;
extern long current_item_id;
extern Stats stats;
void stats_from(Ezc::Info & i)
void stats_from(Info & i)
{
i.out << DateToStrWithoutHours(stats.stats_start);
}
void stats_all(Ezc::Info & i)
void stats_all(Info & i)
{
i.out << stats.global_all;
}
void stats_unique(Ezc::Info & i)
void stats_unique(Info & i)
{
i.out << stats.global_unique;
}
void stats_google(Ezc::Info & i)
void stats_google(Info & i)
{
i.out << stats.global_google;
}
void stats_yahoo(Ezc::Info & i)
void stats_yahoo(Info & i)
{
i.out << stats.global_yahoo;
}
void stats_bing(Ezc::Info & i)
void stats_bing(Info & i)
{
i.out << stats.global_bing;
}
void stats_item_all(Ezc::Info & i)
void stats_item_all(Info & i)
{
i.out << stats.stats_tab[current_item_id].all;
}
void stats_item_google(Ezc::Info & i)
void stats_item_google(Info & i)
{
i.out << stats.stats_tab[current_item_id].google;
}
void stats_item_yahoo(Ezc::Info & i)
void stats_item_yahoo(Info & i)
{
i.out << stats.stats_tab[current_item_id].yahoo;
}
void stats_item_bing(Ezc::Info & i)
void stats_item_bing(Info & i)
{
i.out << stats.stats_tab[current_item_id].bing;
}
@@ -82,7 +84,8 @@ void stats_item_bing(Ezc::Info & i)
void CreateFunctions(PluginInfo & info)
{
Ezc::Functions * fun = reinterpret_cast<Ezc::Functions*>(info.p1);
typedef Ezc::Functions<TextStream<std::wstring> > Fun;
Fun * fun = reinterpret_cast<Fun*>(info.p1);
fun->Insert("stats_from", stats_from);