Changeset 44 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 4, 2010, 6:41:05 PM (14 years ago)
Author:
george
Message:
  • Odstraněno: Soubory patřící pod web server jsou nyní v samostatném balíčku CoolWeb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r27 r44  
    88  USqlDatabase, Classes, SysUtils, StrUtils;
    99 
    10 type
    11   TArrayOfString = array of string;
    12 
    1310function NavigationLink(URL: string): string;
    1411function MakeLink(Text, URL: string): string;
     
    1815function ShowHeader(Title, Path: string): string;
    1916function ShowFooter: string;
    20 function Explode(Separator: Char; Data: string): TArrayOfString;
    2117function HumanDate(Date: TDateTime): string;
    2218function PagesList(URL: string; Page, TotalCount, CountPerPage: Integer): string;
    23 function StrRepeat(Data: string; Count: Integer): string;
    2419
    2520implementation
     
    6358  //ShowArray($GLOBALS);
    6459  Result := Result + '</body></html>';
    65 end;
    66 
    67 function Explode(Separator: Char; Data: string): TArrayOfString;
    68 begin
    69   SetLength(Result, 0);
    70   while Pos(Separator, Data) > 0 do begin
    71     SetLength(Result, Length(Result) + 1);
    72     Result[High(Result)] := Copy(Data, 1, Pos(Separator, Data) - 1);
    73     Delete(Data, 1, Pos(Separator, Data));
    74   end;
    75   SetLength(Result, Length(Result) + 1);
    76   Result[High(Result)] := Data;
    7760end;
    7861
     
    153136end;
    154137
    155 function StrRepeat(Data: string; Count: Integer): string;
    156 var
    157   I: Integer;
    158 begin 
    159   Result := '';
    160   for I := 1 to Count do
    161     Result := Result + Data;
    162 end;
    163 
    164138
    165139initialization
Note: See TracChangeset for help on using the changeset viewer.