added: new ezc filter: fil_new_line_to_br
added: PutChar() methods to HtmlTextFilter and TexTextFilter git-svn-id: svn://ttmath.org/publicrep/winix/trunk@885 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
|
||||
/*
|
||||
TexTextStream is used as a buffer for creating a html page
|
||||
TexTextStream is used as a buffer for creating a TeX input
|
||||
By default all operators<< escape its string arguments. If you don't want
|
||||
to escape an argument you should use a helper function R() (raw argument)
|
||||
note: you have to define the function yourself, we do not provide it
|
||||
@@ -33,16 +33,10 @@
|
||||
|
||||
now you can use TexTextStream in an easy way:
|
||||
TexTextStream page;
|
||||
std::string key = "some <b>string</b>";
|
||||
page << key << R("<h2>html goes here</h2>");
|
||||
std::string key = "some text with $# ^{} tex \\ special characters";
|
||||
page << key << R("\\def\\myfun{...}");
|
||||
|
||||
// !! UPDATE INFO this is TEX text
|
||||
only html tags "<b>" and "</b>" will be correctly escaped
|
||||
|
||||
currently following characters are escaped:
|
||||
< -> <
|
||||
> -> >
|
||||
& ->
|
||||
everything in 'key' is property escaped for using with TeX
|
||||
*/
|
||||
class TexTextStream : public TextStream<std::wstring>
|
||||
{
|
||||
@@ -70,6 +64,8 @@ public:
|
||||
/*
|
||||
without escaping
|
||||
*/
|
||||
TexTextStream & PutChar(char);
|
||||
TexTextStream & PutChar(wchar_t);
|
||||
|
||||
TexTextStream & PutText(const char *);
|
||||
TexTextStream & PutText(const char *, size_t len);
|
||||
|
||||
Reference in New Issue
Block a user