MCPcopy Create free account
hub / github.com/Kitware/CMake / WarnFormFromFilename

Method WarnFormFromFilename

Source/cmDocumentation.cxx:227–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225}
226
227void cmDocumentation::WarnFormFromFilename(
228 cmDocumentation::RequestedHelpItem& request, bool& result)
229{
230 std::string ext = cmSystemTools::GetFilenameLastExtension(request.Filename);
231 ext = cmSystemTools::UpperCase(ext);
232 if ((ext == ".HTM") || (ext == ".HTML")) {
233 request.HelpType = cmDocumentation::None;
234 result = true;
235 cmSystemTools::Message("Warning: HTML help format no longer supported");
236 } else if (ext == ".DOCBOOK") {
237 request.HelpType = cmDocumentation::None;
238 result = true;
239 cmSystemTools::Message("Warning: Docbook help format no longer supported");
240 }
241 // ".1" to ".9" should be manpages
242 else if ((ext.length() == 2) && (ext[1] >= '1') && (ext[1] <= '9')) {
243 request.HelpType = cmDocumentation::None;
244 result = true;
245 cmSystemTools::Message("Warning: Man help format no longer supported");
246 }
247}
248
249std::string cmDocumentation::GeneralizeKeyword(std::string cname)
250{

Callers 1

CheckOptionsMethod · 0.95

Calls 2

MessageClass · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected