From 1de3a9aae84ec71c4fd83604ea9c45204efb9baf Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 25 Oct 2019 14:10:45 +0300 Subject: . --- src/html.hpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/html.hpp') diff --git a/src/html.hpp b/src/html.hpp index dc291f6..fcf64e6 100644 --- a/src/html.hpp +++ b/src/html.hpp @@ -35,6 +35,29 @@ public: TexoImporterHTML(TexoProducer &producer); void Put(char c); + void Put(const ScriptVariable &str); + void Put(FILE *file); + +private: + enum State { + text, // TODO: decoding (">" -> ">") + open, + tag_name, + tag_skip, + attr_pre, + attr_name, + attr_name_post, + attr_value_pre, + attr_value + } state; + bool closing; + ScriptVariable tag; + ScriptVariable attr; + ScriptVariable attr_src; + ScriptVariable attr_href; + ScriptVariable attr_title; + ScriptVariable attr_alt; + ScriptVariable link_text; }; -- cgit v1.2.3