File: wchar.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (9 lines) | stat: -rw-r--r-- 532 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
The ti(wchar_t) type is an extension of the tt(char) built-in type, to accommodate
em(wide) character values (but see also the next section).  The tt(g++)
compiler reports tt(sizeof(wchar_t)) as 4, which easily accommodates all 65,536
different em(Unicode) character values.

Note that bf(Java)'s tt(char) data type is somewhat comparable to bf(C++)'s
tt(wchar_t) type. bf(Java)'s tt(char) type is 2 bytes wide, though. On the
other hand, bf(Java)'s tt(byte) data type is comparable to bf(C++)'s tt(char)
type: one byte. Confusing?