'ne Erweiterung für TBigIniFile könnte z.B. so aussehn.
(ein ReadAnsiString und WriteAnsiString gibt's in TBigIniFile ja auch schon)
Delphi-Quellcode:
type
TWideBigIniFile = class(TBigIniFile)
public
function ReadWideString(const aSection, aKey: string; const aDefault: WideString): WideString; virtual;
procedure WriteWideString(const aSection, aKey: string; const aValue: WideString); virtual;
end;
function TWideBigIniFile.ReadWideString(const aSection, aKey: string; const aDefault: WideString): WideString;
begin
Result := Utf8Decode(ReadString(aSection, aKey, Utf8Encode(aDefault)));
end;
procedure TWideBigIniFile.WriteWideString(const aSection, aKey: string; const aValue: WideString);
begin
WriteString(aSection, aKey, Utf8Encode(aValue)));
end;