by Radek Červinka 3. April 2011 00:04

Unicode is today standard. Before unicode many programmers needs transform from one codepage to another codepage (sometimes in unicode too).

Very good tool was synapse (there is synacode unit). But in Delphi 2010 (finally) there is native transcoding support in RTL (and I can say good implemented). More...

Tags: ,

How to

OOP file access in Delphi 2010

by Radek Červinka 20. January 2011 21:59

Starting with Delphi 2010 there are some new classes for file access .

In unit IOUtils there are this classes (in fact this is extended records and not classes - Delphi from about version 2006 allow methods on records):

  • TDirectory
  • TPath
  • TFile

This object model is similar to .NET.More...

Tags: ,


Thread safe variables for date and time formatting

by Radek Červinka 26. November 2010 22:15

In Delphi XE are changes in RTL about formatting time and date. In old versions of Delphi RTL there are globals variables.

New approach is backward compatible, but can be used as thread safe for new programs.

When converting from old code we get warning about deprecated code, but our code can be compiled and with small change deprecated warning can be removed.More...

Tags: , ,

Delphi news

TBinaryReader and TBinaryWriter

by Radek Červinka 16. October 2010 00:44

There are some new handy classes in every new Delphi version. In Delphi XE e.g. implementation of TBinaryReader and TBinaryWriter.

It is clear that something similar can be programmed in an afternoon, but I am pleased with the original implementation.More...

Tags: ,

Delphi news

TTimeZone in Delphi XE

by Radek Červinka 11. October 2010 01:13

Delphi XE include in RTL support for working with local time zone (TTimeZone). Implementation is multi platform (Windows, Linux, Mac OS) and is simple for use. More...

Tags: ,


Again inline optimalization

by Radek Červinka 25. September 2010 00:12

So small comment for inline optimalization. This time inspired by Allen Bauer and I never know about this before..

For example this "good" code:

    1program InlineTest;
    5  SysUtils;
    8  s : string;
   10  s:= 'Test';
   11  writeln(s);
   12  writeln(Length(s));


Tags: , ,