Lines Matching refs:s
109 const char *s, int slen, int sccsid) in convert() argument
130 lslen = slen >= 0 ? slen : strlen(s) + 1; in convert()
133 if(s != d && i > 0) in convert()
134 memcpy(d, s, i); in convert()
153 if((int) iconv(cd, (char * *) &s, &lslen, &d, &dlen) < 0) in convert()
163 static char *dynconvert(int dccsid, const char *s, int slen, int sccsid) in dynconvert() argument
173 dlen = (size_t) (slen < 0 ? strlen(s) : slen) + 1; in dynconvert()
180 l = convert(d, dlen, dccsid, s, slen, sccsid); in dynconvert()
261 curl_to_ccsid(const char *s, unsigned int ccsid) in curl_to_ccsid() argument
263 if(s) in curl_to_ccsid()
264 s = dynconvert(ccsid, s, -1, ASCII_CCSID); in curl_to_ccsid()
265 return s; in curl_to_ccsid()
270 curl_from_ccsid(const char *s, unsigned int ccsid) in curl_from_ccsid() argument
272 if(s) in curl_from_ccsid()
273 s = dynconvert(ASCII_CCSID, s, -1, ccsid); in curl_from_ccsid()
274 return s; in curl_from_ccsid()
289 char *s; in curl_easy_escape_ccsid() local
297 s = dynconvert(ASCII_CCSID, string, length ? length : -1, sccsid); in curl_easy_escape_ccsid()
299 if(!s) in curl_easy_escape_ccsid()
302 d = curl_easy_escape(handle, s, 0); in curl_easy_escape_ccsid()
303 free(s); in curl_easy_escape_ccsid()
308 s = dynconvert(dccsid, d, -1, ASCII_CCSID); in curl_easy_escape_ccsid()
310 return s; in curl_easy_escape_ccsid()
319 char *s; in curl_easy_unescape_ccsid() local
327 s = dynconvert(ASCII_CCSID, string, length ? length : -1, sccsid); in curl_easy_unescape_ccsid()
329 if(!s) in curl_easy_unescape_ccsid()
332 d = curl_easy_unescape(handle, s, 0, outlength); in curl_easy_unescape_ccsid()
333 free(s); in curl_easy_unescape_ccsid()
338 s = dynconvert(dccsid, d, -1, ASCII_CCSID); in curl_easy_unescape_ccsid()
341 if(s && outlength) in curl_easy_unescape_ccsid()
342 *outlength = strlen(s); in curl_easy_unescape_ccsid()
344 return s; in curl_easy_unescape_ccsid()
352 char *s; in curl_slist_append_ccsid() local
354 s = (char *) NULL; in curl_slist_append_ccsid()
359 s = dynconvert(ASCII_CCSID, data, -1, ccsid); in curl_slist_append_ccsid()
361 if(!s) in curl_slist_append_ccsid()
364 list = curl_slist_append(list, s); in curl_slist_append_ccsid()
365 free(s); in curl_slist_append_ccsid()
373 char *s; in curl_getdate_ccsid() local
379 s = dynconvert(ASCII_CCSID, p, -1, ccsid); in curl_getdate_ccsid()
381 if(!s) in curl_getdate_ccsid()
384 t = curl_getdate(s, unused); in curl_getdate_ccsid()
385 free(s); in curl_getdate_ccsid()
1071 char *s; in curl_easy_setopt_ccsid() local
1176 s = va_arg(arg, char *); in curl_easy_setopt_ccsid()
1179 if(s) { in curl_easy_setopt_ccsid()
1180 s = dynconvert(ASCII_CCSID, s, -1, ccsid); in curl_easy_setopt_ccsid()
1182 if(!s) { in curl_easy_setopt_ccsid()
1188 result = curl_easy_setopt(easy, tag, s); in curl_easy_setopt_ccsid()
1189 free(s); in curl_easy_setopt_ccsid()
1196 s = va_arg(arg, char *); in curl_easy_setopt_ccsid()
1201 if(!s || !pfsize || ccsid == NOCONV_CCSID || ccsid == ASCII_CCSID) { in curl_easy_setopt_ccsid()
1202 result = curl_easy_setopt(easy, CURLOPT_COPYPOSTFIELDS, s); in curl_easy_setopt_ccsid()
1208 s = dynconvert(ASCII_CCSID, s, -1, ccsid); in curl_easy_setopt_ccsid()
1210 if(!s) { in curl_easy_setopt_ccsid()
1237 pfsize = convert(cp, pfsize, ASCII_CCSID, s, len, ccsid); in curl_easy_setopt_ccsid()
1245 s = cp; in curl_easy_setopt_ccsid()
1248 result = curl_easy_setopt(easy, CURLOPT_POSTFIELDS, s); in curl_easy_setopt_ccsid()
1249 data->set.str[STRING_COPYPOSTFIELDS] = s; /* Give to library. */ in curl_easy_setopt_ccsid()
1339 char *s = curl_pushheader_bynum(h, num); in curl_pushheader_bynum_cssid() local
1341 if(s) in curl_pushheader_bynum_cssid()
1342 d = dynconvert(ccsid, s, -1, ASCII_CCSID); in curl_pushheader_bynum_cssid()
1358 char *s = curl_pushheader_byname(h, header); in curl_pushheader_byname_ccsid() local
1361 if(s) in curl_pushheader_byname_ccsid()
1362 d = dynconvert(ccsidout, s, -1, ASCII_CCSID); in curl_pushheader_byname_ccsid()
1373 char *s = (char *) NULL; in mime_string_call() local
1378 s = dynconvert(ASCII_CCSID, string, -1, ccsid); in mime_string_call()
1379 if(!s) in mime_string_call()
1382 result = mimefunc(part, s); in mime_string_call()
1383 free(s); in mime_string_call()
1425 char *s = (char *) NULL; in curl_mime_data_ccsid() local
1430 s = dynconvert(ASCII_CCSID, data, datasize, ccsid); in curl_mime_data_ccsid()
1431 if(!s) in curl_mime_data_ccsid()
1434 result = curl_mime_data(part, s, datasize); in curl_mime_data_ccsid()
1435 free(s); in curl_mime_data_ccsid()
1443 char *s = (char *)NULL; in curl_url_get_ccsid() local
1450 result = curl_url_get(handle, what, &s, flags); in curl_url_get_ccsid()
1452 if(s) { in curl_url_get_ccsid()
1453 *part = dynconvert(ccsid, s, -1, ASCII_CCSID); in curl_url_get_ccsid()
1458 if(s) in curl_url_get_ccsid()
1459 free(s); in curl_url_get_ccsid()
1467 char *s = (char *)NULL; in curl_url_set_ccsid() local
1471 s = dynconvert(ASCII_CCSID, part, -1, ccsid); in curl_url_set_ccsid()
1472 if(!s) in curl_url_set_ccsid()
1475 result = curl_url_set(handle, what, s, flags); in curl_url_set_ccsid()
1476 if(s) in curl_url_set_ccsid()
1477 free(s); in curl_url_set_ccsid()
1487 char *s = dynconvert(ASCII_CCSID, name, -1, ccsid); in curl_easy_option_by_name_ccsid() local
1489 if(s) { in curl_easy_option_by_name_ccsid()
1490 option = curl_easy_option_by_name(s); in curl_easy_option_by_name_ccsid()
1491 free(s); in curl_easy_option_by_name_ccsid()
1520 char *s = dynconvert(ASCII_CCSID, name, -1, ccsid); in curl_easy_header_ccsid() local
1523 if(s) { in curl_easy_header_ccsid()
1524 result = curl_easy_header(easy, s, index, origin, request, hout); in curl_easy_header_ccsid()
1525 free(s); in curl_easy_header_ccsid()