Advertisement
Janilabo

Untitled

Dec 15th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.65 KB | None | 0 0
  1. {$loadlib pumbaa.dll}
  2.  
  3. var
  4.   f: Integer;
  5.   s, r: string;
  6.  
  7. begin
  8.   ClearDebug;
  9.   f := OpenFile((ScriptPath + 'changelog.txt'), False);
  10.   ReadFileString(f, s, FileSize(f));
  11.   CloseFile(f);
  12.   WriteLn('Original length: ' + IntToStr(Length(s)));
  13.   f := GetSystemTime;
  14.   r := pp_StrReplace(s, 'SCAR', 'hm', [rfReplaceAll]);
  15.   WriteLn('pp_StrReplace: ' + IntToStr(GetSystemTime - f) + ' ms. (' + IntToStr(Length(r)) + ') [' + MD5(r) + ']');
  16.   r := '';
  17.   f := GetSystemTime;
  18.   r := Replace(s, 'SCAR', 'hm', [rfReplaceAll]);
  19.   WriteLn('Replace: ' + IntToStr(GetSystemTime - f) + ' ms. (' + IntToStr(Length(r)) + ') [' + MD5(r) + ']');
  20.   s := '';
  21. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement