title: "find" finding a character that "findr" cant
body: <p>I'm trying to determine whether a given C function requires any input arguments and then if the type is void i do some further processing.
  To do that, i read the funciton's signature into a string and then search for the last "(","void",")" inside that string. if the returned values by rfind are in that exact order, then i have a hit.
  Here's the code:</p>
  
  <pre><code>std::string::size_type positionvoidkeyword = FuncSigStringVoid.rfind("void");
  std::string::size_type positionclosebracket = FuncSigStringVoid.rfind(')');
  std::string::size_type positionopenbracket = FuncSigStringVoid.find('(');
  
  if (positionvoidkeyword &gt; positionopenbracket &amp;&amp; positionvoidkeyword &lt; positionclosebracket)
  </code></pre>
  
  <p>For all my other functions this works fine but for these two functions signatures, <code>rfind</code> wont find <code>(</code> inside the string but <code>find</code> manages to find it.</p>
  
  <pre><code>void myfunction( void   /*me is a mean comment and all ur base are belong to us!*/            )
  double loco( void  )
  </code></pre>
  
  <p>My question is what could be causing this?</p>