加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

C 0x中没有Unicode流吗?为什么?

发布时间:2020-12-16 03:47:58 所属栏目:百科 来源:网络整理
导读:今天我发现,C标准委员会在第二次修订中驳回了C 0x中的Unicode流支持.有关更多信息,请参阅 this问题. 根据this文件: The rationale for leaving out stream specializations of the two new types was that streams of non-char types have not attracted wi
今天我发现,C标准委员会在第二次修订中驳回了C 0x中的Unicode流支持.有关更多信息,请参阅 this问题.

根据this文件:

The rationale for leaving out stream specializations of the two new types was that streams of non-char types have not attracted wide usage,so it is not clear that there is a real need for doubling the number of specializations of this very complicated machinery.

从this采访Stroustrup:

Obviously,we ought to have Unicode streams and other much extended Unicode support in the standard library. The committee knew that but didn’t have anyone with the skills and time to do the work,so unfortunately,this is one of the many areas where you have to look for “third party” support.

我不是Unicode的专家,我想知道为什么实现Unicode流是如此困难?有什么问题呢?

解决方法

你引用的第一段告诉你:并非特别是Unicode流比其他流更困难,因为iostream通常非常复杂.因此,实现Unicode iostream很难,因为它们是Unicode,但因为它们是iostream.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读