<?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[Wo sind die Funktionen für Strings?]]></title><description><![CDATA[<p>Hallo,<br />
für C-Strings gibt es doch in &lt;cstring&gt; so ganz viele Funktionen, wie zum Beispiel die Länge aller Buchstaben aufzuzählen , oder einen bestimmten Buchstaben in der Zeichenkette suchen.......in welcher Header Datei sind den diese Funktionen für Strings? Befinden sich die einfach in &lt;string&gt; oder sind die irgendwie in einem anderen Header?<br />
Und was wie heißen die Funktionen da, bzw. hätte jemand einen Link für mich in dem diese kurz beschrieben werden.<br />
Also nochmal so ganz grob ich suche sowas für Strings, wie &lt;cstring&gt; bei C-Strings.<br />
Dankeschön schon mal im Voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182723/wo-sind-die-funktionen-für-strings</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 01:17:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182723.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 May 2007 15:14:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:14:56 GMT]]></title><description><![CDATA[<p>Hallo,<br />
für C-Strings gibt es doch in &lt;cstring&gt; so ganz viele Funktionen, wie zum Beispiel die Länge aller Buchstaben aufzuzählen , oder einen bestimmten Buchstaben in der Zeichenkette suchen.......in welcher Header Datei sind den diese Funktionen für Strings? Befinden sich die einfach in &lt;string&gt; oder sind die irgendwie in einem anderen Header?<br />
Und was wie heißen die Funktionen da, bzw. hätte jemand einen Link für mich in dem diese kurz beschrieben werden.<br />
Also nochmal so ganz grob ich suche sowas für Strings, wie &lt;cstring&gt; bei C-Strings.<br />
Dankeschön schon mal im Voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293837</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Mon, 28 May 2007 15:14:56 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:16:30 GMT]]></title><description><![CDATA[<p>Die meisten Sachen sind ja ein Member der String-Klasse. Ansonsten kannst du eben viel aus &lt;algorithm&gt; oder andere Algorithmen die mit Iteratoren arbeiten darauf anwenden.</p>
<p>Weiterhin gibt es noch boost.string_algo. Dort sind einige nette Sachen enthalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293838</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293838</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Mon, 28 May 2007 15:16:30 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:27:29 GMT]]></title><description><![CDATA[<p>Mh also jetzt z.B. wenn ich einen string habe:</p>
<pre><code class="language-cpp">string s=&quot;Berlin&quot;;
</code></pre>
<p>Und jetzt will ich alle Buchstaben in GROßBUCHSTABEN umwandeln. --&gt; BERLIN<br />
Gibt es hier jetzt eine vorgefertigte Funktion für strings die man hier anwenden kann, oder muss ich mir die selber bauen, was also heißen würde den string in char umzuwandeln und dann irgendwie mit &lt;cctype&gt; und toupper....weiterarbeiten.<br />
Dankeschön schon mal im Voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293848</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Mon, 28 May 2007 15:27:29 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:27:47 GMT]]></title><description><![CDATA[<p>In C++ gibt es die aus C bekannten Routinen für POD-Strings (char*) wie strlen(), strcpy(), strchr(), strcmp() in &lt;cstring&gt;.<br />
Das Stringobjekt std::basic_string&lt;&gt; oder auch seine Spezialisierung auf Characters std::string kommen aus &lt;string&gt; und finden sich im namespace std, wie alles aus der STL. Als Objekte wissen Strings in C++ am besten selbst, was man mit ihnen machen kann und bringen dementsprechende Methoden mit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293849</guid><dc:creator><![CDATA[kenner der dummköpfe]]></dc:creator><pubDate>Mon, 28 May 2007 15:27:47 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:42:52 GMT]]></title><description><![CDATA[<p>@kenner der dummköpfe<br />
Also irgendwie hört sich das ja schön an was du schreibst, aber ich versteh das irgendwie nicht, und somit bleiben meine Fragen leider offen.<br />
Wie würdest du den z.B. das Problem mit dem string (aus meinem letzten Posting)<br />
und der Großbuchstaben schreibung lösen?<br />
Dankeschön schon mal im Voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293863</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Mon, 28 May 2007 15:42:52 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 15:44:40 GMT]]></title><description><![CDATA[<p><a href="http://fara.cs.uni-potsdam.de/~kaufmann/?page=GenCppFaqs&amp;faq=stricmp#Answ" rel="nofollow">http://fara.cs.uni-potsdam.de/~kaufmann/?page=GenCppFaqs&amp;faq=stricmp#Answ</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293865</guid><dc:creator><![CDATA[bens]]></dc:creator><pubDate>Mon, 28 May 2007 15:44:40 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 16:47:12 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/14886">@Stromberg</a>: Die Funktionen für Strings sind hier:<br />
<a href="http://www.oop-mit-cpp.de/stdbib_html/p133.html" rel="nofollow">http://www.oop-mit-cpp.de/stdbib_html/p133.html</a><br />
So etwas wie toupper/tolower ist nicht dabei, aber es geht mit transform, wie schon im Link von bens angedeutet. ZB. Umwandlung in Kleinbuchstaben:</p>
<pre><code class="language-cpp">string s(&quot;ABC123&quot;);
transform(s.begin(), s.end(), s.begin(), tolower);
</code></pre>
<p>siehe <a href="http://www.oop-mit-cpp.de/stdbib_html/p56.html" rel="nofollow">http://www.oop-mit-cpp.de/stdbib_html/p56.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293918</guid><dc:creator><![CDATA[UBr]]></dc:creator><pubDate>Mon, 28 May 2007 16:47:12 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 16:49:59 GMT]]></title><description><![CDATA[<p>Die meisten Funktionen für Strings sind linksoben. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f4a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--light_bulb"
      title=":bulb:"
      alt="💡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293921</guid><dc:creator><![CDATA[zeiger]]></dc:creator><pubDate>Mon, 28 May 2007 16:49:59 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 17:06:22 GMT]]></title><description><![CDATA[<p>UBr schrieb:</p>
<blockquote>
<pre><code class="language-cpp">string s(&quot;ABC123&quot;);
transform(s.begin(), s.end(), s.begin(), tolower);
</code></pre>
</blockquote>
<p>entfern lieber den code, denn er ist nicht portabel. wirft ein schlechtes bild auf dein buch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293937</guid><dc:creator><![CDATA[333]]></dc:creator><pubDate>Mon, 28 May 2007 17:06:22 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 17:11:28 GMT]]></title><description><![CDATA[<p>gesucht war</p>
<blockquote>
<p>etwas für Strings, wie &lt;cstring&gt; bei C-Strings.</p>
</blockquote>
<p>Umlaute werden natürlich nicht berücksichtigt usw., d.h. der Code ist genauso so portabel bzw. unportabel wie &lt;cstring&gt; eben ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293946</guid><dc:creator><![CDATA[UBr]]></dc:creator><pubDate>Mon, 28 May 2007 17:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 18:14:01 GMT]]></title><description><![CDATA[<p>UBr schrieb:</p>
<blockquote>
<p>gesucht war</p>
<blockquote>
<p>etwas für Strings, wie &lt;cstring&gt; bei C-Strings.</p>
</blockquote>
<p>Umlaute werden natürlich nicht berücksichtigt usw., d.h. der Code ist genauso so portabel bzw. unportabel wie &lt;cstring&gt; eben ist.</p>
</blockquote>
<p>Stimmt so nicht. Die Funktionsweise hängt von dem globalen Locale ab.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1293979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1293979</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Mon, 28 May 2007 18:14:01 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Mon, 28 May 2007 22:04:41 GMT]]></title><description><![CDATA[<p><a href="http://c-plusplus.net/forum/viewtopic-var-t-is-180801-and-postdays-is-0-and-postorder-is-asc-and-start-is-16.html" rel="nofollow">http://c-plusplus.net/forum/viewtopic-var-t-is-180801-and-postdays-is-0-and-postorder-is-asc-and-start-is-16.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294106</guid><dc:creator><![CDATA[333]]></dc:creator><pubDate>Mon, 28 May 2007 22:04:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Tue, 29 May 2007 06:05:41 GMT]]></title><description><![CDATA[<p>lolz schrieb:</p>
<blockquote>
<p>UBr schrieb:</p>
<blockquote>
<p>gesucht war</p>
<blockquote>
<p>etwas für Strings, wie &lt;cstring&gt; bei C-Strings.</p>
</blockquote>
<p>Umlaute werden natürlich nicht berücksichtigt usw., d.h. der Code ist genauso so portabel bzw. unportabel wie &lt;cstring&gt; eben ist.</p>
</blockquote>
<p>Stimmt so nicht. Die Funktionsweise hängt von dem globalen Locale ab.</p>
</blockquote>
<p>und auch von dem vom Compiler verwendeten Zeichensatz.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294168</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294168</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Tue, 29 May 2007 06:05:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Tue, 29 May 2007 06:20:08 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5202">@otze</a>: Die Funktionsweise hat mit dem &quot;Zeichensatz des Compilers&quot; (-&gt; Zeichensatz in dem er Source Files interpretiert) garnix zu tun, sondern wie schon geschrieben wurde mit der globalen locale.</p>
<p>Wenn man was sucht worauf man sich verlassen kann und was wirklich portabel ist muss man wohl auf eine externe Unicode lib zurückgreifen, ala ICU. (OK, ICU ist ein schlechtes Beispiel weil voll mit Bugs, wird aber dennoch sehr häufig verwendet.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294174</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294174</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Tue, 29 May 2007 06:20:08 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Tue, 29 May 2007 07:19:09 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/5202">@otze</a>: Die Funktionsweise hat mit dem &quot;Zeichensatz des Compilers&quot; (-&gt; Zeichensatz in dem er Source Files interpretiert) garnix zu tun, sondern wie schon geschrieben wurde mit der globalen locale.</p>
</blockquote>
<p>wenn der compiler keine umlaute in string literalen in seinem grundzeichensatz kennt, ist das nicht möglich,diese literale korrekt umzuwandeln. Locale hin oder her, du kriegst immer ein falsches Ergebnis.</p>
<p>2.13.2.5</p>
<blockquote>
<p>A universal-character-name is translated to the encoding, in the execution character set, of the character named. If there is no such encoding, the universal-character-name is translated to an implementationdefined encoding.<br />
[Note: in translation phase 1, a universal-character-name is introduced whenever an actual extended character is encountered in the source text. Therefore, all extended characters are described in terms of universal-character-names. However, the actual compiler implementation may use its own native character set, so long as the same results are obtained. ]</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1294192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294192</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Tue, 29 May 2007 07:19:09 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Tue, 29 May 2007 07:42:31 GMT]]></title><description><![CDATA[<p>Deshalb sollte man, um ganz Sicher zu gehen, Sonderzeichen immer mit dem Unicode-Escapezeichen eingeben:</p>
<pre><code class="language-cpp">string s(L&quot;\u0041&quot;); // Unicode-Zeichen #41
</code></pre>
<p>Sobald jemand die cpp-Datei in einem nicht Unicode-Editor öffnet und abspeichert, ist alles dahin. Mit den \u-Escape kann das nicht passieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294212</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294212</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Tue, 29 May 2007 07:42:31 GMT</pubDate></item><item><title><![CDATA[Reply to Wo sind die Funktionen für Strings? on Tue, 29 May 2007 16:14:49 GMT]]></title><description><![CDATA[<p>Richtig. Java hat wegen dieses Problems konsequent auf Unicode gesetzt. Im nächsten C++-Standard soll C++ als Ergänzung zu wchar_t deshalb zwei weitere Datentypen erhalten, char16_t und char 32_t (<a href="http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2149.html" rel="nofollow">http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2149.html</a>). Im Standardentwurf vom 7.5.2007 sind diese neuen Typen enthalten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1294630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1294630</guid><dc:creator><![CDATA[UBr]]></dc:creator><pubDate>Tue, 29 May 2007 16:14:49 GMT</pubDate></item></channel></rss>