<?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[wchar_t]]></title><description><![CDATA[<p>Ich habe noch ein Problem:</p>
<p>Ich habe bei dem FAQ Eintrag konvertierung absolut nichts verstanden...</p>
<p>ich überlege mir schon lange, wie ich diese zwei funktionen schreiben kann.</p>
<pre><code class="language-cpp">void wchar_t* convert(const std::basic_string&lt;char&gt;&amp; str)
{
}

void char* convert(const std::basic_string&lt;wchar_t&gt;&amp; str)
{
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/138102/wchar_t</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 00:44:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/138102.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Feb 2006 12:39:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 12:39:27 GMT]]></title><description><![CDATA[<p>Ich habe noch ein Problem:</p>
<p>Ich habe bei dem FAQ Eintrag konvertierung absolut nichts verstanden...</p>
<p>ich überlege mir schon lange, wie ich diese zwei funktionen schreiben kann.</p>
<pre><code class="language-cpp">void wchar_t* convert(const std::basic_string&lt;char&gt;&amp; str)
{
}

void char* convert(const std::basic_string&lt;wchar_t&gt;&amp; str)
{
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1001050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001050</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Thu, 23 Feb 2006 12:39:27 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 12:49:35 GMT]]></title><description><![CDATA[<p>erstmal: Was ist bitteschön &quot;void char*&quot; für ein Typ? (wenn du schon Standard-Typen verwendest, dann gib bitte auch basic_string's zurück)</p>
<p>Zweitens: char* nach wchar_t* dürfte recht einfach sein, indem du die Werte einzeln überträgst, die umgekehrte Richtung ist schwieriger, da nicht jedes wchar_t einem char zugeordnet werden kann.</p>
<p>Drittens: Unter MFC gibt es ein Set von Makros (A2W,W2A und noch ein paar Variantionen wie T2W oder A2CW), die du dir eventuell mal ansehen solltest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1001061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001061</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 23 Feb 2006 12:49:35 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 13:29:49 GMT]]></title><description><![CDATA[<p>Welche Funktion ersetzt strlen(const char* str)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1001082</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001082</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Thu, 23 Feb 2006 13:29:49 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 13:32:37 GMT]]></title><description><![CDATA[<p>Was meinst du mit &quot;ersetzen&quot;? (w)string's haben eine Memberfunktion length() und size(), für einfache wchar_t* kannst du wsclen() verwenden (vermutlich nicht portabel) oder selber etwas schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1001085</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001085</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Thu, 23 Feb 2006 13:32:37 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 13:34:41 GMT]]></title><description><![CDATA[<p>Warum funktioniert das hier nicht?</p>
<p>bool image::load(const std::basic_string&lt;wchar_t&gt;&amp; name)<br />
{<br />
// Dateiendung ermitteln<br />
std::basic_string&lt;wchar_t&gt; cap;<br />
for(unsigned int c = 0; c &lt; name.length(); c ++)<br />
cap[c] = toupper(name[c]); // &lt;--</p>
<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1001086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001086</guid><dc:creator><![CDATA[sabse]]></dc:creator><pubDate>Thu, 23 Feb 2006 13:34:41 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t on Thu, 23 Feb 2006 13:49:18 GMT]]></title><description><![CDATA[<p><a href="http://man.cx/toupper" rel="nofollow">man: toupper</a> und andere Funktionen sind zwar als 'int' deklariert, sind aber in Wirklichkeit nur für char's vorgesehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1001099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1001099</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 23 Feb 2006 13:49:18 GMT</pubDate></item></channel></rss>