Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 89) sorted by relevance

1234

/busybox-1.35.0/libbb/
Dduration.c33 duration_t FAST_FUNC parse_duration_str(char *str) in parse_duration_str() argument
37 if (strchr(str, '.')) { in parse_duration_str()
50 len = strspn(str, "0123456789."); in parse_duration_str()
51 sv = str[len]; in parse_duration_str()
52 str[len] = '\0'; in parse_duration_str()
54 d = strtod(str, &pp); in parse_duration_str()
57 str += len; in parse_duration_str()
58 *str-- = sv; in parse_duration_str()
59 sv = *str; in parse_duration_str()
60 *str = '1'; in parse_duration_str()
[all …]
Dprintable_string.c12 const char* FAST_FUNC printable_string2(uni_stat_t *stats, const char *str) in printable_string2() argument
17 s = str; in printable_string2()
23 stats->byte_count = (s - str); in printable_string2()
24 stats->unicode_count = (s - str); in printable_string2()
25 stats->unicode_width = (s - str); in printable_string2()
27 return str; in printable_string2()
37 dst = unicode_conv_to_printable(stats, str); in printable_string2()
40 char *d = dst = xstrdup(str); in printable_string2()
59 const char* FAST_FUNC printable_string(const char *str) in printable_string() argument
61 return printable_string2(NULL, str); in printable_string()
Dnuke_str.c13 void FAST_FUNC nuke_str(char *str) in nuke_str() argument
15 if (str) { in nuke_str()
16 while (*str) in nuke_str()
17 *str++ = 0; in nuke_str()
Dpercent_decode.c29 char* FAST_FUNC percent_decode_in_place(char *str, int strict) in percent_decode_in_place() argument
32 char *src = str; in percent_decode_in_place()
33 char *dst = str; in percent_decode_in_place()
61 return str + 1; in percent_decode_in_place()
67 return str; in percent_decode_in_place()
Dget_cpu_count.c12 int FAST_FUNC starts_with_cpu(const char *str) in starts_with_cpu() argument
14 return ((str[0] - 'c') | (str[1] - 'p') | (str[2] - 'u')) == 0; in starts_with_cpu()
Dstr_tolower.c8 char* FAST_FUNC str_tolower(char *str) in str_tolower() argument
11 for (c = str; *c; ++c) in str_tolower()
13 return str; in str_tolower()
Dreplace.c13 unsigned FAST_FUNC count_strstr(const char *str, const char *sub) in count_strstr() argument
20 return strlen(str) + 1; in count_strstr()
22 while ((str = strstr(str, sub)) != NULL) { in count_strstr()
24 str += sub_len; in count_strstr()
Dauto_string.c13 char* FAST_FUNC auto_string(char *str) in auto_string() argument
19 saved[cur_saved] = str; in auto_string()
22 return str; in auto_string()
Dubi.c17 unsigned FAST_FUNC ubi_devnum_from_devname(const char *str) in ubi_devnum_from_devname() argument
21 if (sscanf(str, "/dev/ubi%u", &ubi_devnum) != 1) in ubi_devnum_from_devname()
22 bb_error_msg_and_die("not an UBI device: '%s'", str); in ubi_devnum_from_devname()
Dxfuncs.c145 char* FAST_FUNC hex2bin(char *dst, const char *str, int count) in hex2bin() argument
148 while (*str && count) { in hex2bin()
150 uint8_t c = *str++; in hex2bin()
158 c = *str; in hex2bin()
170 str++; in hex2bin()
171 if (*str == ':') in hex2bin()
172 str++; in hex2bin()
175 errno = (*str ? ERANGE : 0); in hex2bin()
225 ssize_t FAST_FUNC full_write1_str(const char *str) in full_write1_str() argument
227 return full_write(STDOUT_FILENO, str, strlen(str)); in full_write1_str()
[all …]
Dwrite.c13 void FAST_FUNC xopen_xwrite_close(const char* file, const char* str) in xopen_xwrite_close() argument
16 xwrite_str(fd, str); in xopen_xwrite_close()
/busybox-1.35.0/include/
Dxatonum.h15 unsigned type xstrto##UT##_range_sfx(const char *str, int b, unsigned type l, unsigned type u, cons…
16 unsigned type xstrto##UT##_range(const char *str, int b, unsigned type l, unsigned type u) FAST_FUN…
17 unsigned type xstrto##UT##_sfx(const char *str, int b, const struct suffix_mult *sfx) FAST_FUNC; \
18 unsigned type xstrto##UT(const char *str, int b) FAST_FUNC; \
19 unsigned type xato##UT##_range_sfx(const char *str, unsigned type l, unsigned type u, const struct …
20 unsigned type xato##UT##_range(const char *str, unsigned type l, unsigned type u) FAST_FUNC; \
21 unsigned type xato##UT##_sfx(const char *str, const struct suffix_mult *sfx) FAST_FUNC; \
22 unsigned type xato##UT(const char *str) FAST_FUNC; \
23 type xstrto##T##_range_sfx(const char *str, int b, type l, type u, const struct suffix_mult *sfx) F…
24 type xstrto##T##_range(const char *str, int b, type l, type u) FAST_FUNC; \
[all …]
/busybox-1.35.0/archival/libarchive/
Dunsafe_prefix.c8 const char* FAST_FUNC strip_unsafe_prefix(const char *str) in strip_unsafe_prefix() argument
10 const char *cp = str; in strip_unsafe_prefix()
26 if (cp != str) { in strip_unsafe_prefix()
31 (int)(cp - str), str); in strip_unsafe_prefix()
Ddata_extract_to_command.c37 static void xputenv(char *str) in xputenv() argument
39 if (putenv(str)) in xputenv()
43 static void str2env(char *env[], int idx, const char *str) in str2env() argument
45 env[idx] = xasprintf("TAR_%s=%s", tar_var[idx], str); in str2env()
/busybox-1.35.0/coreutils/
Dsort.c142 static char *get_key(char *str, struct sort_key *key, int flags) in get_key() argument
153 return str; in get_key()
157 len = strlen(str); in get_key()
169 while ((ch = str[end]) != '\0') { in get_key()
176 while (isspace(str[end])) in get_key()
179 while (str[end] != '\0') { in get_key()
180 if (isspace(str[end])) in get_key()
200 while (isspace(str[start])) start++; in get_key()
203 while (end > start && isspace(str[end-1])) end--; in get_key()
217 str = xstrndup(str+start, end-start); in get_key()
[all …]
Dprintf.c156 static int print_esc_string(const char *str) in print_esc_string() argument
159 while ((c = *str) != '\0') { in print_esc_string()
160 str++; in print_esc_string()
163 if (*str == '0') { in print_esc_string()
164 if ((unsigned char)(str[1] - '0') < 8) { in print_esc_string()
166 str++; in print_esc_string()
169 else if (*str == 'c') { in print_esc_string()
175 const char *z = str; in print_esc_string()
177 str = z; in print_esc_string()
278 static int get_width_prec(const char *str) in get_width_prec() argument
[all …]
/busybox-1.35.0/mailutils/
Dsendmail.c142 static char *sane_address(char *str) in sane_address() argument
146 trim(str); in sane_address()
147 s = str; in sane_address()
156 bb_error_msg("bad address '%s'", str); in sane_address()
158 str[0] = '\0'; in sane_address()
159 return str; in sane_address()
163 return str; in sane_address()
167 static char *angle_address(char *str) in angle_address() argument
171 e = trim(str); in angle_address()
172 if (e != str && *--e == '>') { in angle_address()
[all …]
/busybox-1.35.0/scripts/kconfig/
Dconfdata.c341 const char *str; in conf_write() local
441 str = menu_get_prompt(menu); in conf_write()
445 "#\n", str); in conf_write()
450 " */\n", str); in conf_write()
501 str = sym_get_string_value(sym); in conf_write()
506 l = strcspn(str, "\"\\"); in conf_write()
508 fwrite(str, l, 1, out); in conf_write()
510 fwrite(str, l, 1, out_h); in conf_write()
512 str += l; in conf_write()
513 while (*str == '\\' || *str == '"') { in conf_write()
[all …]
Dzconf.l49 void append_string(const char *str, int size) in append_string() argument
62 memcpy(text + text_size, str, size); in append_string()
67 void alloc_string(const char *str, int size) in alloc_string() argument
70 memcpy(text, str, size); in alloc_string()
79 int str = 0;
131 str = yytext[0];
Dsymbol.c164 char str[64]; in sym_validate_range() local
187 sprintf(str, "%d", val2); in sym_validate_range()
189 sprintf(str, "0x%x", val2); in sym_validate_range()
190 sym->curr.val = strdup(str); in sym_validate_range()
484 bool sym_string_valid(struct symbol *sym, const char *str) in sym_string_valid() argument
492 ch = *str++; in sym_string_valid()
494 ch = *str++; in sym_string_valid()
497 if (ch == '0' && *str != 0) in sym_string_valid()
499 while ((ch = *str++)) { in sym_string_valid()
505 if (str[0] == '0' && (str[1] == 'x' || str[1] == 'X')) in sym_string_valid()
[all …]
/busybox-1.35.0/shell/hush_test/hush-quoting/
Ddollar_squote_bash2.tests2 echo $'str\x00'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
3 echo $'str\000'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
/busybox-1.35.0/shell/ash_test/ash-quoting/
Ddollar_squote_bash2.tests2 echo $'str\x00'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
3 echo $'str\000'strstrstrstrstrstrstrstrstrstrstrstrstrstrstrstr
/busybox-1.35.0/shell/ash_test/
Drecho.c44 void strprint(char *str) in strprint() argument
48 for (s = (unsigned char *)str; s && *s; s++) { in strprint()
/busybox-1.35.0/sysklogd/
Dlogread.c82 static void error_exit(const char *str) NORETURN;
83 static void error_exit(const char *str)
87 bb_perror_msg_and_die(str);
91 # define error_exit(str) bb_simple_perror_msg_and_die(str) argument
/busybox-1.35.0/miscutils/
Dless.c316 static void print_hilite(const char *str) in print_hilite() argument
318 printf(HIGHLIGHT"%s"NORMAL, str); in print_hilite()
321 static void print_statusline(const char *str) in print_statusline() argument
324 printf(HIGHLIGHT"%.*s"NORMAL, width - 1, str); in print_statusline()
808 const char *str = line; in print_found() local
812 while (*str) { in print_found()
813 n = strcspn(str, controls); in print_found()
815 if (!str[n]) break; in print_found()
816 memcpy(p, str, n); in print_found()
818 str += n; in print_found()
[all …]

1234