<?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[Switch für einzelne Zeichen im wstring]]></title><description><![CDATA[<p>Hallo ,</p>
<p>habe eine Frage was wstring betrifft:</p>
<p>Ich itteriere über den wstring und möchte einzelne Zeichen abfragen.</p>
<p>Der switch akzeptiert aber die ienzelnen zeichen nicht.</p>
<pre><code class="language-cpp">void  Maskiere( std::wstring p_sText ) 
{		
    string::iterator iter;
    for ( iter = p_sText.begin(); iter != p_sText.end(); ++iter ){
	switch( *iter ) {
	    case '&gt;' : { sReturnValue &lt;&lt; &quot;&amp;gt;&quot;; break; }
	    case '&lt;' : { sReturnValue &lt;&lt; &quot;&amp;lt;&quot;; break; }
	    case '&quot;' : { sReturnValue &lt;&lt; &quot;&amp;quot;&quot;; break; }
	    case '&amp;' : { sReturnValue &lt;&lt; &quot;&amp;amp;&quot;; break; }

..........
</code></pre>
<p>Gibt es hier eine andere Möglichkeit als einen Aufzählungstyp zu benutze ?</p>
<p>Danke.</p>
<p>Viele Grüße,<br />
Elke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/146932/switch-für-einzelne-zeichen-im-wstring</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 21:35:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/146932.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 May 2006 08:15:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Switch für einzelne Zeichen im wstring on Fri, 12 May 2006 08:15:14 GMT]]></title><description><![CDATA[<p>Hallo ,</p>
<p>habe eine Frage was wstring betrifft:</p>
<p>Ich itteriere über den wstring und möchte einzelne Zeichen abfragen.</p>
<p>Der switch akzeptiert aber die ienzelnen zeichen nicht.</p>
<pre><code class="language-cpp">void  Maskiere( std::wstring p_sText ) 
{		
    string::iterator iter;
    for ( iter = p_sText.begin(); iter != p_sText.end(); ++iter ){
	switch( *iter ) {
	    case '&gt;' : { sReturnValue &lt;&lt; &quot;&amp;gt;&quot;; break; }
	    case '&lt;' : { sReturnValue &lt;&lt; &quot;&amp;lt;&quot;; break; }
	    case '&quot;' : { sReturnValue &lt;&lt; &quot;&amp;quot;&quot;; break; }
	    case '&amp;' : { sReturnValue &lt;&lt; &quot;&amp;amp;&quot;; break; }

..........
</code></pre>
<p>Gibt es hier eine andere Möglichkeit als einen Aufzählungstyp zu benutze ?</p>
<p>Danke.</p>
<p>Viele Grüße,<br />
Elke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1056172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056172</guid><dc:creator><![CDATA[Elke100]]></dc:creator><pubDate>Fri, 12 May 2006 08:15:14 GMT</pubDate></item><item><title><![CDATA[Reply to Switch für einzelne Zeichen im wstring on Fri, 12 May 2006 09:03:55 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-146933.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-146933.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1056241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1056241</guid><dc:creator><![CDATA[HumeSikkins]]></dc:creator><pubDate>Fri, 12 May 2006 09:03:55 GMT</pubDate></item></channel></rss>