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

@@ -16,23 +16,32 @@
#include "localefilter.h"
#include "ezc.h"
#include "core/user.h"
#include "core/textstream.h"
namespace TemplatesFunctions
{
typedef Ezc::FunInfo<TextStream<std::wstring> > Info;
void HtmlEscape(TextStream<std::wstring> & out, const std::wstring & in);
void HtmlEscapeFormTxt(TextStream<std::wstring> & out, const std::wstring & in);
std::wstring HtmlEscape(const std::wstring & in);
std::wstring HtmlEscapeFormTxt(const std::wstring & in);
// table: [language][file]
typedef std::vector<std::vector<Ezc::Pattern> > Patterns;
void print_date_nice(Ezc::Info & i, const tm & rtm);
void print_user_name(Ezc::Info & i, const User * puser, const std::string & guest_name);
void print_date_nice(Info & i, const tm & rtm);
void print_user_name(Info & i, const User * puser, const std::wstring & guest_name);
int ParseCKeditorFun();
// those functions from here are used in the second thread too
void Read(Patterns & patterns, size_t pat, Locale & locale, LocaleFilter & locale_filter, const char * file, bool delete_white = false);
void Read(Patterns & patterns, size_t pat, Locale & locale, LocaleFilter & locale_filter, const wchar_t * file, bool delete_white = false);
void ClearPatterns(Patterns & patterns, size_t len);