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
1175 s = va_arg(arg, char *); in curl_easy_setopt_ccsid()
1178 if(s) { in curl_easy_setopt_ccsid()
1179 s = dynconvert(ASCII_CCSID, s, -1, ccsid); in curl_easy_setopt_ccsid()
1181 if(!s) { in curl_easy_setopt_ccsid()
1187 result = curl_easy_setopt(easy, tag, s); in curl_easy_setopt_ccsid()
1188 free(s); in curl_easy_setopt_ccsid()
1195 s = va_arg(arg, char *); in curl_easy_setopt_ccsid()
1200 if(!s || !pfsize || ccsid == NOCONV_CCSID || ccsid == ASCII_CCSID) { in curl_easy_setopt_ccsid()
1201 result = curl_easy_setopt(easy, CURLOPT_COPYPOSTFIELDS, s); in curl_easy_setopt_ccsid()
1207 s = dynconvert(ASCII_CCSID, s, -1, ccsid); in curl_easy_setopt_ccsid()
1209 if(!s) { in curl_easy_setopt_ccsid()
1236 pfsize = convert(cp, pfsize, ASCII_CCSID, s, len, ccsid); in curl_easy_setopt_ccsid()
1244 s = cp; in curl_easy_setopt_ccsid()
1247 result = curl_easy_setopt(easy, CURLOPT_POSTFIELDS, s); in curl_easy_setopt_ccsid()
1248 easy->set.str[STRING_COPYPOSTFIELDS] = s; /* Give to library. */ in curl_easy_setopt_ccsid()
1338 char *s = curl_pushheader_bynum(h, num); in curl_pushheader_bynum_cssid() local
1340 if(s) in curl_pushheader_bynum_cssid()
1341 d = dynconvert(ccsid, s, -1, ASCII_CCSID); in curl_pushheader_bynum_cssid()
1357 char *s = curl_pushheader_byname(h, header); in curl_pushheader_byname_ccsid() local
1360 if(s) in curl_pushheader_byname_ccsid()
1361 d = dynconvert(ccsidout, s, -1, ASCII_CCSID); in curl_pushheader_byname_ccsid()
1372 char *s = (char *) NULL; in mime_string_call() local
1377 s = dynconvert(ASCII_CCSID, string, -1, ccsid); in mime_string_call()
1378 if(!s) in mime_string_call()
1381 result = mimefunc(part, s); in mime_string_call()
1382 free(s); in mime_string_call()
1424 char *s = (char *) NULL; in curl_mime_data_ccsid() local
1429 s = dynconvert(ASCII_CCSID, data, datasize, ccsid); in curl_mime_data_ccsid()
1430 if(!s) in curl_mime_data_ccsid()
1433 result = curl_mime_data(part, s, datasize); in curl_mime_data_ccsid()
1434 free(s); in curl_mime_data_ccsid()
1442 char *s = (char *)NULL; in curl_url_get_ccsid() local
1449 result = curl_url_get(handle, what, &s, flags); in curl_url_get_ccsid()
1451 if(s) { in curl_url_get_ccsid()
1452 *part = dynconvert(ccsid, s, -1, ASCII_CCSID); in curl_url_get_ccsid()
1457 if(s) in curl_url_get_ccsid()
1458 free(s); in curl_url_get_ccsid()
1466 char *s = (char *)NULL; in curl_url_set_ccsid() local
1470 s = dynconvert(ASCII_CCSID, part, -1, ccsid); in curl_url_set_ccsid()
1471 if(!s) in curl_url_set_ccsid()
1474 result = curl_url_set(handle, what, s, flags); in curl_url_set_ccsid()
1475 if(s) in curl_url_set_ccsid()
1476 free(s); in curl_url_set_ccsid()
1486 char *s = dynconvert(ASCII_CCSID, name, -1, ccsid); in curl_easy_option_by_name_ccsid() local
1488 if(s) { in curl_easy_option_by_name_ccsid()
1489 option = curl_easy_option_by_name(s); in curl_easy_option_by_name_ccsid()
1490 free(s); in curl_easy_option_by_name_ccsid()
1519 char *s = dynconvert(ASCII_CCSID, name, -1, ccsid); in curl_easy_header_ccsid() local
1522 if(s) { in curl_easy_header_ccsid()
1523 result = curl_easy_header(easy, s, index, origin, request, hout); in curl_easy_header_ccsid()
1524 free(s); in curl_easy_header_ccsid()