Delphi 7 和 Delphi 2009 在处理字符、字符串、unicode 等方面有何区别?
我有一个类只能在 Delphi 7 中运行,经过多次尝试将其转换为 Delphi 2009,我们最终同意将我们的项目更改为 Delphi 7。
该项目或多或少完成了,但我想再试一次 2009 年的事情。
我还需要注意哪些其他更改?
除了 Delphi 7 中的 Sizeof(Char) 等于 1 和 Delphi 2009 中的 2 之外, 了解我要转换成 2009 年的内容可能会有所帮助,因此此处 是的。 这是 unit HanInput;
部分。它翻译按键(英语)并输出韩语字符。他使用索引的方式确实令人困惑,每个韩文字符的大小都是 2,因此必须更改很多代码。
遗憾的是,我不懂韩语,所以我很难猜测算法的一些相似之处。
I had a class that only worked in Delphi 7 and after several attempts of converting it into Delphi 2009 we finally agreed to change our project into Delphi 7.
The project more or less done, but I want to give the 2009 thing another shot.
Aside from Sizeof(Char) equals 1 in Delphi 7 and 2 in Delphi 2009, what are other changes that I need to be aware of?
Additional:
It might help to know what I'm converting into 2009, so HERE it is.
It's the unit HanInput;
part. It translates keys (in english) and outputs the Korean characters. The way he uses the indexes is really confusing, each Korean character HAD a size of 2 so a lot of that code must be changed.
Sadly, I don't understand Korean, so it's pretty hard for me to guess the some semblance of an algorithm.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以查看这篇论文 <来自 Marco Cantù 的 code>Delphi 和 Unicode,很好地解释了 Delphi 中的 Unicode 字符串支持。
Dian you can check this paper
Delphi and Unicode
from Marco Cantù, wich explain in a great way the Unicode string support in Delphi.