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

Method GetExclAttr

Libraries/unrar/cmddata.cpp:998–1033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

996
997#ifndef SFX_MODULE
998uint CommandData::GetExclAttr(const wchar *Str,bool &Dir)
999{
1000 if (IsDigit(*Str))
1001 return wcstol(Str,NULL,0);
1002
1003 uint Attr=0;
1004 while (*Str!=0)
1005 {
1006 switch(toupperw(*Str))
1007 {
1008 case 'D':
1009 Dir=true;
1010 break;
1011#ifdef _UNIX
1012 case 'V':
1013 Attr|=S_IFCHR;
1014 break;
1015#elif defined(_WIN_ALL) || defined(_EMX)
1016 case 'R':
1017 Attr|=0x1;
1018 break;
1019 case 'H':
1020 Attr|=0x2;
1021 break;
1022 case 'S':
1023 Attr|=0x4;
1024 break;
1025 case 'A':
1026 Attr|=0x20;
1027 break;
1028#endif
1029 }
1030 Str++;
1031 }
1032 return Attr;
1033}
1034#endif
1035
1036

Callers

nothing calls this directly

Calls 2

IsDigitFunction · 0.85
toupperwFunction · 0.85

Tested by

no test coverage detected