Ignore:
Timestamp:
Jun 5, 2023, 7:40:45 PM (12 months ago)
Author:
chronos
Message:
  • Modified: Update Common and VCard package. Remove U prefix from unit names.
File:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/Common.pas

    r147 r148  
    1 unit UCommon;
     1unit Common;
    22
    33interface
     
    1010
    1111type
    12   TObjects = TObjectList<TObject>;
    1312  TArrayOfByte = array of Byte;
    1413  TExceptionEvent = procedure(Sender: TObject; E: Exception) of object;
     
    6665function GetFileFilterItemExt(Filter: string; Index: Integer): string;
    6766function IntToBin(Data: Int64; Count: Byte): string;
     67function Implode(Separator: Char; List: TList<string>): string;
    6868function LastPos(const SubStr: String; const S: String): Integer;
    6969function LoadFileToStr(const FileName: TFileName): AnsiString;
     
    314314end;
    315315
     316function Implode(Separator: Char; List: TList<string>): string;
     317var
     318  I: Integer;
     319begin
     320  Result := '';
     321  for I := 0 to List.Count - 1 do begin
     322    Result := Result + List[I];
     323    if I < List.Count - 1 then Result := Result + Separator;
     324  end;
     325end;
     326
    316327{$IFDEF WINDOWS}
    317328function GetUserName: string;
Note: See TracChangeset for help on using the changeset viewer.