C ++中阿拉伯字符串的反转
Reverse of an Arabic string in c++
如何使用 C++ 反转阿拉伯字符串?例如,كلм 的反面是 ⑩ملك。阿拉伯字母的形状根据单词中的位置而不同。 (词首、词中或词尾)。是否有其他规则来连接阿拉伯字母?
正如 Petesh 所说,根据我能找到的参考资料,例如 Wikipedia 渲染引擎应该为您使用适当的字形。引用文章:
For example, many Arabic letters are represented by a different glyph when the letter appears at the end of a word than when the letter appears at the beginning of a word. Unicode's approach prefers to have these letters mapped to the same character for ease of internal machine text processing and storage. To complement this approach, the text software must select different glyph variants for display of the character based on its context
在线快速实验 unicode convertor 似乎可以证实:
كلمة
十六进制代码点是:
0643 0644 0645 0629
同时:
ةملك
是:
0629 0645 0644 0643
这与前面的代码点完全相反。
如何使用 C++ 反转阿拉伯字符串?例如,كلм 的反面是 ⑩ملك。阿拉伯字母的形状根据单词中的位置而不同。 (词首、词中或词尾)。是否有其他规则来连接阿拉伯字母?
正如 Petesh 所说,根据我能找到的参考资料,例如 Wikipedia 渲染引擎应该为您使用适当的字形。引用文章:
For example, many Arabic letters are represented by a different glyph when the letter appears at the end of a word than when the letter appears at the beginning of a word. Unicode's approach prefers to have these letters mapped to the same character for ease of internal machine text processing and storage. To complement this approach, the text software must select different glyph variants for display of the character based on its context
在线快速实验 unicode convertor 似乎可以证实:
كلمة
十六进制代码点是:
0643 0644 0645 0629
同时:
ةملك
是:
0629 0645 0644 0643
这与前面的代码点完全相反。