mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 02:16:14 +02:00
MG: fixed bytetype
git-svn-id: trunk@1804 -
This commit is contained in:
parent
c4895bad37
commit
aa8b6f0237
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user