In the C ++ C ++ programming language 4th edition, section 6.2.6, it says:
Combinations of the prefixes R, L, and u are allowed, for example, uR "** (foo \ (bar)) **". Note the sharp difference in the value of the U prefix for a character (unsigned) and for the encoding of a UTF-32 string (§7.3.2.2).
I do not quite understand what the author is trying to say here. What is the "dramatic difference"? Why is the word "(unsigned") used here?
In my understanding, the U-prefixed character literal contains the ISO-10646 code point value of the quoted character, which basically represents the same idea as the U prefix of a string literal, and has nothing to do with the unsigned concept.
source
share