title: Reverse order of hex std::string
body: <p>I'm working with an old program and need help <strong>swapping the order of a Hex String</strong>.</p>
  
  <p>Yes, a string...as in:</p>
  
  <pre><code>string hexString = "F07D0079"
  string hexString2= "F07F"
  </code></pre>
  
  <p>I need each string to look like:
  79007DF0 &amp;
  7FF0 respectively.</p>
  
  <p>For the love of god i don't know why they're stored in strings, but they are.<br>
  <strong><em>This is a little endian/big endian issue but since it's in a string i can't use standard functions to reverse the order can I?</em></strong></p>
  
  <p>Is there any easy way to do this?</p>
  
  <pre><code>std::string swapValues(string originalHex)
  {
    string swappedHex;
    //what to do here.
    return swappedHex;
  }
  </code></pre>