Ignore:
Timestamp:
May 22, 2016, 2:08:43 PM (9 years ago)
Author:
RBRi
Message:

more path fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Library/ACLLibraryTestForm.pas

    r392 r402  
    77  StdCtrls,
    88  ACLFileIOUtility,
    9   ACLFileUtility,
    10   ACLFindFunctions,
    11   ACLProfile,
    12   ACLStringUtility,
    139  ACLUtility,
    1410  PCharList,
     
    3026    FindButton: TButton;
    3127    Button1: TButton;
     28    Button2: TButton;
    3229    Button3: TButton;
    3330    Procedure FindButtonOnClick (Sender: TObject);
    3431    Procedure Button4OnClick (Sender: TObject);
    3532    Procedure Button3OnClick (Sender: TObject);
     33    Procedure Button2OnClick (Sender: TObject);
    3634    Procedure ACLLibraryTestFormOnCreate (Sender: TObject);
    3735    Procedure ACLLibraryTestFormOnDestroy (Sender: TObject);
     
    5149uses
    5250  SysUtils,
    53   ACLString, AStringUtilityUnit,
     51  ACLString,
    5452  RunProgramUnit;
    5553
     
    7775End;
    7876
     77const
     78  test: string = 'This is the string I want to test the CRC with. Ha ha haa';
     79  test2: string = 'HERES ANOTHER #&*#^*& STRING';
     80  test3: string = #234#221#014;
     81
     82Procedure TACLLibraryTestForm.Button2OnClick (Sender: TObject);
     83var
     84  crc: longword;
     85Begin
     86  crc := GetCRC32( Addr( test ), Length( test ) + 1 );
     87  Memo1.Lines.Add( 'Asm Crc =    ' + IntToStr( crc ) );
     88  crc := Pascal_GetCRC32( Addr( test ), Length( test ) + 1 );
     89  Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );
     90
     91  crc := GetCRC32( Addr( test2 ), Length( test2 ) + 1 );
     92  Memo1.Lines.Add( 'Asm Crc =    ' + IntToStr( crc ) );
     93  crc := Pascal_GetCRC32( Addr( test2 ), Length( test2 ) + 1 );
     94  Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );
     95
     96  crc := GetCRC32( Addr( test3 ), Length( test3 ) + 1 );
     97  Memo1.Lines.Add( 'Asm Crc =    ' + IntToStr( crc ) );
     98  crc := Pascal_GetCRC32( Addr( test3 ), Length( test3 ) + 1 );
     99  Memo1.Lines.Add( 'Pascal Crc = ' + IntToStr( crc ) );
     100
     101End;
    79102
    80103type
Note: See TracChangeset for help on using the changeset viewer.