Lines Matching defs:len
215 static bool imap_matchresp(const char *line, size_t len, const char *cmd)
217 const char *end = line + len;
254 char *line, size_t len, int *resp)
262 if(len >= id_len + 1 && !memcmp(id, line, id_len) && line[id_len] == ' ') {
264 len -= id_len + 1;
266 if(len >= 2 && !memcmp(line, "OK", 2))
268 else if(len >= 7 && !memcmp(line, "PREAUTH", 7))
277 if(len >= 2 && !memcmp("* ", line, 2)) {
281 if(!imap_matchresp(line, len, "CAPABILITY"))
286 if((!imap->custom && !imap_matchresp(line, len, "LIST")) ||
287 (imap->custom && !imap_matchresp(line, len, imap->custom) &&
289 !imap_matchresp(line, len, "FETCH")) &&
307 if(!imap_matchresp(line, len, "FETCH"))
312 if(!imap_matchresp(line, len, "SEARCH"))
329 if(imap && !imap->custom && ((len == 3 && line[0] == '+') ||
330 (len >= 2 && !memcmp("+ ", line, 2)))) {
359 size_t len = data->conn->proto.imapc.pp.nfinal;
361 if(len > 2) {
363 len -= 2;
364 for(message += 2; *message == ' ' || *message == '\t'; message++, len--)
368 while(len--)
369 if(message[len] != '\r' && message[len] != '\n' && message[len] != ' ' &&
370 message[len] != '\t')
374 message[++len] = '\0';
375 Curl_bufref_set(out, message, len, NULL);
1062 size_t len = data->conn->proto.imapc.pp.nfinal;
1067 result = Curl_client_write(data, CLIENTWRITE_BODY, line, len);
1092 size_t len = 0;
1094 while((len < 20) && p[len] && ISDIGIT(p[len]))
1095 len++;
1096 if(len && (p[len] == ']')) {
1099 if(Curl_dyn_addn(&uid, p, len))
1145 size_t len = data->conn->proto.imapc.pp.nfinal;
1159 ptr = memchr(ptr, '{', len);
1819 size_t len;
1824 len = strlen(str);
1826 if(len == nclean)