File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 614614parenthesis is identified. The raw string literal is defined as the shortest sequence
615615of characters that matches the raw-string pattern
616616\begin {ncbnf }
617- \opt {encoding-prefix} \terminal {R}  raw-string
617+ \opt {encoding-prefix} raw-string
618618\end {ncbnf }
619619
620620\item  Otherwise, if the next three characters are \tcode {<::} and the subsequent character
18001800\indextext {literal!string}% 
18011801\begin {bnf }
18021802\nontermdef {string-literal}\br 
1803-     \opt {encoding-prefix} \terminal {"} \opt {s-char-sequence} \terminal {"}\br 
1804-     \opt {encoding-prefix} \terminal {R} raw-string
1803+     \opt {encoding-prefix} character-string\br 
1804+     \opt {encoding-prefix} raw-string
1805+ \end {bnf }
1806+ 
1807+ \begin {bnf }
1808+ \nontermdef {character-string}\br 
1809+     \terminal {"} \opt {s-char-sequence} \terminal {"}
18051810\end {bnf }
18061811
18071812\begin {bnf }
18241829
18251830\begin {bnf }
18261831\nontermdef {raw-string}\br 
1827-     \terminal {"} \opt {d-char-sequence} \terminal {(} \opt {r-char-sequence} \terminal {)} \opt {d-char-sequence} \terminal {"}
1832+     \terminal {R}  \terminal { "} \opt {d-char-sequence} \terminal {(} \opt {r-char-sequence} \terminal {)} \opt {d-char-sequence} \terminal {"}
18281833\end {bnf }
18291834
18301835\begin {bnf }
21112116
21122117\begin {bnf }
21132118\nontermdef {unevaluated-string}\br 
2114-     string-literal
2119+     character-string\br 
2120+     raw-string
21152121\end {bnf }
21162122
2117- \pnum 
2118- An \grammarterm {unevaluated-string} shall have no \grammarterm {encoding-prefix}.
2119- 
21202123\pnum 
21212124Each \grammarterm {universal-character-name} and each \grammarterm {simple-escape-sequence} in an \grammarterm {unevaluated-string} is
21222125replaced by the member of the translation character set it denotes.
Original file line number Diff line number Diff line change 18051805token in the replacement list.
18061806
18071807\pnum 
1808- A \defn {character string literal} is a \grammarterm {string-literal} with no prefix .
1808+ A \defn {character string literal} is a \grammarterm {characeter-string} .
18091809If, in the replacement list, a parameter is immediately
18101810preceded by a
18111811\tcode {\# }
20702070\indextext {preprocessing directive!line control}% 
20712071\indextext {\idxcode {\# line}|see{preprocessing directive, line control}}
20722072
2073- \pnum 
2074- The \grammarterm {string-literal} of a
2075- \tcode {\# line}
2076- directive, if present,
2077- shall be a character string literal\iref {cpp.stringize }.
2078- 
20792073\pnum 
20802074The
20812075\defn {line number}
21022096\pnum 
21032097A preprocessing directive of the form
21042098\begin {ncsimplebnf }
2105- \terminal {\#  line} digit-sequence \terminal {"}  \opt {string-literal}  \terminal {"}  new-line
2099+ \terminal {\#  line} digit-sequence character-string  new-line
21062100\end {ncsimplebnf }
21072101sets the presumed line number similarly and changes the
21082102presumed name of the source file to be the contents
2109- of the character  string literal .
2103+ of the \grammarterm { character- string} .
21102104
21112105\pnum 
21122106A preprocessing directive of the form
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments