c - 在哪里可以开始使用 C 语言进行 Unicode 友好的编程?

标签 c string unicode encoding unicode-string

所以,我正在从事一个纯 C (ANSI 9899:1999) 项目,并试图弄清楚从哪里开始重新:Unicode、UTF-8 和所有爵士乐。

具体来说,这是一个语言解释器项目,我有两个主要地方需要处理 Unicode:读取源文件(该语言表面上支持 Unicode 标识符等)和“字符串”对象。

我熟悉有关 Unicode、UTF-7/8/16/32 和 UCS-2/4 等等的所有显而易见的基础知识……我主要是在寻找有用的、特定于 C 语言的(即是,请不要使用 C++ 或 C#,这是之前在 SO 上记录的所有内容)关于我在 C 中实现 Unicode 友好的东西的“下一步”的资源。

任何链接、联机帮助页、维基百科文章、示例代码都非常受欢迎。我还将尝试在原始问题的此处维护此类资源的列表,以供以后遇到它的任何人使用。


最佳答案

International Components for Unicode提供用于处理 unicode 的可移植 C 库。这是他们为 ICU4C 进行的电梯宣传:

The C and C++ languages and many operating system environments do not provide full support for Unicode and standards-compliant text handling services. Even though some platforms do provide good Unicode text handling services, portable application code can not make use of them. The ICU4C libraries fills in this gap. ICU4C provides an open, flexible, portable foundation for applications to use for their software globalization requirements. ICU4C closely tracks industry standards, including Unicode and CLDR (Common Locale Data Repository).

关于c - 在哪里可以开始使用 C 语言进行 Unicode 友好的编程?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2232861/

相关文章:

c - C语言中如何将char类型转换为double类型?

c - 将指针写入管道,是否存在任何严格的别名或双关类型问题?

C - 连接字符串

unicode - Sublime 3 - 显示不好的隐藏字符

c# - Unicode 输入 Windows 8.1 Store App

c - ARM 皮质 M4 : test from unpriviledged mode if inside interrupt

string - Swift - 将字符串拆分成多行

java - 如何在 Java 中匹配一串元组?

python - 如何在 Python 中将 unicode 字符串加载到 json 中?

python - 将 ByteArray 从 Python 传递给 C 函数