gpt4 book ai didi

c++ - C++0x 中没有 Unicode 流?为什么?

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:25:43 25 4
gpt4 key购买 nike

今天我发现,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++0x 中没有 Unicode 流?为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5666899/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com