title: Change string locale
body: <p>I'm not very familiar with locale-specific conversions so I may be using the wrong terminology here. This is what I want to have happen.</p>
  
  <p>I want to write a function </p>
  
  <pre><code>std::string changeLocale( const std::string&amp; str, const std::locale&amp; loc )
  </code></pre>
  
  <p>such that if I call this function as follows:</p>
  
  <pre><code>changeLocale( std::string( "1.01" ), std::locale( "french_france" ) )
  </code></pre>
  
  <p>the output string will be "1,01"</p>
  
  <p>Thanks for your help!</p>