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

前端之家收集整理的这篇文章主要介绍了C 0x中没有Unicode流吗?为什么?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
今天我发现,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.

猜你在找的C&C++相关文章