From 9a23fd146be4ba64b0cb720993bdc73a514fecf2 Mon Sep 17 00:00:00 2001 From: Aleksey Veresov Date: Fri, 18 Oct 2019 12:37:46 +0300 Subject: . --- src/texo.cpp | 57 --------------------------------------------------------- 1 file changed, 57 deletions(-) (limited to 'src/texo.cpp') diff --git a/src/texo.cpp b/src/texo.cpp index 3610184..aefff4c 100644 --- a/src/texo.cpp +++ b/src/texo.cpp @@ -1,58 +1 @@ #include "texo.hpp" - - -Texo::Texo(Type type): - type(type), c(0), image_src(0), image_alt(0), link_url(0) -{} - -Texo::Texo(const char c): - type(character), c(c), image_src(0), image_alt(0), link_url(0) -{} - - -void TexoExporter::PutStr(const char *str) -{ - if (str) { - while (*str) { - Put(*str); - ++str; - } - } -} - - -TexoProducer::TexoProducer(TexoExporter &exporter): exporter(exporter) {} - -void TexoProducer::PutStr(const char *str) -{ - if (str) { - while (*str) { - Put(Texo(*str)); - ++str; - } - } -} - - -TexoImporter::TexoImporter(TexoProducer &producer): producer(producer) {} - -void TexoImporter::PutStr(const char *str) -{ - if (str) { - while (*str) { - Put(*str); - ++str; - } - Put(0); - } -} - -void TexoImporter::PutFile(FILE *file) -{ - if (file) { - for (int c = fgetc(file); c != EOF; c = fgetc(file)) { - Put(c); - } - Put(0); - } -} -- cgit v1.2.3