/dovecot/src/lib/ |
H A D | test-str-sanitize.c | 37 string_t *str2; local 51 str2 = t_str_new(128); 55 str_truncate(str2, 0); 56 str_append(str2, "1234567890"); 57 str_sanitize_append(str2, tests[i].str, tests[i].max_len); 59 test_assert_idx(strncmp(str_c(str2), "1234567890", 10) == 0, i); 61 test_assert_idx(strcmp(str_c(str2)+10, tests[i].sanitized) == 0, i); 63 test_assert_idx(strcmp(str_c(str2)+10, tests[i].str) == 0, i);
|
H A D | test-str.c | 9 string_t *str2 = t_str_new(32); local 17 str_append(str2, "sec"); 18 str_append_c(str2, '\0'); 19 str_append(str2, "ond"); 20 str_append_str(str, str2);
|
H A D | guid.c | 160 string_t *str2 = t_str_new(len); local 168 str_append_c(str2, str[i]); 170 ret = guid_128_from_string(str_c(str2), guid_r);
|
H A D | str.c | 79 bool str_equals(const string_t *str1, const string_t *str2) argument 81 if (str1->used != str2->used) 84 return memcmp(str1->data, str2->data, str1->used) == 0;
|
H A D | str.h | 18 bool str_equals(const string_t *str1, const string_t *str2) ATTR_PURE;
|
H A D | module-dir.c | 171 static bool versions_equal(const char *str1, const char *str2) argument 173 while (*str1 == *str2) { 177 str2++;
|
/dovecot/src/lib-imap/ |
H A D | test-imap-quote.c | 146 string_t *str2 = str_new(default_pool, 1); local 152 str_truncate(str2, 0); 153 imap_append_nstring_nolf(str2, tests[i].input); 154 test_assert_idx(strcmp(tests[i].output, str_c(str2)) == 0, i); 156 str_free(&str2);
|
/dovecot/src/lib-compression/ |
H A D | test-compression.c | 100 static void test_gz(const char *str1, const char *str2) argument 119 if (str2[0] != '\0') { 143 test_assert(size == strlen(str1)+strlen(str2) && 145 memcmp(data+strlen(str1), str2, strlen(str2)) == 0);
|
/dovecot/src/lib-ssl-iostream/ |
H A D | iostream-ssl.c | 313 const char **str2 = PTR_OFFSET(&set2_nonstr, offset); local 315 if (null_strcmp(*str1, *str2) != 0) 320 *str2 = NULL;
|
/dovecot/src/lib-storage/index/ |
H A D | index-sort.c | 563 string_t *str1, *str2; local 566 str2 = t_str_new(256); 569 if (index_sort_header_get(program, seq2, sort_type, str2) < 0) 572 ret = strcmp(str_c(str1), str_c(str2));
|
H A D | index-sort-string.c | 409 const char *str, *str2; local 427 &str2)) { 428 ret = strcmp(key, str2); 431 str = str2; 459 &nodes[prev], &str2); 462 *prev_str_r = str2;
|
/dovecot/src/login-common/ |
H A D | client-common.c | 858 string_t *str, *str2; local 864 str2 = t_str_new(128); 877 str_truncate(str2, 0); 878 if (var_expand(str2, *e, login_var_expand_empty_tab, 883 if (strcmp(str_c(str)+pos, str_c(str2)) == 0) {
|
/dovecot/src/doveadm/ |
H A D | doveadm-dsync.c | 240 string_t *str, *str2; local 252 str2 = t_str_new(128); 262 str_truncate(str2, 0); 264 var_expand(str2, *args, static_tab, &error) <= 0) { 268 if (strcmp(str_c(str), str_c(str2)) == 0 &&
|
/dovecot/src/doveadm/dsync/ |
H A D | dsync-ibc-stream.c | 751 string_t *str2 = t_str_new(32); local 754 str_append_tabescaped(str2, *ptr); 755 str_append_c(str2, '\t'); 758 dsync_serializer_encode_add(encoder, "hashed_headers", str_c(str2));
|