| 40 | }; |
| 41 | |
| 42 | std::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 | |
| 54 | std::string cutNameSpace(std::string &className) { |
| 55 | int colonPos = className.find_last_of("::"); |
no outgoing calls
no test coverage detected