title: Case insensitive standard string comparison in C++
body: <pre><code>void
  main()
  {
      std::string str1 = "abracadabra";
      std::string str2 = "AbRaCaDaBra";
  
      if (!str1.compare(str2)) {
          cout &lt;&lt; "Compares"
      }
  }
  </code></pre>
  
  <p>How can I make this work? Bascially make the above case insensitive. Related question
  I Googled and here</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/zkcaxw5y.aspx">http://msdn.microsoft.com/en-us/library/zkcaxw5y.aspx</a></p>
  
  <p>there is a case insensitive method  String::Compare(str1, str2, Bool). Question is how is that related to the way I am doing. </p>