| /dovecot/src/lib-fts/ |
| H A D | fts-tokenizer-common.c | 10 size_t pos; local 15 for (pos = *len-1; pos > 0; pos--) { 16 if (UTF8_IS_START_SEQ(data[pos])) 19 char_bytes = uni_utf8_char_bytes(data[pos]); 20 if (char_bytes != *len-pos) { 21 i_assert(char_bytes > *len-pos); 22 *len = pos; 28 size_t pos local [all...] |
| H A D | fts-filter-contractions.c | 39 int char_size, pos = 0; local 43 switch (token[pos]) { 45 pos++; 46 if (token[pos] == '\0' || token[pos] != 'u') 57 pos++; 58 if (token[pos] == '\0') 60 char_size = uni_utf8_get_char(token + pos, &apostrophe); 62 pos += char_size; 63 *_token = token + pos; [all...] |
| /dovecot/src/lib-storage/ |
| H A D | mail-search-args-cmdline.c | 43 size_t pos = str_len(dest); local 49 if (str_c(dest)[pos] == '(') { 50 str_insert(dest, pos+1, " ");
|
| /dovecot/src/doveadm/dsync/ |
| H A D | dsync-mailbox-state.c | 84 size_t pos; local 88 if (base64_decode(input, strlen(input), &pos, buf) < 0) {
|
| /dovecot/src/lib/ |
| H A D | backtrace-string.c | 45 unsigned int pos; member in struct:walk_context 53 if (ctx->pos >= STACK_SKIP_COUNT) { 54 if (ctx->pos > STACK_SKIP_COUNT) 58 ctx->pos++; 71 ctx.pos = 0;
|
| H A D | istream-limit.c | 31 size_t pos; local 37 (stream->pos - stream->skip) >= lstream->v_size) { 42 stream->pos -= stream->skip; 45 stream->buffer = i_stream_get_data(stream->parent, &pos); 46 if (pos > stream->pos) 54 stream->buffer = i_stream_get_data(stream->parent, &pos); 55 } while (pos <= stream->pos && ret > 0); 59 if (pos > [all...] |
| H A D | istream-rawlog.c | 42 size_t pos; local 47 stream->pos -= stream->skip; 50 stream->buffer = i_stream_get_data(stream->parent, &pos); 51 if (pos > stream->pos) 59 stream->buffer = i_stream_get_data(stream->parent, &pos); 60 } while (pos <= stream->pos && ret > 0); 62 if (pos <= stream->pos) [all...] |
| H A D | str.h | 57 static inline void str_insert(string_t *str, size_t pos, const char *cstr) argument 59 buffer_insert(str, pos, cstr, strlen(cstr)); 62 static inline void str_delete(string_t *str, size_t pos, size_t len) argument 64 buffer_delete(str, pos, len);
|
| H A D | test-istream-crlf.c | 14 unsigned int i, j, pos, input_len = strlen(input); local 43 pos = 0; 53 pos = 0; 55 istream->real_stream->pos = i; 60 I_MAX(crlf_istream->real_stream->pos, i); 66 test_assert(pos + (unsigned int)ret1 == size); 67 pos += ret1;
|
| H A D | istream-base64-decoder.c | 41 size_t size, avail, buffer_avail, pos; local 49 buffer_avail = stream->buffer_size - stream->pos; 59 buffer_create_from_data(&buf, stream->w_buffer + stream->pos, 61 if (base64_decode(data, size, &pos, &buf) < 0) { 64 binary_to_hex(data+pos, I_MIN(size-pos, 8))); 69 stream->pos += buf.used; 70 i_stream_skip(stream->parent, pos); 71 return pos > 0 ? 1 : 0; 115 pre_count = stream->pos [all...] |
| H A D | istream-callback.c | 27 size_t pos; local 37 stream->pos -= stream->skip; 42 pos = cstream->prev_pos; 43 if (cstream->buf->used > pos) { 49 if (cstream->buf->used == pos || 54 } else if (cstream->buf->used == pos) { 59 i_assert(cstream->buf->used > pos); 61 cstream->prev_pos = stream->pos = cstream->buf->used; 62 return cstream->buf->used - pos;
|
| H A D | randgen.c | 122 for (size_t pos = 0; pos < size; pos++) 123 ((unsigned char*)buf)[pos] = kiss_rand(); 131 size_t pos; local 134 for (pos = 0; pos < size; ) { 135 ret = random_read(PTR_OFFSET(buf, pos), size - pos); 137 pos [all...] |
| H A D | test-buffer.c | 13 size_t pos, pos2, size; local 36 pos = i_rand_limit(BUF_TEST_SIZE - 1); 37 size = i_rand_limit(BUF_TEST_SIZE - pos); 39 buffer_write(buf, pos, testdata, size); 40 memcpy(shadowbuf + pos, testdata, size); 42 buffer_write_zero(buf, pos, size); 43 memset(shadowbuf + pos, 0, size); 45 if (pos + size > shadowbuf_size) 46 shadowbuf_size = pos + size; 61 pos [all...] |
| H A D | test-ostream-multiplex.c | 60 size_t siz,dlen=0,pos=0; local 64 for(;pos<siz;) { 67 test_assert_idx(memcmp(&data[pos], 72 pos += dlen; 75 cid = data[pos] % 2; 76 test_assert_idx(data[pos] < 2, channel_counter[cid]); 77 pos++; 78 dlen = be32_to_cpu_unaligned(&data[pos]); 79 pos += 4;
|
| H A D | test-str-find.c | 13 unsigned int i, j, pos, max, offset; local 23 pos = 0; offset = 0; ret = FALSE; 26 if (str_find_more(ctx, text+pos, j-pos+1)) { 30 offset += j-pos + 1; 31 pos = j + 1; 34 if (pos != text_len && !ret) { 35 if (str_find_more(ctx, text+pos, j-pos)) 45 pos 56 int pos; member in struct:str_find_input [all...] |
| H A D | test-unichar.c | 27 size_t pos; local 30 test_assert(uni_utf8_partial_strlen_n(input, 1, &pos) == 0 && pos == 0); 31 test_assert(uni_utf8_partial_strlen_n(input, 2, &pos) == 1 && pos == 2); 32 test_assert(uni_utf8_partial_strlen_n(input, 3, &pos) == 1 && pos == 2); 33 test_assert(uni_utf8_partial_strlen_n(input, 4, &pos) == 2 && pos == 4); 34 test_assert(uni_utf8_partial_strlen_n(input, 5, &pos) [all...] |
| /dovecot/src/lib-mail/ |
| H A D | message-header-decode.c | 79 size_t pos, start_pos, ret; local 83 for (pos = 0; pos + 1 < size; ) { 84 if (data[pos] != '=' || data[pos+1] != '?') { 85 pos++; 90 if (pos != start_pos && 91 !is_only_lwsp(data+start_pos, pos-start_pos)) { 93 if (!callback(data + start_pos, pos - start_pos, 102 size - pos); [all...] |
| /dovecot/src/plugins/mail-filter/ |
| H A D | istream-ext-filter.c | 40 size_t pos; local 43 stream->pos -= stream->skip; 46 stream->buffer = i_stream_get_data(source, &pos); 47 if (pos > stream->pos) 55 stream->buffer = i_stream_get_data(source, &pos); 59 } while (pos <= stream->pos && ret > 0); 61 ret = pos > stream->pos [all...] |
| /dovecot/src/auth/ |
| H A D | mech.c | 28 struct mech_module_list **pos, *list; local 30 for (pos = &mech_modules; *pos != NULL; pos = &(*pos)->next) { 31 if (strcmp((*pos)->module.mech_name, module->mech_name) == 0) { 32 list = *pos; 33 *pos = (*pos)->next;
|
| /dovecot/src/doveadm/ |
| H A D | doveadm-dump-thread.c | 96 unsigned int pos; local 114 pos = dump_hdr(map); 117 printf("block at offset %u:\n", pos); 119 ret = dump_block(CONST_PTR_OFFSET(map, pos), end, &uid); 120 pos += ret;
|
| /dovecot/src/imap/ |
| H A D | cmd-sort.c | 37 unsigned int i, pos; local 46 pos = 0; reverse = last_reverse = FALSE; 71 i_assert(pos < MAX_SORT_PROGRAM_SIZE-1); 72 program[pos++] = sort_names[i].type | 80 program[pos] = MAIL_SORT_END;
|
| /dovecot/src/lib-charset/ |
| H A D | charset-iconv.c | 108 size_t pos, size; local 112 for (pos = 0;;) { 113 i_assert(pos <= *src_size); 114 size = *src_size - pos; 115 ret = charset_to_utf8_try(t, src + pos, &size, dest, &result); 116 pos += size; 127 if (pos < *src_size) 128 pos++; 135 i_assert(*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE); 136 *src_size = pos; [all...] |
| H A D | charset-utf8.c | 55 size_t pos; local 57 uni_utf8_partial_strlen_n(src, *src_size, &pos); 58 if (pos < *src_size) { 59 i_assert(*src_size - pos <= CHARSET_MAX_PENDING_BUF_SIZE); 60 *src_size = pos;
|
| H A D | test-charset.c | 80 size_t pos, left, limit, len; local 94 for (pos = 0, limit = 1; limit <= len; pos += left, limit++) { 95 left = limit - pos; 96 result = charset_to_utf8(trans, (const void *)(tests[i].input + pos),
|
| /dovecot/src/lib-imap/ |
| H A D | imap-quote.c | 45 imap_append_literal(string_t *dest, const char *src, unsigned int pos) argument 47 size_t full_len = pos + strlen(src+pos); 155 size_t i, pos, remove_count = 0; local 211 pos = str_len(dest); 238 i_assert(str_len(dest) - pos == size - remove_count);
|