Changeset 5
- Timestamp:
- Jan 7, 2017, 11:20:43 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StringTables.pas
r2 r5 9 9 10 10 type 11 TCharList=array[0..9999999] of char;11 TCharList=array[0..9999999] of AnsiChar; 12 12 13 13 TStringTable=class 14 14 constructor Create; 15 15 destructor Destroy; override; 16 function LoadFromFile(const FileName: string): boolean;17 function GetHandle(const Item: string): integer;16 function LoadFromFile(const FileName: String): boolean; 17 function GetHandle(const Item: AnsiString): integer; 18 18 function LookupByHandle(Handle: integer; Index: integer =-1): string; 19 19 function Lookup(const Item: string; Index: integer =-1): string; … … 22 22 Count: integer; 23 23 Data: ^TCharList; 24 Lines: array[0..MaxCount-1] of P Char;24 Lines: array[0..MaxCount-1] of PAnsiChar; 25 25 end; 26 26 … … 42 42 end; 43 43 44 function TStringTable.LoadFromFile(const FileName: 44 function TStringTable.LoadFromFile(const FileName:string): boolean; 45 45 var 46 46 nData, i: integer; … … 71 71 end; 72 72 73 function TStringTable.GetHandle(const Item: string): integer;73 function TStringTable.GetHandle(const Item: AnsiString): integer; 74 74 var 75 75 i,l: integer;
Note:
See TracChangeset
for help on using the changeset viewer.