Home
last modified time | relevance | path

Searched refs:astr_len (Results 1 – 24 of 24) sorted by relevance

/dports/editors/zile/zile-2.4.14/src/
H A Dsearch.c72 size_t len = astr_len (as); in find_substr()
118 if (astr_len (pattern) != 0) in do_search()
232 if (astr_len (pattern) > 0) in isearch()
234 astr_truncate (pattern, astr_len (pattern) - 1); in isearch()
254 if (astr_len (pattern) > 0) in isearch()
266 if (c == KBD_RET && astr_len (pattern) == 0) in isearch()
270 if (astr_len (pattern) > 0) in isearch()
291 if (astr_len (pattern) > 0) in isearch()
378 if (i == astr_len (as)) in check_case()
383 return i == astr_len (as); in check_case()
[all …]
H A Dfile.c84 if (astr_len (epath) == 0 || in expand_path()
99 if (astr_len (epath) == 0 || in expand_path()
141 if (astr_len (epath) >= 1 && astr_get (epath, astr_len (epath) - 1) == '/') in expand_path()
143 while (astr_get (epath, astr_len (epath) - 1) != '/' && astr_len (epath) >= 1) in expand_path()
174 if (astr_len (path) > homelen && in compact_path()
262 if (filename == NULL || astr_len (filename) == 0)
331 if (buf && astr_len (buf) > 0)
374 if (buf && astr_len (buf) > 0)
414 if (file == NULL || astr_len (file) == 0)
547 if (astr_len (name) == 0) in write_buffer()
[all …]
H A Dterm_minibuf.c99 pos = astr_len (as); in term_minibuf_read()
139 pos = astr_len (as); in term_minibuf_read()
150 if (pos < astr_len (as)) in term_minibuf_read()
157 if (pos < astr_len (as)) in term_minibuf_read()
170 if (pos < astr_len (as)) in term_minibuf_read()
264 astr_len (bs)) != 0) in term_minibuf_read()
267 pos = astr_len (as); in term_minibuf_read()
287 …cstr (astr_substr (as, 0, pos)), (int) c, astr_cstr (astr_substr (as, pos, astr_len (as) - pos)))); in term_minibuf_read()
H A Destr.c83 for (size_t i = 0; i < astr_len (as) && total_eols < MAX_EOL_CHECK_COUNT; i++) in estr_new_astr()
92 else if (i == astr_len (as) - 1 || astr_get (as, i + 1) != '\n') in estr_new_astr()
126 return (eo == astr_len (es->as)) ? SIZE_MAX : eo + strlen (es->eol); in estr_next_line()
140 const char *next = memmem (astr_cstr (es->as) + o, astr_len (es->as) - o, in estr_end_of_line()
142 return next ? (size_t) (next - astr_cstr (es->as)) : astr_len (es->as); in estr_end_of_line()
157 for (size_t len = astr_len (es->as); in estr_lines()
169 for (size_t len = astr_len (src->as); len > 0;) in estr_replace_estr()
191 size_t oldlen = astr_len (es->as); in estr_cat()
H A Dastr.c78 astr_len (const_astr as) in astr_len() function
167 assert (pos <= astr_len (as)); in astr_get()
187 return astr_ncpy_cstr (as, astr_cstr (src), astr_len (src)); in astr_cpy()
199 return astr_cat_nstr (as, astr_cstr (src), astr_len (src)); in astr_cat()
218 assert (pos + size <= astr_len (as)); in astr_substr()
225 return astr_remove (as, pos, astr_len (as) - pos); in astr_truncate()
275 for (size_t i = 1, len = astr_len (as); i < len; i++) in astr_recase()
322 as3 = astr_substr (as1, astr_len (as1) - 6, 5); in main()
330 as2 = astr_substr (as1, astr_len (as1) - 2, 2); in main()
334 as2 = astr_substr (as1, astr_len (as1) - 5, 5); in main()
H A Dminibuf.c168 if (file == NULL && astr_len (as) > 0 && astr_get (as, astr_len (as) - 1) != '/') in minibuf_read_filename()
181 size_t pos = astr_len (as); in minibuf_read_filename()
268 else if (astr_len (ms) == 0) in minibuf_vread_completion()
H A Dlisp.c51 if ((size_t) *pos < astr_len (as)) in read_char()
122 astr_truncate (tok, astr_len (tok) - 1); in read_token()
138 astr_truncate (tok, astr_len (tok) -1); in read_token()
H A Dfuncs.c321 if (astr_len (as) > 0)
887 if (astr_len (as) > 0) in setcase_word()
890 replace_estr (astr_len (as), estr_new_astr (as)); in setcase_word()
1009 *n = astr_len (((pipe_data *) priv)->in) - ((pipe_data *) priv)->done; in prepare_write()
1044 if (astr_len (inout.out) == 0) in pipe_command()
1062 eol != astr_cstr (inout.out) + astr_len (inout.out) - 1; in pipe_command()
1083 if (astr_len (ms) == 0) in minibuf_read_shell_command()
H A Destr.h51 #define estr_len(es, eol_type) (astr_len (estr_get_as (es)) + estr_lines (es) * (strlen (eol_type)…
H A Dcompletion.c208 if (astr_get (path, astr_len (path) - 1) != '/') in completion_readdir()
254 size_t ssize = astr_len (search); in completion_try()
H A Dastr.h71 _GL_ATTRIBUTE_PURE size_t astr_len (const_astr as);
H A Dbind.c528 if (astr_len (g->bindings) > 0) in gather_bindings()
553 if (astr_len (g.bindings) == 0)
H A Dbuffer.c81 return const_astr_new_nstr (astr_cstr (as) + post_gap, astr_len (as) - post_gap); in get_buffer_post_point()
126 return realo_to_o (bp, astr_len (estr_get_as (bp->text))); in get_buffer_size()
603 if (buf && astr_len (buf) > 0)
/dports/security/ossec-hids-server/ossec-hids-3.6.0/src/os_auth/
H A Dcheck_cert.c298 unsigned int astr_len = 0; in asn1_to_cstr() local
302 if (!(astr_len = (unsigned int) ASN1_STRING_length(astr))) { in asn1_to_cstr()
312 if (memchr(tmp, '\0', astr_len)) { in asn1_to_cstr()
316 if ((cstr = (char *) malloc(astr_len + 1)) == NULL) { in asn1_to_cstr()
320 memcpy(cstr, tmp, astr_len); in asn1_to_cstr()
321 cstr[astr_len] = '\0'; in asn1_to_cstr()
/dports/security/ossec-hids-local/ossec-hids-3.6.0/src/os_auth/
H A Dcheck_cert.c298 unsigned int astr_len = 0; in asn1_to_cstr() local
302 if (!(astr_len = (unsigned int) ASN1_STRING_length(astr))) { in asn1_to_cstr()
312 if (memchr(tmp, '\0', astr_len)) { in asn1_to_cstr()
316 if ((cstr = (char *) malloc(astr_len + 1)) == NULL) { in asn1_to_cstr()
320 memcpy(cstr, tmp, astr_len); in asn1_to_cstr()
321 cstr[astr_len] = '\0'; in asn1_to_cstr()
/dports/security/ossec-hids-agent/ossec-hids-3.6.0/src/os_auth/
H A Dcheck_cert.c298 unsigned int astr_len = 0; in asn1_to_cstr() local
302 if (!(astr_len = (unsigned int) ASN1_STRING_length(astr))) { in asn1_to_cstr()
312 if (memchr(tmp, '\0', astr_len)) { in asn1_to_cstr()
316 if ((cstr = (char *) malloc(astr_len + 1)) == NULL) { in asn1_to_cstr()
320 memcpy(cstr, tmp, astr_len); in asn1_to_cstr()
321 cstr[astr_len] = '\0'; in asn1_to_cstr()
/dports/games/freeciv-nox11/freeciv-2.6.6/utility/
H A Dinputfile.c332 fc_assert_ret_val(inf->cur_line_pos <= astr_len(&inf->cur_line), TRUE); in at_eol()
334 return (inf->cur_line_pos >= astr_len(&inf->cur_line)); in at_eol()
374 if (inf->in_string || astr_len(&inf->cur_line) <= len in check_include()
423 inf->cur_line_pos = astr_len(&inf->cur_line) - 1; in check_include()
512 if (0 == pos && 0 < astr_len(line) && astr_str(line)[0] == '\r') { in read_a_line()
513 memmove((char *)astr_str(line), astr_str(line)+1, astr_len(line)); in read_a_line()
516 pos = astr_len(line); in read_a_line()
911 pos = astr_len(&inf->token); in get_token_value()
H A Dastring.c239 astr_vadd_at(astr, astr_len(astr), format, ap); in astr_vadd()
250 astr_vadd_at(astr, astr_len(astr), format, args); in astr_add()
259 size_t len = astr_len(astr); in astr_add_line()
H A Dastring.h51 static inline size_t astr_len(const struct astring *astr)
99 static inline size_t astr_len(const struct astring *astr) in astr_len() function
/dports/games/freeciv/freeciv-2.6.6/utility/
H A Dinputfile.c332 fc_assert_ret_val(inf->cur_line_pos <= astr_len(&inf->cur_line), TRUE); in at_eol()
334 return (inf->cur_line_pos >= astr_len(&inf->cur_line)); in at_eol()
374 if (inf->in_string || astr_len(&inf->cur_line) <= len in check_include()
423 inf->cur_line_pos = astr_len(&inf->cur_line) - 1; in check_include()
512 if (0 == pos && 0 < astr_len(line) && astr_str(line)[0] == '\r') { in read_a_line()
513 memmove((char *)astr_str(line), astr_str(line)+1, astr_len(line)); in read_a_line()
516 pos = astr_len(line); in read_a_line()
911 pos = astr_len(&inf->token); in get_token_value()
H A Dastring.c239 astr_vadd_at(astr, astr_len(astr), format, ap); in astr_vadd()
250 astr_vadd_at(astr, astr_len(astr), format, args); in astr_add()
259 size_t len = astr_len(astr); in astr_add_line()
H A Dastring.h51 static inline size_t astr_len(const struct astring *astr)
99 static inline size_t astr_len(const struct astring *astr) in astr_len() function
/dports/games/freeciv-nox11/freeciv-2.6.6/common/
H A Dmapimg.c612 if (astr_len(&help) > 0) { in mapimg_help()
/dports/games/freeciv/freeciv-2.6.6/common/
H A Dmapimg.c612 if (astr_len(&help) > 0) { in mapimg_help()