MCPcopy Create free account
hub / github.com/KDE/okular / outsideTag

Function outsideTag

generators/mobipocket/mobidocument.cpp:60–71  ·  view source on GitHub ↗

starting from 'pos', find position in the string that is not inside a tag

Source from the content-addressed store, hash-verified

58
59// starting from 'pos', find position in the string that is not inside a tag
60int outsideTag(const QString &data, int pos)
61{
62 for (int i = pos - 1; i >= 0; i--) {
63 if (data[i] == QLatin1Char('>')) {
64 return pos;
65 }
66 if (data[i] == QLatin1Char('<')) {
67 return i;
68 }
69 }
70 return pos;
71}
72
73QString MobiDocument::fixMobiMarkup(const QString &data)
74{

Callers 1

fixMobiMarkupMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected