Lines Matching refs:str

165 static ParameterError getnum(long *val, const char *str, int base)  in getnum()  argument
167 if(str) { in getnum()
170 if(!str[0]) in getnum()
173 num = strtol(str, &endptr, base); in getnum()
176 if((endptr != str) && (*endptr == '\0')) { in getnum()
184 ParameterError str2num(long *val, const char *str) in str2num() argument
186 return getnum(val, str, 10); in str2num()
189 ParameterError oct2nummax(long *val, const char *str, long max) in oct2nummax() argument
191 ParameterError result = getnum(val, str, 8); in oct2nummax()
211 ParameterError str2unum(long *val, const char *str) in str2unum() argument
213 ParameterError result = getnum(val, str, 10); in str2unum()
232 ParameterError str2unummax(long *val, const char *str, long max) in str2unummax() argument
234 ParameterError result = str2unum(val, str); in str2unummax()
256 static ParameterError str2double(double *val, const char *str, double max) in str2double() argument
258 if(str) { in str2double()
262 num = strtod(str, &endptr); in str2double()
269 if((endptr != str) && (endptr == str + strlen(str))) { in str2double()
290 ParameterError secs2ms(long *valp, const char *str) in secs2ms() argument
293 ParameterError result = str2double(&value, str, (double)LONG_MAX/1000); in secs2ms()
364 const char * const *val, char **ostr, const char *str) in proto2num() argument
376 if(!str) in proto2num()
379 buffer = strdup(str); /* because strtok corrupts it */ in proto2num()
485 ParameterError check_protocol(const char *str) in check_protocol() argument
487 if(!str) in check_protocol()
490 if(proto_token(str)) in check_protocol()
503 ParameterError str2offset(curl_off_t *val, const char *str) in str2offset() argument
506 if(str[0] == '-') in str2offset()
512 CURLofft offt = curlx_strtoofft(str, &endptr, 10, val); in str2offset()
520 *val = strtol(str, &endptr, 0); in str2offset()
524 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
595 int ftpfilemethod(struct OperationConfig *config, const char *str) in ftpfilemethod() argument
597 if(curl_strequal("singlecwd", str)) in ftpfilemethod()
599 if(curl_strequal("nocwd", str)) in ftpfilemethod()
601 if(curl_strequal("multicwd", str)) in ftpfilemethod()
605 str); in ftpfilemethod()
610 int ftpcccmethod(struct OperationConfig *config, const char *str) in ftpcccmethod() argument
612 if(curl_strequal("passive", str)) in ftpcccmethod()
614 if(curl_strequal("active", str)) in ftpcccmethod()
618 str); in ftpcccmethod()
623 long delegation(struct OperationConfig *config, const char *str) in delegation() argument
625 if(curl_strequal("none", str)) in delegation()
627 if(curl_strequal("policy", str)) in delegation()
629 if(curl_strequal("always", str)) in delegation()
633 str); in delegation()
720 ParameterError str2tls_max(long *val, const char *str) in str2tls_max() argument
733 if(!str) in str2tls_max()
736 if(!strcmp(str, tls_max_array[i].tls_max_str)) { in str2tls_max()