static
| 126 | |
| 127 | // static |
| 128 | std::string DescriptionsCollector::MakePathForWikipedia(std::string const & wikipediaDir, std::string wikipediaUrl) |
| 129 | { |
| 130 | strings::Trim(wikipediaUrl); |
| 131 | strings::ReplaceFirst(wikipediaUrl, "http://", ""); |
| 132 | strings::ReplaceFirst(wikipediaUrl, "https://", ""); |
| 133 | if (wikipediaUrl.ends_with('/')) |
| 134 | wikipediaUrl.pop_back(); |
| 135 | |
| 136 | return base::JoinPath(wikipediaDir, wikipediaUrl); |
| 137 | } |
| 138 | |
| 139 | // static |
| 140 | std::string DescriptionsCollector::MakePathForWikidata(std::string const & wikipediaDir, std::string const & wikidataId) |
nothing calls this directly
no test coverage detected