Delphi XE - should I use String or AnsiString?

前端 未结 6 1595
广开言路
广开言路 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:15

    You should be able to wrap up the conversion at the interface between this unit and its clients. Use AnsiString internally and string everywhere else and you should be fine.

提交回复
热议问题