42 size_t alloc = (length?(size_t)length:strlen(
string))+1;
43 char *ns = malloc(alloc);
44 char *testing_ptr =
NULL;
46 size_t newlen = alloc;
52 if(!(in >=
'a' && in <=
'z') &&
53 !(in >=
'A' && in <=
'Z') &&
54 !(in >=
'0' && in <=
'9')) {
59 testing_ptr = realloc(ns, alloc);
68 sprintf(&ns[strindex],
"%%%02X", in);
82 #define ishex(in) ((in >= 'a' && in <= 'f') || \
83 (in >= 'A' && in <= 'F') || \
84 (in >= '0' && in <= '9'))
88 int alloc = (length?length:(
int)strlen(
string))+1;
89 char *ns = malloc(alloc);
100 if((
'%' == in) &&
ishex(
string[1]) &&
ishex(
string[2])) {
104 hexstr[0] =
string[1];
105 hexstr[1] =
string[2];
108 hex = strtol(hexstr, &ptr, 16);
110 in = (
unsigned char)hex;
GLenum GLsizei const GLvoid * string
char * curl_unescape(const char *string, int length)
char * curl_escape(const char *string, int length)
GLsizei const GLcharARB const GLint * length
int sprintf(idStr &string, const char *fmt,...)