<?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[string::find_first_(not_)of  von rechts nachts links]]></title><description><![CDATA[<p>Hallo,</p>
<p>ist es irgendwie möglich,dass ich mit <strong>find_first_not_of</strong> bzw <strong>find_first_of</strong> nicht nur nach rechts sondern auch nach links nach einem Zeichen suchen kann?<br />
Ich will z.B. diesen String parsen:</p>
<blockquote>
<p>&quot;3x = 300 + <strong>500/600</strong>&quot;</p>
</blockquote>
<p>Das &quot;/&quot; finde ich mit <strong>find_first_of('/')</strong>.<br />
Das Ende des 2. Dividends kann ich mit <strong>find_first_not_of(&quot;1234567890&quot;,Bruchstrich_pos +1)</strong> finden.<br />
Um das Ende des 1. Dividends zu finden, müsste ich eine eigene Funktion schreiben,die eine Referenz auf string als Parameter hat,was ich aber nicht will sofern es sich mit der C++ Standardbibliothek irgendwie realisieren lässt.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/234752/string-find_first_-not_-of-von-rechts-nachts-links</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 08:31:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/234752.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 22 Feb 2009 03:07:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string::find_first_(not_)of  von rechts nachts links on Sun, 22 Feb 2009 03:07:49 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ist es irgendwie möglich,dass ich mit <strong>find_first_not_of</strong> bzw <strong>find_first_of</strong> nicht nur nach rechts sondern auch nach links nach einem Zeichen suchen kann?<br />
Ich will z.B. diesen String parsen:</p>
<blockquote>
<p>&quot;3x = 300 + <strong>500/600</strong>&quot;</p>
</blockquote>
<p>Das &quot;/&quot; finde ich mit <strong>find_first_of('/')</strong>.<br />
Das Ende des 2. Dividends kann ich mit <strong>find_first_not_of(&quot;1234567890&quot;,Bruchstrich_pos +1)</strong> finden.<br />
Um das Ende des 1. Dividends zu finden, müsste ich eine eigene Funktion schreiben,die eine Referenz auf string als Parameter hat,was ich aber nicht will sofern es sich mit der C++ Standardbibliothek irgendwie realisieren lässt.</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667857</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667857</guid><dc:creator><![CDATA[Programmierer]]></dc:creator><pubDate>Sun, 22 Feb 2009 03:07:49 GMT</pubDate></item><item><title><![CDATA[Reply to string::find_first_(not_)of  von rechts nachts links on Sun, 22 Feb 2009 06:38:49 GMT]]></title><description><![CDATA[<p>find_last_not_of(&quot;1234567890&quot;,Bruchstrich_pos);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667873</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sun, 22 Feb 2009 06:38:49 GMT</pubDate></item><item><title><![CDATA[Reply to string::find_first_(not_)of  von rechts nachts links on Sun, 22 Feb 2009 11:04:32 GMT]]></title><description><![CDATA[<p>Das nächste Mal vielleicht gleich hier vorbeischauen:<br />
<a href="http://www.cplusplus.com/reference/" rel="nofollow">http://www.cplusplus.com/reference/</a><br />
bzw.<br />
<a href="http://www.cplusplus.com/reference/string/string/" rel="nofollow">http://www.cplusplus.com/reference/string/string/</a></p>
<p>Erspart einem eine Menge Zeit <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667945</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Sun, 22 Feb 2009 11:04:32 GMT</pubDate></item></channel></rss>