MCPcopy Create free account
hub / github.com/Sigil-Ebook/Sigil / error

Method error

src/Query/CParser.cpp:1077–1098  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077std::string CParser::error(std::string message)
1078{
1079 size_t d = mOffset;
1080 std::string ds;
1081 if (d == 0)
1082 {
1083 ds = '0';
1084 }
1085
1086 while (d)
1087 {
1088 ds.push_back(d % 10 + '0');
1089 d /= 10;
1090 }
1091
1092 std::string ret = message + " at:";
1093 for (std::string::reverse_iterator rit = ds.rbegin(); rit != ds.rend(); ++rit) {
1094 ret.push_back(*rit);
1095 }
1096
1097 return ret;
1098}

Callers 2

parse_starttagFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected