C-Sourcecode, not finished.. too big differences between Java regex and C Regex.

Seperates all Networks in every block and save the references,text in 2 Tables.

Builds a new file from SQLITE Data

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <cstring>
#include <iostream>
#include <list>
#include <map>
#include <regex>
#include <iterator>
#include <string>
#include <sqlite3.h> 
#include <algorithm>
#include <time.h>
#include <unistd.h>
#include "main.h"
#include <fstream>
using namespace std;
static const string HEADER1     = "<!DOCTYPE html><html lang=\"de\"><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/><title>S5Parser</title><style>\n";
static const string STYLEZUORD  = "pre{\nfont-size: 14px;\n\n} \na:link { background: lightgrey; text-decoration: none; color: black; }\na:visited { background: lightgrey; text-decoration: none; color: black; }\n\n/* The navigation bar */\n.navbar {\n    overflow: hidden;\n    background-color:  lightgrey;\n    position: fixed; /* Set the navbar to fixed position */\n    bottom: 0; /* Position the navbar at the top of the page */\n    width: 100%;\n    height:4%;\n    z-index:10;\n}\n\n/* Links inside the navbar */\n.navbar a {\n    float: left;\n    display: block;\n    color: #red;\n    text-align: center;\n    padding: 10px 16px;\n    text-decoration: none;\n}\nbody{\nmargin:0;\npadding:0;\n}\n/* Change background on mouse-over */\n.navbar a:hover {\n    background: #888888;\n    color: black;\n}\n.right{\n\nright: 0;\nwidth:50%;\nheight:100%;\noverflow-y: none;\nposition: fixed;\n\n}\npre{\nmargin-left:10px;\n}\n.Zuordnung {\n\noverflow-y: scroll;\nbackground: #EEEEEE;\nheight:96%;\n}\n/* Main content */\n.split{\nwidth:50%;\nheight:100%;\noverflow-y: scroll;\nposition: fixed;\n}\n.container{\nwidth:100%;\nheight:100%;\npadding:0;\n\n}\n\n.main {\nleft:0;\n\n   }";
static const string HEADER2     = "</style></head><body>\n\n<div class=\"container\">\n<div class=\"main split\"><pre><a href=\"#\" id=\"bausteine\"></a>";
static const string CONTENT     = "</pre></div>\n<div class=\"right\">\n<div class=\"Zuordnung\" ><pre>";
static const string FOOTER      = "</pre></div>\n<div tabindex=\"1\" class=\"navbar\"><a href=\"#ZLE\" tabindex=\"10\" onclick=\"\">Eingänge</a><a href=\"#ZLA\" tabindex=\"10\" onclick=\"\">Ausgänge</a><a href=\"#ZLM\" tabindex=\"10\" onclick=\"\">Merker</a><a href=\"#ZLS\" tabindex=\"10\" onclick=\"\">Ersatzmerker</a><a href=\"#ZPB\" tabindex=\"10\" >Bausteine</a><a href=\"#ZPT\" tabindex=\"10\" >Timer</a><a href=\"#ZPZ\" tabindex=\"10\" >Zähler</a></div>\n</div></div></body></html>";
static const string STYLESINGLE = "pre{\nfont-size: 14px;\nmargin-left:10px;\n}\n.tooltip {\n position: relative;\n display: inline-block;\n}\n\n.tooltip .tooltiptext {\n visibility: hidden;\n /*width: 60px;*/\n background-color: #555;\n color: #fff;\n text-align: center;\n padding: 5px 0;\n border-radius: 6px;\n\n /* Position the tooltip text */\n position: absolute;\n z-index: 1;\n bottom: 125%;\n left: 50%;\n margin-left: 0px;\n\n /* Fade in tooltip */\n opacity: 0;\n transition: opacity 0.3s;\n}\n\na:link { background: lightgrey; text-decoration: none; color: black; }\na:visited { background: lightgrey; text-decoration: none; color: black; }\n\n.navbar {\n overflow: hidden;\n background-color: lightgrey;\n position: fixed; /* Set the navbar to fixed position */\n bottom: 0; /* Position the navbar at the top of the page */\n width: 100%;\n height:4%;\n z-index:10;\n}\n\n.navbar a {\n float: left;\n display: block;\n color: #red;\n text-align: center;\n padding: 10px 16px;\n text-decoration: none;\n}\n\nbody{\nmargin:0;\npadding:0;\n}\n\n.navbar a:hover {\n background: #888888;\n color: black;\n}\n\n.right{\ndisplay:none;\nright: 0;\nwidth:0%;\nheight:100%;\noverflow-y: none;\nposition: fixed;\n}\n\n.Zuordnung {\noverflow-y: scroll;\nbackground: #EEEEEE;\nheight:96%;\n}\n\n.split{\n\nheight:100%;\noverflow-y: scroll;\nposition: fixed;\n}\n\n.container{\nwidth:100%;\nheight:100%;\npadding:0;\n}\n\n.main...
Read more »