<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[zwei stringliterale aneinanderhängen]]></title><description><![CDATA[<p>also ich weiß dass das hier geht:</p>
<pre><code>const char* foo = &quot;hall&quot; &quot;o w&quot; &quot;elt&quot;;
</code></pre>
<p>aber wieso? genauer gesagt, wo im standard steht, dass das geht?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/328566/zwei-stringliterale-aneinanderhängen</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 17:18:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328566.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Oct 2014 15:43:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zwei stringliterale aneinanderhängen on Thu, 16 Oct 2014 15:43:39 GMT]]></title><description><![CDATA[<p>also ich weiß dass das hier geht:</p>
<pre><code>const char* foo = &quot;hall&quot; &quot;o w&quot; &quot;elt&quot;;
</code></pre>
<p>aber wieso? genauer gesagt, wo im standard steht, dass das geht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2422511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2422511</guid><dc:creator><![CDATA[hanstroll123]]></dc:creator><pubDate>Thu, 16 Oct 2014 15:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to zwei stringliterale aneinanderhängen on Thu, 16 Oct 2014 15:51:04 GMT]]></title><description><![CDATA[<p>Phase Sechs der Übersetzung:</p>
<p>[lex.phases]/6 schrieb:</p>
<blockquote>
<p>6. Adjacent string literal tokens are concatenated.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2422512</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2422512</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Thu, 16 Oct 2014 15:51:04 GMT</pubDate></item><item><title><![CDATA[Reply to zwei stringliterale aneinanderhängen on Thu, 16 Oct 2014 15:53:30 GMT]]></title><description><![CDATA[<p>Es steht sowohl im Abschnitt über Stringliterale sowie im Abschnitt über die Phasen der Übersetzung. Wo hast du gesucht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2422513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2422513</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Thu, 16 Oct 2014 15:53:30 GMT</pubDate></item><item><title><![CDATA[Reply to zwei stringliterale aneinanderhängen on Thu, 16 Oct 2014 15:56:30 GMT]]></title><description><![CDATA[<p>Genauer wird das Ganze in [lex.string]/13 beschrieben:</p>
<blockquote>
<p>In translation phase 6 (2.2), adjacent string literals are concatenated. If both string literals have the same <em>encoding-prefix</em>, the resulting concatenated string literal has that <em>encoding-prefix</em>. If one string literal has no <em>encoding-prefix</em>, it is treated as a string literal of the same <em>encoding-prefix</em> as the other operand. If a UTF-8 string literal token is adjacent to a wide string literal token, the program is ill-formed. Any other concatenations are conditionally supported with implementation-defined behavior.<br />
[ <em>Note:</em> This concatenation is an interpretation, not a conversion. Because the interpretation happens in translation phase 6 (after each character from a literal has been translated into a value from the appropriate character set), a string literal’s initial rawness has no effect on the interpretation or well-formedness of the concatenation. <em>— end note</em> ]<br />
[...]<br />
Characters in concatenated strings are kept distinct.<br />
[ <em>Example:</em></p>
<pre><code>&quot;\xA&quot; &quot;B&quot;
</code></pre>
<p>contains the two characters <code>’\xA’</code> and <code>’B’</code> after concatenation (and not the single hexadecimal character <code>’\xAB’</code> ). <em>— end example</em> ]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/2422515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2422515</guid><dc:creator><![CDATA[Columbo]]></dc:creator><pubDate>Thu, 16 Oct 2014 15:56:30 GMT</pubDate></item></channel></rss>