Delphi 7 和 Delphi 2009 在处理字符、字符串、unicode 等方面有何区别?

发布于 2024-09-12 13:39:38 字数 488 浏览 9 评论 0原文

我有一个类只能在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伏妖词 2024-09-19 13:39:38

你可以查看这篇论文 <来自 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文