Changeset 510 for Common/UCommon.pas
- Timestamp:
- Apr 11, 2018, 11:22:58 AM (7 years ago)
- Location:
- Common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Common
- Property svn:ignore
-
old new 1 1 lib 2 2 backup 3 *.lrj
-
- Property svn:ignore
-
Common/UCommon.pas
r509 r510 74 74 procedure SearchFiles(AList: TStrings; Dir: string; 75 75 FilterMethod: TFilterMethodMethod); 76 function GetStringPart(var Text: string; Separator: string): string; 76 77 77 78 … … 531 532 try 532 533 repeat 533 if (SR.Name = '.') or (SR.Name = '..') or not FilterMethod(SR.Name) then Continue; 534 if (SR.Name = '.') or (SR.Name = '..') or not FilterMethod(SR.Name) or 535 not FilterMethod(Copy(Dir, 3, Length(Dir)) + SR.Name) then Continue; 534 536 AList.Add(Dir + SR.Name); 535 537 if (SR.Attr and faDirectory) <> 0 then … … 541 543 end; 542 544 545 function GetStringPart(var Text: string; Separator: string): string; 546 var 547 P: Integer; 548 begin 549 P := Pos(Separator, Text); 550 if P > 0 then begin 551 Result := Copy(Text, 1, P - 1); 552 Delete(Text, 1, P - 1 + Length(Separator)); 553 end else begin 554 Result := Text; 555 Text := ''; 556 end; 557 Result := Trim(Result); 558 Text := Trim(Text); 559 end; 560 561 543 562 544 563 initialization
Note:
See TracChangeset
for help on using the changeset viewer.