Searched defs:pos (Results 1 - 25 of 92) sorted by relevance

1234

/dovecot/src/lib-fts/
H A Dfts-tokenizer-common.c10 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 Dfts-filter-contractions.c39 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 Dmail-search-args-cmdline.c43 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 Ddsync-mailbox-state.c84 size_t pos; local
88 if (base64_decode(input, strlen(input), &pos, buf) < 0) {
/dovecot/src/lib/
H A Dbacktrace-string.c45 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 Distream-limit.c31 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 Distream-rawlog.c42 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 Dstr.h57 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 Dtest-istream-crlf.c14 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 Distream-base64-decoder.c41 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 Distream-callback.c27 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 Drandgen.c122 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 Dtest-buffer.c13 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 Dtest-ostream-multiplex.c60 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 Dtest-str-find.c13 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 Dtest-unichar.c27 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 Dmessage-header-decode.c79 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 Distream-ext-filter.c40 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 Dmech.c28 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 Ddoveadm-dump-thread.c96 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 Dcmd-sort.c37 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 Dcharset-iconv.c108 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 Dcharset-utf8.c55 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 Dtest-charset.c80 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 Dimap-quote.c45 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);

Completed in 104 milliseconds

1234