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

Function ParseVersionFileName

Libraries/unrar/pathfn.cpp:611–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611int ParseVersionFileName(wchar *Name,bool Truncate)
612{
613 int Version=0;
614 wchar *VerText=wcsrchr(Name,';');
615 if (VerText!=NULL)
616 {
617 Version=atoiw(VerText+1);
618 if (Truncate)
619 *VerText=0;
620 }
621 return Version;
622}
623
624
625#if !defined(SFX_MODULE)

Callers 2

ListFileHeaderFunction · 0.85
ExtractCurrentFileMethod · 0.85

Calls 1

atoiwFunction · 0.85

Tested by

no test coverage detected