Category : File Managers
Archive   : AF125.ZIP
Filename : AF.INC

 
Output of file : AF.INC contained in archive : AF125.ZIP
Function sCheck(Mask,Nom:String):Boolean;
Var i,j,k:Byte;
Pile:Array[1..9] of Record a,b:Byte; End;
PileP:Byte;
lm:Byte absolute Mask;
ln:Byte absolute Nom;
Impasse:Boolean;
Begin
i:=1; j:=1; sCheck:=False; PileP:=0; Impasse:=False;
Repeat
if Mask[i]<>'*' then
if (j<=ln) and ((Mask[i]='?') or (Mask[i]=Nom[j]) or
((Mask[i]='#') and (Nom[j]>='0') and (Nom[j]<='9'))) then
Begin
Inc(i); Inc(j);
End else
Impasse:=True else
Begin
if i=lm then Begin sCheck:=True; Exit; End else
Begin
k:=j;
While (k<=ln) and (Nom[k]<>Mask[i+1]) and
(Mask[i+1]<>'?') and
((Mask[i+1]<>'#') or not (Nom[k] in ['0'..'9']))
do Inc(k);
if k<=ln then
Begin
Inc(PileP);
With Pile[PileP] do
Begin
a:=i; b:=k+1;
End;
Inc(i,2); j:=k+1;
if j>ln then
if (i=Length(Mask)) and (Mask[i]='*')
then Inc(i) else Impasse:=True;
End else Impasse:=True;
End;
End;
if (i>lm) then if (j>ln) then
Begin
sCheck:=True; Exit;
End else Impasse:=True;
if Impasse then
if PileP>0 then
Begin
With Pile[PileP] do Begin i:=a; j:=b; End; Dec(PileP);
Impasse:=False;
if j>ln then Exit;
End else Exit;
Until false;
End;


  3 Responses to “Category : File Managers
Archive   : AF125.ZIP
Filename : AF.INC

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/