[英]wchar_t and POSIX library
There is the POSIX library in c++ support wchar_t? 在c ++中有POSIX库支持wchar_t吗? if not, then how is it possible to solve this problem?
如果没有,那么如何解决这个问题呢?
For example, I need open opendir(wchar_t*)
例如,我需要打开
opendir(wchar_t*)
There's no POSIX wchar_t version of opendir. 没有POSIX wchar_t版本的opendir。 Your platform may have one if you are lucky.
如果幸运的话,您的平台可能会有一个。 Otherwise, you'll have to use something like the iconv library to convert your wide character string into UTF-8 (or whatever character encoding your file system API uses).
否则,您将不得不使用iconv库之类的东西来将宽字符串转换为UTF-8(或文件系统API使用的任何编码字符)。
It's not clear exactly what you're asking. 目前尚不清楚您在问什么。
POSIX incorporates the C standard as a base document, and the C standard specifies wchar_t
and numerous functions that operate on wchar_t
values. POSIX将C标准合并为基本文档,并且C标准指定
wchar_t
和许多对wchar_t
值进行操作的函数。 So in this sense, wchar_t
is certainly suppported by POSIX. 因此从这个意义上讲,
wchar_t
当然是POSIX支持的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.