C++98 apparently has this as one of the standards for compilation phases. What does it mean and why is it executed initially?
C++98 apparently has this as one of the standards for compilation phases. What does
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A universal character name looks like
\uFFFDor\U0010FFFD. It’s a method of writing a character in your source code where the source code encoding does not include that character.C++ specifies that characters not in the basic source character set be transformed into universal character names in the first phase of translation. The reason for this is so that universal character names and characters which are not in the basic source character set but which are in the source character set get treated identically.
The as-if rule means that an implementation is not actually required to do this universal character name translation, as long as it treats extended characters written as universal character names identically with extended characters that appear literally in the source.