Commit 4813bc8c authored by aggsol's avatar aggsol 🙉

detect image lines

parent ddcfe41e
......@@ -22,6 +22,41 @@
#include <sstream>
#include <iostream>
namespace
{
int parseImageLine(const std::string& input, std::string& outFilename, std::string& altTxt)
{
enum class State
{
Start,
Tag,
};
State state = State::Start;
char last = 0;
for(int i=0; i<input.size(); ++i)
{
const char c = input[i];
char peek = 0;
if(i<input.size()-1)
{
peek = input[i+1];
}
switch(state)
{
case State::Start:
break;
}
last = c;
}
return 0;
}
}
namespace bodhi
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment