home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c++.moderated      Moderated discussion of C++ superhackery      33,346 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 32,985 of 33,346   
   kbart.misc@googlemail.com to All   
   Re: Raw strings with trigraphs and \\n s   
   18 Apr 13 02:12:21   
   
   { Reformatted; please limit your lines to 70 characters, and do not   
   insert empty lines in quoted sections. -mod }   
      
   > And there issue. According 2.2 in the first phase of translation all   
   > trigraph sequences are replaced by corresponding single-character   
   > internal representations, and in the second phase each instance of a   
   > backslash character (\) immediately followed by a new-line character   
   > is deleted. So, after first and second phase from source will be   
   > already deleted trigraphs and \\n sequences. How then they can occur   
   > as-is in raw strings, which are processing only in third phase?   
      
   You have missed 2.5.3 part which states:   
   "If the next character begins a sequence of characters that could be   
   the prefix and initial double quote of a raw string literal, such as   
   R", the next preprocessing token shall be a raw string   
   literal. Between the initial and final double quote characters of the   
   raw string, any transformations performed in phases 1 and 2   
   (trigraphs, universal-character-names, and line splicing) are   
   reverted;"   
      
      
   --   
         [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
         [ comp.lang.c++.moderated.    First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca