MCPcopy Create free account
hub / github.com/abbeycode/UnrarKit / CmpExt

Function CmpExt

Libraries/unrar/pathfn.cpp:114–118  ·  view source on GitHub ↗

'Ext' is an extension without the leading dot, like L"rar".

Source from the content-addressed store, hash-verified

112
113// 'Ext' is an extension without the leading dot, like L"rar".
114bool CmpExt(const wchar *Name,const wchar *Ext)
115{
116 wchar *NameExt=GetExt(Name);
117 return NameExt!=NULL && wcsicomp(NameExt+1,Ext)==0;
118}
119
120
121bool IsWildcard(const wchar *Str)

Callers 2

RestoreMethod · 0.85
ExtractArchiveMethod · 0.85

Calls 2

GetExtFunction · 0.85
wcsicompFunction · 0.85

Tested by

no test coverage detected