MG: fixed bytetype

git-svn-id: trunk@1804 -
This commit is contained in:
lazarus 2002-07-31 11:46:35 +00:00
parent c4895bad37
commit aa8b6f0237

View File

@ -798,6 +798,19 @@ end;
{ TDelphiWriter }
{ MultiByte Character Set (MBCS) byte type }
type
TMbcsByteType = (mbSingleByte, mbLeadByte, mbTrailByte);
function ByteType(const S: string; Index: Integer): TMbcsByteType;
begin
Result := mbSingleByte;
{ ToDo:
if SysLocale.FarEast then
Result := ByteTypeTest(PChar(S), Index-1);
}
end;
constructor TDelphiWriter.Create(Stream: TStream);
begin
FStream:=Stream;