Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 107) sorted by relevance

12345

/curl/src/
H A Dtool_paramhlp.h41 ParameterError str2num(long *val, const char *str);
42 ParameterError str2unum(long *val, const char *str);
43 ParameterError oct2nummax(long *val, const char *str, long max);
44 ParameterError str2unummax(long *val, const char *str, long max);
45 ParameterError secs2ms(long *val, const char *str);
49 const char *str);
51 ParameterError check_protocol(const char *str);
53 ParameterError str2offset(curl_off_t *val, const char *str);
61 int ftpcccmethod(struct OperationConfig *config, const char *str);
63 long delegation(struct OperationConfig *config, const char *str);
[all …]
H A Dtool_paramhlp.c167 if(str) { in getnum()
170 if(!str[0]) in getnum()
258 if(str) { in str2double()
269 if((endptr != str) && (endptr == str + strlen(str))) { in str2double()
376 if(!str) in proto2num()
487 if(!str) in check_protocol()
524 if((endptr != str) && (endptr == str + strlen(str))) in str2offset()
605 str); in ftpfilemethod()
618 str); in ftpcccmethod()
633 str); in delegation()
[all …]
H A Dtool_strdup.c27 char *strdup(const char *str) in strdup() argument
32 if(!str) in strdup()
35 len = strlen(str) + 1; in strdup()
41 memcpy(newstr, str, len); in strdup()
/curl/tests/http/testenv/
H A Denv.py353 def curl_lib_version(libname: str) -> str: argument
369 def curl_os() -> str:
462 def gen_dir(self) -> str:
482 def tld(self) -> str:
546 def caddy(self) -> str:
558 def vsftpd(self) -> str:
566 def curl(self) -> str:
570 def httpd(self) -> str:
578 def apxs(self) -> str:
602 def authority_for(self, domain: str, alpn_proto: Optional[str] = None): argument
[all …]
H A Dcurl.py136 def stderr(self) -> List[str]:
187 stdout: List[str], stderr: List[str], argument
237 def args(self) -> List[str]:
245 def stdout(self) -> str:
254 def stderr(self) -> str:
258 def trace_lines(self) -> List[str]:
465 run_env: Optional[Dict[str, str]] = None, argument
482 def run_dir(self) -> str:
522 def http_get(self, url: str, extra_args: Optional[List[str]] = None, argument
566 def http_upload(self, urls: List[str], data: str, argument
[all …]
H A Dcerts.py53 if isinstance(key_type, str):
118 name: str, argument
132 def name(self) -> str:
174 def set_files(self, cert_file: str, pkey_file: Optional[str] = None, argument
181 def cert_file(self) -> str:
238 def path(self) -> str:
290 def get_cert_file(self, name: str, key_type=None) -> str: argument
294 def get_pkey_file(self, name: str, key_type=None) -> str: argument
298 def get_combined_file(self, name: str, key_type=None) -> str: argument
342 def create_root(cls, name: str, store_dir: str, key_type: str = "rsa2048") -> Credentials: argument
[all …]
H A Dclient.py43 def __init__(self, name: str, env: Env, run_dir: Optional[str] = None, argument
45 run_env: Optional[Dict[str,str]] = None): argument
59 def run_dir(self) -> str:
63 def stderr_file(self) -> str:
69 def download_file(self, i: int) -> str:
H A Dports.py34 def alloc_ports(port_specs: Dict[str, int]) -> Dict[str, int]: argument
/curl/lib/
H A Dstrtoofft.c212 CURLofft curlx_strtoofft(const char *str, char **endp, int base, in curlx_strtoofft() argument
221 while(*str && ISBLANK(*str)) in curlx_strtoofft()
222 str++; in curlx_strtoofft()
223 if(('-' == *str) || (ISSPACE(*str))) { in curlx_strtoofft()
225 *endp = (char *)str; /* did not actually move */ in curlx_strtoofft()
228 number = strtooff(str, &end, base); in curlx_strtoofft()
234 else if(str == end) in curlx_strtoofft()
H A Dsetopt.c183 if(!str) in protocol2num()
186 if(curl_strequal(str, "all")) { in protocol2num()
192 const char *token = str; in protocol2num()
195 str = strchr(str, ','); in protocol2num()
196 tlen = str ? (size_t) (str - token) : strlen(token); in protocol2num()
205 } while(str && str++); in protocol2num()
1410 Curl_safefree(data->set.str[STRING_SSL_ENGINE]); in setopt_long()
1753 data->set.str[STRING_COPYPOSTFIELDS] = p; in setopt_cptr()
1800 if(data->set.str[STRING_AWS_SIGV4]) in setopt_cptr()
2118 data->state.url = data->set.str[STRING_SET_URL]; in setopt_cptr()
[all …]
H A Dstrdup.c40 char *Curl_strdup(const char *str) in Curl_strdup() argument
45 if(!str) in Curl_strdup()
48 len = strlen(str) + 1; in Curl_strdup()
54 memcpy(newstr, str, len); in Curl_strdup()
H A Ddynbuf.c176 CURLcode Curl_dyn_add(struct dynbuf *s, const char *str) in Curl_dyn_add() argument
179 DEBUGASSERT(str); in Curl_dyn_add()
183 n = strlen(str); in Curl_dyn_add()
184 return dyn_nappend(s, (unsigned char *)str, n); in Curl_dyn_add()
206 char *str; in Curl_dyn_vaddf()
207 str = vaprintf(fmt, ap); /* this allocs a new string to append */ in Curl_dyn_vaddf()
209 if(str) { in Curl_dyn_vaddf()
210 CURLcode result = dyn_nappend(s, (unsigned char *)str, strlen(str)); in Curl_dyn_vaddf()
211 free(str); in Curl_dyn_vaddf()
H A Dftplistparser.c246 if(str[0] == 'r') in ftp_pl_get_permission()
248 else if(str[0] != '-') in ftp_pl_get_permission()
250 if(str[1] == 'w') in ftp_pl_get_permission()
252 else if(str[1] != '-') in ftp_pl_get_permission()
255 if(str[2] == 'x') in ftp_pl_get_permission()
266 if(str[3] == 'r') in ftp_pl_get_permission()
270 if(str[4] == 'w') in ftp_pl_get_permission()
274 if(str[5] == 'x') in ftp_pl_get_permission()
285 if(str[6] == 'r') in ftp_pl_get_permission()
289 if(str[7] == 'w') in ftp_pl_get_permission()
[all …]
H A Dmemdebug.c187 ALLOC_FUNC char *curl_dbg_strdup(const char *str, in curl_dbg_strdup() argument
193 DEBUGASSERT(str != NULL); in curl_dbg_strdup()
198 len = strlen(str) + 1; in curl_dbg_strdup()
202 memcpy(mem, str, len); in curl_dbg_strdup()
206 source, line, (const void *)str, len, (const void *)mem); in curl_dbg_strdup()
212 ALLOC_FUNC wchar_t *curl_dbg_wcsdup(const wchar_t *str, in curl_dbg_wcsdup() argument
218 DEBUGASSERT(str != NULL); in curl_dbg_wcsdup()
223 wsiz = wcslen(str) + 1; in curl_dbg_wcsdup()
228 memcpy(mem, str, bsiz); in curl_dbg_wcsdup()
232 source, line, (void *)str, bsiz, (void *)mem); in curl_dbg_wcsdup()
H A Descape.c184 char *str = NULL; in curl_easy_unescape() local
189 CURLcode res = Curl_urldecode(string, inputlen, &str, &outputlen, in curl_easy_unescape()
199 Curl_safefree(str); in curl_easy_unescape()
202 return str; in curl_easy_unescape()
H A Deasy.c878 memset(dst->set.str, 0, STRING_LAST * sizeof(char *)); in dupset()
883 result = Curl_setstropt(&dst->set.str[i], src->set.str[i]); in dupset()
897 if(src->set.str[i]) { in dupset()
899 dst->set.str[i] = strdup(src->set.str[i]); in dupset()
902 dst->set.str[i] = Curl_memdup(src->set.str[i], in dupset()
904 if(!dst->set.str[i]) in dupset()
907 dst->set.postfields = dst->set.str[i]; in dupset()
987 if(outcurl->set.str[STRING_SSL_ENGINE]) { in curl_easy_duphandle()
988 if(Curl_ssl_set_engine(outcurl, outcurl->set.str[STRING_SSL_ENGINE])) in curl_easy_duphandle()
997 if(outcurl->set.str[STRING_ALTSVC]) in curl_easy_duphandle()
[all …]
H A Dmprintf.c139 char *str; member
709 char *str = optr->start; in formatf() local
711 OUTCHAR(*str++); in formatf()
875 const char *str; in formatf() local
878 str = (char *)iptr->val.str; in formatf()
879 if(!str) { in formatf()
882 str = nilstr; in formatf()
888 str = ""; in formatf()
894 else if(*str == '\0') in formatf()
897 len = strlen(str); in formatf()
[all …]
/curl/tests/unit/
H A Dunit1398.c38 const char *str = "bug"; variable
50 rc = curl_msnprintf(output, 4, "%.*s", width, str);
61 rc = curl_msnprintf(output, 8, "%.8s", str);
71 rc = curl_msnprintf(output, 8, "%-8s", str);
76 rc = curl_msnprintf(output, 8, "%8s", str);
86 rc = curl_msnprintf(output, 16, "%8s%8s", str, str);
H A Dunit3205.c609 const char *str; member
774 test->str, id, test->id);
777 if(len > 64 || strncmp(ptr, test->str, len) != 0) {
780 test->str);
/curl/tests/
H A Dtest1140.pl66 my ($pre, $str, $post)=($1, $2, $3);
67 if($str =~ /^\\f[ib]/i) {
72 print "error: $f:$line: missing \\fP after $str\n";
75 if($str =~ /((libcurl|curl)([^ ]*))\(3\)/i) {
83 print "error: $f:$line: use \\fI before $str\n";
H A Dtest1139.pl242 my $str = $1;
244 if($str =~ /^-(.), --([a-z0-9.-]*)/) {
248 elsif($str =~ /^--([a-z0-9.-]*)/) {
270 my $str=$1;
272 if($str =~ /^-(.), --([a-z0-9.-]*)/) {
276 elsif($str =~ /^--([a-z0-9.-]*)/) {
/curl/tests/libtest/
H A Dlib509.c79 char *str = NULL; in test() local
103 str = curl_easy_escape(curl, (char *)a, asize); /* uses realloc() */ in test()
110 if(str) in test()
111 curl_free(str); in test()
/curl/tests/http/
H A Dtest_20_websockets.py74 args = [cmd, '--port', str(env.ws_port)]
112 r = client.run(args=[url, str(0), str(10)])
121 r = client.run(args=[url, str(120), str(130)])
130 r = client.run(args=[url, str(65535 - 5), str(65535 + 5)])
141 r = client.run(args=[url, str(65535 - 5), str(65535 + 5)])
H A Dscorecard.py48 protocol: str, argument
49 server_descr: str, argument
69 def handshakes(self) -> Dict[str, Any]:
104 def _make_docs_file(self, docs_dir: str, fname: str, fsize: int): argument
228 def download_url(self, label: str, url: str, count: int): argument
261 def upload_single(self, url: str, fpath: str, count: int): argument
289 def upload_serial(self, url: str, fpath: str, count: int): argument
317 def upload_parallel(self, url: str, fpath: str, count: int): argument
350 def upload_url(self, label: str, url: str, fpath: str, count: int): argument
528 if isinstance(ssval, str):
[all …]
/curl/docs/libcurl/
H A Dsymbols.pl50 my ($str)=@_;
51 if($str =~ /([0-9]*)\.([0-9]*)\.*([0-9]*)/) {

Completed in 41 milliseconds

12345