Lines Matching full:src
429 CivetServer::urlDecode(const char *src, in urlDecode() argument
433 urlDecode(src, strlen(src), dst, is_form_url_encoded); in urlDecode()
437 CivetServer::urlDecode(const char *src, in urlDecode() argument
447 if (i < (int)src_len - 2 && src[i] == '%' in urlDecode()
448 && isxdigit((unsigned char)src[i + 1]) in urlDecode()
449 && isxdigit((unsigned char)src[i + 2])) { in urlDecode()
450 a = tolower((unsigned char)src[i + 1]); in urlDecode()
451 b = tolower((unsigned char)src[i + 2]); in urlDecode()
454 } else if (is_form_url_encoded && src[i] == '+') { in urlDecode()
457 dst.push_back(src[i]); in urlDecode()
595 CivetServer::urlEncode(const char *src, std::string &dst, bool append) in urlEncode() argument
597 urlEncode(src, strlen(src), dst, append); in urlEncode()
601 CivetServer::urlEncode(const char *src, in urlEncode() argument
612 for (; src_len > 0; src++, src_len--) { in urlEncode()
613 if (isalnum((unsigned char)*src) || strchr(dont_escape, *src) != NULL) { in urlEncode()
614 dst.push_back(*src); in urlEncode()
617 dst.push_back(hex[(unsigned char)*src >> 4]); in urlEncode()
618 dst.push_back(hex[(unsigned char)*src & 0xf]); in urlEncode()