wchar_t的 [英] wchar_t
问题描述
您好,
有谁知道哪一层负责定义
wchar_t的大小?
当然,它没有在语言中定义。我在我的平台上查看了
SystemV处理器补充和Itanium C ++ ABI
authorative,但没有提到这个。
>
我正在使用的编译器手册,gcc,也没告诉我。
有谁知道更多?
>
欢呼,
Jens
Hello,
does anyone know which layer is responsible for defining the size of
wchar_t?
Naturally enough, it''s not defined in the language. I looked in the
SystemV processor supplement and the Itanium C++ ABI which are
authorative for my platform, but there is no mentioning of this.
The manual of the compiler I''m using, gcc, doesn''t tell me either.
Does anyone know more?
Cheers,
Jens
推荐答案
" Jens Theisen" < jt *** @ arcor.dewrote in message
news:87 ************ @ arcor.de ...
"Jens Theisen" <jt***@arcor.dewrote in message
news:87************@arcor.de...
有没有人知道哪一层负责定义大小
wchar_t?
当然,它不是用语言定义。
does anyone know which layer is responsible for defining the size of
wchar_t?
Naturally enough, it''s not defined in the language.
当然,它是。 L''x''的类型为wchar_t,所以尺寸为L''x'/
告诉你wchar_t的大小。
PJ Plauger >
Dinkumware,Ltd。
http://www.dinkumware.com
PJ Plauger写道:
P.J. Plauger wrote:
" Jens Theisen" < jt *** @ arcor.dewrote in message
news:87 ************ @ arcor.de ...
"Jens Theisen" <jt***@arcor.dewrote in message
news:87************@arcor.de...
有没有人知道哪一层负责定义大小
wchar_t?
当然,它不是用语言定义。
does anyone know which layer is responsible for defining the size of
wchar_t?
Naturally enough, it''s not defined in the language.
当然,它是。 L''x''的类型为wchar_t,因此尺寸为L''x
告诉你wchar_t的大小。
Naturally enough, it is. L''x'' has type wchar_t, so sizeof L''x''
tells you the size of wchar_t.
对我来说似乎并不自然的部分是名称wchar_t。我们
没有类型" int_t"," char_t"," bool_t"等等。我肯定有一个
好理由对于wchar_t而不是wchar,但这并不意味着
并不难看。
-
Alan Johnson
The part that does not seem natural to me is the name "wchar_t". We
don''t have types "int_t", "char_t", "bool_t", etc. I''m sure there is a
good reason for "wchar_t" instead of "wchar", but that doesn''t mean it
isn''t still ugly.
--
Alan Johnson
Alan Johnson写道:
Alan Johnson wrote:
PJ Plauger写道:
P.J. Plauger wrote:
>" Jens Theisen" < jt *** @ arcor.dewrote in message
新闻:87 ************ @ arcor.de ...
>"Jens Theisen" <jt***@arcor.dewrote in message
news:87************@arcor.de...
>>有没有人知道哪个图层负责定义
wchar_t的大小?
很自然,它没有在语言中定义。
>>does anyone know which layer is responsible for defining the size of
wchar_t?
Naturally enough, it''s not defined in the language.
当然,它是。 L''x''的类型为wchar_t,因此尺寸为''x''
告诉你wchar_t的大小。
Naturally enough, it is. L''x'' has type wchar_t, so sizeof L''x''
tells you the size of wchar_t.
没有的部分对我来说似乎很自然的是名字wchar_t。我们
没有类型" int_t"," char_t"," bool_t"等等。我肯定有一个
好理由对于wchar_t而不是wchar,但这并不意味着
仍然不丑。
The part that does not seem natural to me is the name "wchar_t". We
don''t have types "int_t", "char_t", "bool_t", etc. I''m sure there is a
good reason for "wchar_t" instead of "wchar", but that doesn''t mean it
isn''t still ugly.
因为它是一个typedef,而不是内置的原生类型。(?)
这与int16_t,int32_t等相同类别
来自''stdint.h'',size_t,fpos_t,ptrdiff_t等等。
Because it is a typedef, rather than a built-in native type.(?)
That puts it in the same category as ''int16_t'', ''int32_t'', etc
from ''stdint.h'', size_t, fpos_t, ptrdiff_t, etc, etc.
这篇关于wchar_t的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!