MCPcopy Create free account
hub / github.com/GollyGang/ready / IsHTMLFile

Function IsHTMLFile

src/gui/wxutils.cpp:141–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139// =============================================================================
140
141bool IsHTMLFile(const wxString& filename)
142{
143 wxString ext = filename.AfterLast('.');
144 // if filename has no extension then ext == filename
145 if (ext == filename) return false;
146 return ( ext.IsSameAs(wxT("htm"),false) ||
147 ext.IsSameAs(wxT("html"),false) );
148}
149
150// -----------------------------------------------------------------------------
151

Callers 2

OpenFileMethod · 0.85
IsTextFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected