<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: Word Counting in C++: Extracting words from camelCase symbols	</title>
	<atom:link href="https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/</link>
	<description>Jonathan Boccara&#039;s blog</description>
	<lastBuildDate>Thu, 08 Nov 2018 12:17:00 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.3</generator>
	<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1447</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Thu, 08 Nov 2018 12:17:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4285#comment-1447</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1436&quot;&gt;Colin Pitrat&lt;/a&gt;.

Great, thanks for the suggestion! I will try it in the code.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1436">Colin Pitrat</a>.</p>
<p>Great, thanks for the suggestion! I will try it in the code.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Colin Pitrat		</title>
		<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1436</link>

		<dc:creator><![CDATA[Colin Pitrat]]></dc:creator>
		<pubDate>Sun, 04 Nov 2018 19:27:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4285#comment-1436</guid>

					<description><![CDATA[&quot;it duplicates the code performing the search of the beginning of a word, and I’d be glad to hear your suggestions to improve it&quot;

Well, you can simply use an infinite loop &#038; break:

auto beginWord = begin(code);
for(;;)
{
    beginWord = std::find_if_not(endWord, end(code), isDelimiter);
    if(beginWord == end(code)) break;
    auto endWord = std::find_if(std::next(beginWord), end(code), [](char c){ return isDelimiter(c) &#124;&#124; isupper(c); });
    words.emplace_back(beginWord, endWord);
}]]></description>
			<content:encoded><![CDATA[<p>&#8220;it duplicates the code performing the search of the beginning of a word, and I’d be glad to hear your suggestions to improve it&#8221;</p>
<p>Well, you can simply use an infinite loop &amp; break:</p>
<p>auto beginWord = begin(code);<br />
for(;;)<br />
{<br />
    beginWord = std::find_if_not(endWord, end(code), isDelimiter);<br />
    if(beginWord == end(code)) break;<br />
    auto endWord = std::find_if(std::next(beginWord), end(code), [](char c){ return isDelimiter(c) || isupper(c); });<br />
    words.emplace_back(beginWord, endWord);<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jonathan Boccara		</title>
		<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1403</link>

		<dc:creator><![CDATA[Jonathan Boccara]]></dc:creator>
		<pubDate>Tue, 23 Oct 2018 20:36:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4285#comment-1403</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1397&quot;&gt;flowing&lt;/a&gt;.

I see your point. Then in the example of XCoordinate and YCoordinate, how many time do you think we should count the word Coordinate? 0 or 2?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1397">flowing</a>.</p>
<p>I see your point. Then in the example of XCoordinate and YCoordinate, how many time do you think we should count the word Coordinate? 0 or 2?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: flowing		</title>
		<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1397</link>

		<dc:creator><![CDATA[flowing]]></dc:creator>
		<pubDate>Sat, 20 Oct 2018 08:58:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4285#comment-1397</guid>

					<description><![CDATA[The camel case splitting would split ALL_UPPERCASE_VARIABLES into single letters and bigrams with underscores. At least, it would have to check if the preceding character is lowercase to work properly.]]></description>
			<content:encoded><![CDATA[<p>The camel case splitting would split ALL_UPPERCASE_VARIABLES into single letters and bigrams with underscores. At least, it would have to check if the preceding character is lowercase to work properly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jft		</title>
		<link>https://www.fluentcpp.com/2018/10/16/word-counting-cpp-camelcase/#comment-1393</link>

		<dc:creator><![CDATA[jft]]></dc:creator>
		<pubDate>Wed, 17 Oct 2018 08:46:00 +0000</pubDate>
		<guid isPermaLink="false">https://www.fluentcpp.com/?p=4285#comment-1393</guid>

					<description><![CDATA[&quot;suggestions to improve it, and potentially to simplify it by using STL algorithms&quot;

Well &#039;simplification&#039; is in the eye of the beholder, of course, But this can be done as a 1 liner

std::vector getCamelCaseWordsFromCode(std::string const&#038; code)
{
	auto words = std::vector {};
 
	for (auto beginWord = begin(code), endWord = beginWord; (beginWord = std::find_if_not(endWord, end(code), isDelimiter)) != end(code); words.emplace_back(beginWord, endWord = std::find_if(std::next(beginWord), end(code), [](char c) { return isDelimiter(c) &#124;&#124; isupper(c); })));
 
	return words;
}]]></description>
			<content:encoded><![CDATA[<p>&#8220;suggestions to improve it, and potentially to simplify it by using STL algorithms&#8221;</p>
<p>Well &#8216;simplification&#8217; is in the eye of the beholder, of course, But this can be done as a 1 liner</p>
<p>std::vector getCamelCaseWordsFromCode(std::string const&amp; code)<br />
{<br />
	auto words = std::vector {};</p>
<p>	for (auto beginWord = begin(code), endWord = beginWord; (beginWord = std::find_if_not(endWord, end(code), isDelimiter)) != end(code); words.emplace_back(beginWord, endWord = std::find_if(std::next(beginWord), end(code), [](char c) { return isDelimiter(c) || isupper(c); })));</p>
<p>	return words;<br />
}</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
