added: Patterns class (in templates)

ezc patterns are managed by this class
added: some work in groupitem plugin (not finished yet)
changed: ConfParser can read a string from memory now
         (need some testing yet)



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@757 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2011-08-25 23:53:49 +00:00
parent ee6500ac65
commit 5b8a9c0108
46 changed files with 2896 additions and 1715 deletions

View File

@@ -12,59 +12,14 @@
#include "misc.h"
#include "core/misc.h"
#include "core/request.h"
#include "core/user.h"
namespace TemplatesFunctions
{
/*
bool HtmlTryChar(TextStream<std::wstring> & out, wchar_t c)
{
if( c == '<' )
{
out << L"&lt;";
return true;
}
else
if( c == '>' )
{
out << L"&gt;";
return true;
}
else
if( c == '&' )
{
out << L"&amp;";
return true;
}
return false;
}
void HtmlEscape(TextStream<std::wstring> & out, const std::wstring & in)
{
std::wstring::const_iterator i;
for(i = in.begin() ; i != in.end() ; ++i)
{
if( !HtmlTryChar(out, *i) )
out << *i;
}
}
std::wstring HtmlEscape(const std::wstring & in)
{
TextStream<std::wstring> out;
HtmlEscape(out, in);
return out.Str();
}
*/
void HtmlEscapeFormTxt(HtmlTextStream & out, const std::wstring & in)
{
std::wstring::const_iterator i;
@@ -104,16 +59,7 @@ int was_enter = 0; // how many enteres there were before
out << R("</p>\n");
}
/*
std::wstring HtmlEscapeFormTxt(const std::wstring & in)
{
TextStream<std::wstring> out;
HtmlEscapeFormTxt(out, in);
return out.Str();
}
*/
void print_date_nice(Info & i, const tm & rtm)