کد:
boolUrlUnescapeInplace(char*pszUrl){
constchar*src;
char*dst;
charwc;
if(!pszUrl)
returnfalse;
src=dst=pszUrl;
do
{
wc=*src;
if(wc=='%')
{
if(src[1]=='U')
{
if(unescape_char(src+2,4,&wc))
src+=4;/* Advance to end of escape */
}
else
{
if(unescape_char(src+1,2,&wc))
src+=2;/* Advance to end of escape */
}
}
*dst++=wc;
src++;
}while(wc);
returntrue;}