diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-25 14:10:45 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2019-10-25 14:10:45 +0300 |
commit | 1de3a9aae84ec71c4fd83604ea9c45204efb9baf (patch) | |
tree | 99246ae8cbb19864657360b513f501d796a92db5 /src/html.hpp | |
parent | 2c12c0652d2b8c8440e1e908f004826840ed14ab (diff) | |
download | texo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.tar texo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.tar.xz texo-1de3a9aae84ec71c4fd83604ea9c45204efb9baf.zip |
.
Diffstat (limited to 'src/html.hpp')
-rw-r--r-- | src/html.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
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; }; |