Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 8 of 8) sorted by relevance

/busybox-1.35.0/libbb/
Dreplace.c29 … FAST_FUNC xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl) in xmalloc_substitute_string() argument
33 size_t repl_len = strlen(repl); in xmalloc_substitute_string()
41 dst = mempcpy(dst, repl, repl_len); in xmalloc_substitute_string()
/busybox-1.35.0/shell/ash_test/ash-vars/
Dvar_bash4.tests2 # in 1st and 2nd parts of ${var/search/repl}:
3 # if quoted ("${var/search/repl}"), and repl contains \a (a non-special char),
4 # the backslash in repl stays; if unquoted, backslash is removed.
11 # The difference only exists if repl is a literal. If it is a variable:
/busybox-1.35.0/shell/hush_test/hush-vars/
Dvar_bash4.tests2 # in 1st and 2nd parts of ${var/search/repl}:
3 # if quoted ("${var/search/repl}"), and repl contains \a (a non-special char),
4 # the backslash in repl stays; if unquoted, backslash is removed.
11 # The difference only exists if repl is a literal. If it is a variable:
/busybox-1.35.0/runit/
Dsvlogd.c215 char repl; member
238 #define repl (G.repl ) macro
962 if (!repl) in buffer_pread()
970 *s = repl; in buffer_pread()
975 *s = repl; in buffer_pread()
1066 repl = r[0]; in svlogd_main()
1067 if (!repl || r[1]) in svlogd_main()
1070 if (opt & 2) if (!repl) repl = '_'; // -R in svlogd_main()
/busybox-1.35.0/shell/
Dash.c7049 IF_BASH_PATTERN_SUBST(char *repl;) in subevalvar()
7062 repl = NULL; in subevalvar()
7065 repl = start; in subevalvar()
7072 if (*repl == '/') in subevalvar()
7073 repl++; in subevalvar()
7075 if (*repl == '\0') { in subevalvar()
7076 repl = NULL; in subevalvar()
7079 if (*repl == '/') { in subevalvar()
7080 *repl = '\0'; in subevalvar()
7084 if ((unsigned char)*repl == CTLESC && repl[1]) in subevalvar()
[all …]
Dhush.c6509 static char *replace_pattern(char *val, const char *pattern, const char *repl, char exp_op) in replace_pattern() argument
6513 unsigned repl_len = strlen(repl); in replace_pattern()
6526 strcpy(mempcpy(result + res_len, val, s - val), repl); in replace_pattern()
6747 char *pattern, *repl, *t; in expand_one_var() local
6756 repl = encode_then_expand_vararg(exp_word, /*handle_squotes:*/ 1, /*unbackslash:*/ 1); in expand_one_var()
6757 debug_printf_varexp("repl:'%s'->'%s'\n", exp_word, repl); in expand_one_var()
6765 (repl ? repl : exp_word), in expand_one_var()
6770 free(repl); in expand_one_var()
/busybox-1.35.0/editors/
Dawk.c2448 static int awk_sub(node *rn, const char *repl, int nm, var *src, var *dest, int subexp) in awk_sub() argument
2463 replen = strlen(repl); in awk_sub()
2479 for (s = repl; *s; s++) { in awk_sub()
/busybox-1.35.0/include/
Dlibbb.h921 char *xmalloc_substitute_string(const char *src, int count, const char *sub, const char *repl) FAST…