Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / ACE / apps / JAWS2 / HTTP_10.cpp
blobe3d7e08a06b569b32256c5a423d0aefe079380a8
1 #include "HTTP_10.h"
3 #include "JAWS/JAWS.h"
7 char *
8 JAWS_HTTP_10_Helper::HTTP_decode_string (char *path)
10 // replace the percentcodes with the actual character
11 int i, j;
12 char percentcode[3];
14 for (i = j = 0; path[i] != '\0'; i++, j++)
16 if (path[i] == '%')
18 percentcode[0] = path[++i];
19 percentcode[1] = path[++i];
20 percentcode[2] = '\0';
21 path[j] = (char) ACE_OS::strtol (percentcode, (char **) 0, 16);
23 else
24 path[j] = path[i];
27 path[j] = path[i];
29 return path;