added: "str" "strnc" ezc functions
changed: ezc functions: "winix_false" to "false" "winix_true" to "true" git-svn-id: svn://ttmath.org/publicrep/winix/trunk@730 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
84145d7cc8
commit
06551d6084
|
@ -83,6 +83,8 @@ class BBCODEParser : public HTMLFilter
|
|||
|
||||
void TrimWhiteWithNewLines(const wchar_t * & start, const wchar_t * & end);
|
||||
|
||||
|
||||
|
||||
bool has_open_ol_tag; // has open html <ol> tag
|
||||
bool has_open_ul_tag; // has open html <ul> tag
|
||||
bool has_open_li_tag; // has open html <li> tag
|
||||
|
|
|
@ -415,8 +415,10 @@ void Templates::CreateFunctions()
|
|||
ezc_functions.Insert("winix_is_err_in_locales", winix_is_err_in_locales);
|
||||
ezc_functions.Insert("winix_err_msg_from_locales",winix_err_msg_from_locales);
|
||||
ezc_functions.Insert("winix_show_content_in_full_window", winix_show_content_in_full_window);
|
||||
ezc_functions.Insert("winix_false", winix_false);
|
||||
ezc_functions.Insert("winix_true", winix_true);
|
||||
ezc_functions.Insert("false", winix_false);
|
||||
ezc_functions.Insert("true", winix_true);
|
||||
ezc_functions.Insert("str", str);
|
||||
ezc_functions.Insert("strnc", strnc);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -350,6 +350,8 @@ namespace TemplatesFunctions
|
|||
void winix_show_content_in_full_window(Info & i);
|
||||
void winix_false(Info & i);
|
||||
void winix_true(Info & i);
|
||||
void str(Info & i);
|
||||
void strnc(Info & i);
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -209,15 +209,47 @@ void winix_show_content_in_full_window(Info & i)
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// the ezc function name is "false"
|
||||
// ezc_functions.Insert("false", winix_false);
|
||||
void winix_false(Info & i)
|
||||
{
|
||||
i.res = false;
|
||||
}
|
||||
|
||||
|
||||
// the ezc function name is "true"
|
||||
// ezc_functions.Insert("true", winix_true);
|
||||
void winix_true(Info & i)
|
||||
{
|
||||
i.res = true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// these functions are to be used with [is...] statements
|
||||
void str(Info & i)
|
||||
{
|
||||
for(size_t a=0 ; a<i.params.size() ; ++a)
|
||||
i.out << i.params[a];
|
||||
}
|
||||
|
||||
void strnc(Info & i)
|
||||
{
|
||||
for(size_t a=0 ; a<i.params.size() ; ++a)
|
||||
i.out << i.params[a];
|
||||
|
||||
i.case_sensitive = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue