From: Maël Hörz <ma...@fd...> - 2008-10-03 18:50:19
|
Update of /cvsroot/synedit/SynEdit/Source In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14402 Modified Files: Tag: Unicode_2004_08_31 SynUnicode.pas Log Message: Minor formatting fix. Index: SynUnicode.pas =================================================================== RCS file: /cvsroot/synedit/SynEdit/Source/Attic/SynUnicode.pas,v retrieving revision 1.1.2.42 retrieving revision 1.1.2.43 diff -u -d -r1.1.2.42 -r1.1.2.43 --- SynUnicode.pas 3 Oct 2008 18:47:03 -0000 1.1.2.42 +++ SynUnicode.pas 3 Oct 2008 18:50:12 -0000 1.1.2.43 @@ -915,7 +915,7 @@ System.Move(ByteOrderMask[2], SW[1] ,BytesRead - 2); // max 4 bytes = 2 widechars if Size > BytesRead then // first 2 chars (maximum) were copied by System.Move - Stream.Read(SW[3], Size-BytesRead); + Stream.Read(SW[3], Size - BytesRead); StrSwapByteOrder(PWideChar(SW)); end; SetTextStr(SW); @@ -1051,7 +1051,7 @@ Stream.WriteBuffer(SW[1], Length(SW) * SizeOf(WideChar)); FSaved := True; end; - sfUTF8 : + sfUTF8: begin if WithBOM then Stream.WriteBuffer(UTF8BOM[0], SizeOf(UTF8BOM)); @@ -1059,7 +1059,7 @@ Stream.WriteBuffer(SA[1], Length(SA) * SizeOf(AnsiChar)); FSaved := True; end; - sfAnsi : + sfAnsi: begin SA := SW; Stream.WriteBuffer(SA[1], Length(SA) * SizeOf(AnsiChar)); |