将 UTF-8 转换为 UTF-32, 预先计算每个字符数
原文:Converting UTF-8 to UTF-32, pre-calculating the number of chars in each
原文:Converting UTF-8 to UTF-32, pre-calculating the number of chars in each
我有一个工作算法将UTF-8 字符串转换为 UTF-32 字符串, 但是,我必须提前为我的 UTF-32 字符串分配全部空间。 有没有办法知道...