lazutils: added CompareStringListItemsUTF8LowerCase

git-svn-id: trunk@40006 -
This commit is contained in:
mattias 2013-01-28 15:14:33 +00:00
parent bf5b2dd230
commit dfd531ee95

View File

@ -29,6 +29,8 @@ type
procedure LoadStringsFromFileUTF8(List: TStrings; const FileName: string);
procedure SaveStringsToFileUTF8(List: TStrings; const FileName: string);
function CompareStringListItemsUTF8LowerCase(List: TStringList; Index1, Index2: Integer): Integer;
implementation
procedure LoadStringsFromFileUTF8(List: TStrings; const FileName: string);
@ -67,6 +69,12 @@ begin
end;
end;
function CompareStringListItemsUTF8LowerCase(List: TStringList; Index1,
Index2: Integer): Integer;
begin
Result:=CompareStr(UTF8LowerCase(List[Index1]),UTF8LowerCase(List[Index2]));
end;
constructor TFileStreamUTF8.Create(const AFileName: utf8string; Mode: Word);
var
lHandle: THandle;