2.8 - [lex.header] - 【词法.头】

请不要转载本文;请不要以任何形式重新出版,发布本文;请在下载本文 24 小时内将其删除;禁止将本文用于商业目的。

2 Lexical conventions [lex]

2.8 Header names [lex.header]

 

2 词法约定 【词法】

2.8 头名称 【词法.头】

 

    header-name:
        <h-char-sequence>
        "q-char-sequence"

    h-char-sequence:
        h-char
        h-char-sequence h-char

    h-char:
        any member of the source character set except
            new-line and >

    q-char-sequence:
        q-char
        q-char-sequence q-char

    q-char:
        any member of the source character set except
            new-line and "

 

    头-名称:
        <h-字符-序列>
        "q-字符-序列"

    h-字符-序列:
        h-字符
        h-字符-序列 h-字符

    h-字符:
        源字符集中的任何字符,除了
            换行和 >

    q-字符-序列:
        q-字符
        q-字符-序列 q-字符

    q-字符:
        源字符集中的任何字符,除了
            换行和 "

 

Header name preprocessing tokens shall only appear within a #include preprocessing directive (16.2). The sequences in both forms of header-names are mapped in an implementation-defined manner to headers or to external source file names as specified in 16.2.

 

头名称预处理标记仅在 #include 预处理指令中出现(16.2)。两种形式的头名称以实现定义的方式被映射到 16.2 节指定的头或外部源文件名称。

 

If either of the characters ' or /, or either of the character sequences /* or // appears in a q-char-sequence of a h-char-sequence, or the character " appears in a h-char-sequence, the behavior is undefined.19)

 

如果字符 '/,或字符序列 /*// 中的任何一个出现在某个 q-字符-序列h-字符-序列中,或字符 " 出现在 h-字符-序列中,行为则是未定义的。19)

 

19) Thus, sequences of characters that resemble escape sequences cause undefined behavior.

 

19) 比如,转义序列一类的字符序列将导致未定义行为。

 

PREV [lex.comment] | NEXT [lex.ppnumber]上一页 【词法.注释】 | 下一页 【词法.预处理数字】
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值