E2558 The value '\U08x' is not within char16 t character constant (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

The char16_t character is outside the range of char16_t characters. Some UNICODE characters are outside the 16-bit area. THese characters cannot be stored into the char16_t type,


Example:

 //U+10919 PHOENICIAN NUMBER ONE HUNDRED
 const char16_t *sl = u"\U00010919"; //valid. s1 points 0xD802, 0xDD19 and 0x000 as null-terminator
 const char16_t c1 =u'\U00010919'; // error: E2558 - 0x10919 is larger than 16-bit value.