On 10/28/2010 4:10 PM, John Dlugosz wrote:
I need to (among other tasks) un-encode some substitutions in a string that use URL-encoding. That is, locate all occurrences of “%nn” and replace with the character whose ordinal is 0xnn.
I looked at boost/algorithm/string.hpp, but the instructions are not at all clear. The tutorial/example is too simple, and the reference it points to for more info is quite unenlightening.
Could someone show me how to do that, or point to an example that’s more along those lines?
===begin corporate footer=== <snip> The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
I'm going to answer your question in spite of the potential dire legal
ramifications of doing so. PLEASE don't use sigs like this on this list.
Use Boost.Xpressive. It's the right tool for your job:
#include