summaryrefslogtreecommitdiff
path: root/src/texo.cpp
diff options
context:
space:
mode:
authorAleksey Veresov <aleksey@veresov.pro>2019-10-18 12:37:46 +0300
committerAleksey Veresov <aleksey@veresov.pro>2019-10-18 12:37:46 +0300
commit9a23fd146be4ba64b0cb720993bdc73a514fecf2 (patch)
tree9c8d9554d37f7ab25087e1468c012fb41a6e39ee /src/texo.cpp
parent7b09f265c1deb12c9e6778c4d92473d66fc5406b (diff)
downloadtexo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.tar
texo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.tar.xz
texo-9a23fd146be4ba64b0cb720993bdc73a514fecf2.zip
.
Diffstat (limited to 'src/texo.cpp')
-rw-r--r--src/texo.cpp57
1 files changed, 0 insertions, 57 deletions
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);
- }
-}