Lines 315-321
WvString url_decode(WvStringParm str, bo
Link Here
|
315 |
|
315 |
|
316 |
const char *iptr; |
316 |
const char *iptr; |
317 |
char *optr; |
317 |
char *optr; |
318 |
char *idx1, *idx2; |
318 |
const char *idx1, *idx2; |
319 |
static const char hex[] = "0123456789ABCDEF"; |
319 |
static const char hex[] = "0123456789ABCDEF"; |
320 |
WvString in, intmp(str), out; |
320 |
WvString in, intmp(str), out; |
321 |
|
321 |
|
Lines 967-973
WvString afterstr(WvStringParm line, WvS
Link Here
|
967 |
if (!line || !a) |
967 |
if (!line || !a) |
968 |
return WvString::null; |
968 |
return WvString::null; |
969 |
|
969 |
|
970 |
char *loc = strstr(line, a); |
970 |
const char *loc = strstr(line, a); |
971 |
if (loc == 0) |
971 |
if (loc == 0) |
972 |
return ""; |
972 |
return ""; |
973 |
|
973 |
|
Lines 984-991
WvString beforestr(WvStringParm line, Wv
Link Here
|
984 |
return WvString::null; |
984 |
return WvString::null; |
985 |
|
985 |
|
986 |
WvString ret = line; |
986 |
WvString ret = line; |
987 |
ret.unique(); |
987 |
ret.unique(); |
988 |
char *loc = strstr(ret, a); |
988 |
char *loc = strstr(ret.edit(), a); |
989 |
|
989 |
|
990 |
if (loc == 0) |
990 |
if (loc == 0) |
991 |
return line; |
991 |
return line; |