五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

C預(yù)處理器概述-字符集

2023-02-16 13:23 作者:C20先生  | 我要投稿

預(yù)處理器概述-字符集原文

1.1 Character sets

Source code character set processing in C and related languages is rather complicated. The C standard discusses two character sets, but there are really at least four.

The files input to CPP might be in any character set at all. CPP’s very first action, before it even looks for line boundaries, is to convert the file into the character set it uses for internal processing. That set is what the C standard calls the?source?character set. It must be isomorphic with ISO 10646, also known as Unicode. CPP uses the UTF-8 encoding of Unicode.

The character sets of the input files are specified using the?-finput-charset=?option.

All preprocessing work (the subject of the rest of this manual) is carried out in the source character set. If you request textual output from the preprocessor with the?-E?option, it will be in UTF-8.

After preprocessing is complete, string and character constants are converted again, into the?execution?character set. This character set is under control of the user; the default is UTF-8, matching the source character set. Wide string and character constants have their own character set, which is not called out specifically in the standard. Again, it is under control of the user. The default is UTF-16 or UTF-32, whichever fits in the target’s?wchar_t?type, in the target machine’s byte order.1?Octal and hexadecimal escape sequences do not undergo conversion;?'\x12'?has the value 0x12 regardless of the currently selected execution character set. All other escapes are replaced by the character in the source character set that they represent, then converted to the execution character set, just like unescaped characters.

In identifiers, characters outside the ASCII range can be specified with the ‘\u’ and ‘\U’ escapes or used directly in the input encoding. If strict ISO C90 conformance is specified with an option such as?-std=c90, or?-fno-extended-identifiers?is used, then those constructs are not permitted in identifiers.

C預(yù)處理器概述-字符集的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
涡阳县| 调兵山市| 砀山县| 广德县| 平阳县| 鲁山县| 民和| 德州市| 琼结县| 滕州市| 青冈县| 白沙| 恩施市| 屯留县| 榆林市| 卢氏县| 满洲里市| 尼木县| 肇庆市| 孝义市| 长寿区| 呼伦贝尔市| 南乐县| 阿克苏市| 平原县| 上高县| 昌都县| 法库县| 衡东县| 通渭县| 林西县| 卫辉市| 张掖市| 额济纳旗| 泰顺县| 巨鹿县| 汤原县| 公安县| 会理县| 天水市| 台州市|