Char32 t

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo | name = char32_t | formattype = electronic | subcat = Data types | subcat2 = C++ data types | subcat3 = | subcat4 = ...")
 
(released)
 
Line 16: Line 16:
 
| uniform type  =
 
| uniform type  =
 
| conforms to    =  
 
| conforms to    =  
| released      =
+
| released      = 2011
 
| image          =  
 
| image          =  
 
| caption        =  
 
| caption        =  

Latest revision as of 06:58, 13 May 2015

File Format
Name char32_t
Ontology
Released 2011


C++ char32_t is guaranteed to never use less bits than char16_t and to be no less than 32 bits wide. This means that it can successfully store any UCS-4 character value.

Character literal must use single quotes preceding with the letter U (For example U'貓'). It is also possible to use octal or hexadecimal representation to produce literals.

char32_t is considered to be enumerable (thus you can use characters in constructs like switch).

[edit] Other C++ data types storing symbols

  • char no less than 8 bits, one byte.
  • char16_t no less than 16 bits, no less than char
  • wchar_t whatever the largest block of addressable memory happens to be on the system
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox