Delphi XE - should I use String or AnsiString?

前端 未结 6 1592
广开言路
广开言路 2021-02-14 00:12

I finally upgraded to Delphi XE. I have a library of units where I use strings to store plain ANSI characters (chars between A and U). I am 101% sure that I will never ever use

6条回答
  •  盖世英雄少女心
    2021-02-14 01:07

    In general only use AnsiString if it is important that the Chars are single bytes, Otherwise the use of string ensures future compatibility with Unicode.

提交回复
热议问题