MCPcopy Create free account
hub / github.com/KDAB/codebrowser / extractMetaFromHTML

Function extractMetaFromHTML

indexgenerator/indexer.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40};
41
42std::string extractMetaFromHTML(std::string metaName, std::string fullPath) {
43 std::ifstream filein(fullPath, std::ifstream::in);
44 std::string needle = "<meta name=\"woboq:interestingDefinitions\" content=\"";
45 std::string endneedle = "\"/>\n";
46 for (std::string line; std::getline(filein, line); ) {
47 if (line.find(needle, 0) == 0) {
48 return line.substr(needle.length(), line.length() - needle.length() - endneedle.length());
49 }
50 }
51 return "";
52}
53
54std::string cutNameSpace(std::string &className) {
55 int colonPos = className.find_last_of("::");

Callers 1

gererateRecursisivelyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected