Home
last modified time | relevance | path

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

/coreutils/tests/sort/
Dsort-version.sh42 string start 5.0.0 end of str
43 string start 5.1.0 end of str
44 string start 5.10.0 end of str
45 string start 5.2.0 end of str
46 string start 5.20.0 end of str
47 string start 5.3.0 end of str
48 string start 5.30.0 end of str
49 string start 5.4.0 end of str
50 string start 5.40.0 end of str
51 string start 5.5.0 end of str
[all …]
/coreutils/src/
Denv.c194 scan_varname (char const *str) in scan_varname() argument
196 if (str[1] == '{' && (c_isalpha (str[2]) || str[2] == '_')) in scan_varname()
198 char const *end = str + 3; in scan_varname()
214 extract_varname (char const *str) in extract_varname() argument
219 p = scan_varname (str); in extract_varname()
224 i = p - str - 2; in extract_varname()
232 memcpy (varname, str + 2, i); in extract_varname()
349 build_argv (char const *str, int extra_argc, int *argc) in build_argv() argument
363 while (*str) in build_argv()
365 char newc = *str; /* Default: add the next character. */ in build_argv()
[all …]
Dtsort.c53 char const *str; member
101 new_item (char const *str) in new_item() argument
105 if (str) in new_item()
106 k->str = xstrdup (str); in new_item()
119 search_item (struct item *root, char const *str) in search_item() argument
127 return (root->right = new_item (str)); in search_item()
136 a = strcmp (str, p->str); in search_item()
149 q = new_item (str); in search_item()
158 a = strcmp (str, s->str); in search_item()
173 int cmp = strcmp (str, p->str); in search_item()
[all …]
Drelpath.c66 buffer_or_output (char const *str, char **pbuf, size_t *plen) in buffer_or_output() argument
70 size_t slen = strlen (str); in buffer_or_output()
73 memcpy (*pbuf, str, slen + 1); in buffer_or_output()
79 fputs (str, stdout); in buffer_or_output()
Dcsplit.c77 char *str; member
322 l->starts[l->insert_index].str = line_start; in keep_new_line()
783 if (line->str[line_len - 1] == '\n') in process_regexp()
785 ret = re_search (&p->re_compiled, line->str, line_len, in process_regexp()
823 if (line->str[line_len - 1] == '\n') in process_regexp()
825 ret = re_search (&p->re_compiled, line->str, line_len, in process_regexp()
1006 idx_t l = fwrite (line->str, sizeof (char), line->len, output_stream); in save_line_to_file()
1041 check_for_offset (struct control *p, char const *str, char const *num) in check_for_offset() argument
1045 quote (str)); in check_for_offset()
1054 parse_repeat_count (int argnum, struct control *p, char *str) in parse_repeat_count() argument
[all …]
Dprintf.c323 print_esc_string (char const *str) in print_esc_string() argument
325 for (; *str; str++) in print_esc_string()
326 if (*str == '\\') in print_esc_string()
327 str += print_esc (str, true); in print_esc_string()
329 putchar (*str); in print_esc_string()
Ddircolors.c198 append_quoted (char const *str) in append_quoted() argument
202 while (*str != '\0') in append_quoted()
205 switch (*str) in append_quoted()
230 APPEND_CHAR (*str); in append_quoted()
231 ++str; in append_quoted()
Ddd.c1359 operand_matches (char const *str, char const *pattern, char delim) in operand_matches() argument
1362 if (*str++ != *pattern++) in operand_matches()
1364 return !*str || *str == delim; in operand_matches()
1372 parse_symbols (char const *str, struct symbol_value const *table, in parse_symbols() argument
1379 char const *strcomma = strchr (str, ','); in parse_symbols()
1383 ! (operand_matches (str, entry->symbol, ',') && entry->value); in parse_symbols()
1388 idx_t slen = strcomma ? strcomma - str : strlen (str); in parse_symbols()
1391 str, slen)); in parse_symbols()
1402 str = strcomma + 1; in parse_symbols()
1414 parse_integer (char const *str, strtol_error *invalid) in parse_integer() argument
[all …]
Dtimeout.c351 parse_duration (char const *str) in parse_duration() argument
356 if (! (xstrtod (str, &ep, &duration, cl_strtod) || errno == ERANGE) in parse_duration()
364 error (0, 0, _("invalid time interval %s"), quote (str)); in parse_duration()
Dpinky.c85 count_ampersands (char const *str) in count_ampersands() argument
90 if (*str == '&') in count_ampersands()
92 } while (*str++); in count_ampersands()
Dstdbuf.c64 parse_size (char const *str, size_t *size) in parse_size() argument
67 enum strtol_error e = xstrtoumax (str, nullptr, 10, in parse_size()
Djoin.c841 string_to_join_field (char const *str) in string_to_join_field() argument
845 strtol_error s_err = xstrtoimax (str, nullptr, 10, &val, ""); in string_to_join_field()
849 error (EXIT_FAILURE, 0, _("invalid field number: %s"), quote (str)); in string_to_join_field()
891 add_field_list (char *str) in add_field_list() argument
893 char *p = str; in add_field_list()
Dnumfmt.c1148 parse_human_number (char const *str, long double /*output */ *value, in parse_human_number() argument
1154 simple_strtod_human (str, &ptr, value, precision, scale_from); in parse_human_number()
1157 simple_strtod_fatal (e, str); in parse_human_number()
1165 quote_n (0, str), quote_n (1, ptr)); in parse_human_number()
Dstat.c649 static char str[INT_BUFSIZE_BOUND (intmax_t) in human_time() local
659 nstrftime (str, sizeof str, "%Y-%m-%d %H:%M:%S.%N %z", &tm, tz, ns); in human_time()
663 sprintf (str, "%s.%09d", timetostr (t.tv_sec, secbuf), ns); in human_time()
665 return str; in human_time()
Dfactor.c2487 char const *str = input; in print_factors() local
2488 while (*str == ' ') in print_factors()
2489 str++; in print_factors()
2490 str += *str == '+'; in print_factors()
2498 strtol_error err = strto2uintmax (&t1, &t0, str); in print_factors()
2524 mpz_init_set_str (t, str, 10); in print_factors()
Dexpr.c518 nextarg (char const *str) in nextarg() argument
524 bool r = STREQ (*args, str); in nextarg()
Dcopy.c733 copy_attr_quote (MAYBE_UNUSED struct error_context *ctx, char const *str) in copy_attr_quote() argument
735 return quoteaf (str); in copy_attr_quote()
740 MAYBE_UNUSED char const *str) in copy_attr_free() argument
2099 subst_suffix (char const *str, char const *suffix, char const *newsuffix) in subst_suffix() argument
2101 idx_t prefixlen = suffix - str; in subst_suffix()
2105 return memcpy (r, str, prefixlen); in subst_suffix()
Dls.c4746 file_escape (char const *str, bool path) in file_escape() argument
4748 char *esc = xnmalloc (3, strlen (str) + 1); in file_escape()
4750 while (*str) in file_escape()
4752 if (path && ISSLASH (*str)) in file_escape()
4755 str++; in file_escape()
4757 else if (RFC3986[to_uchar (*str)]) in file_escape()
4758 *p++ = *str++; in file_escape()
4760 p += sprintf (p, "%%%02x", to_uchar (*str++)); in file_escape()
Dsort.c4482 char str[2]; in main() local
4483 str[0] = c; in main()
4484 str[1] = '\0'; in main()
4485 set_ordering (str, &gkey, bl_both); in main()
/coreutils/
Dbootstrap949 str=$2
957 linesnew=$( { echo "$str"; cat $file; } | gitignore_entries | sort -u | wc -l)
959 { echo "$str" | cat - $file > $file.bak && mv $file.bak $file; } \
960 || die "insert_if_absent $file $str: failed"
/coreutils/doc/
Dcoreutils.texi5579 @item --output-delimiter=@var{str}
5580 Print @var{str} between adjacent output columns,
5583 The delimiter @var{str} may be empty, in which case
13966 @code{$str} to expr merely by quoting it to the shell. One way to
13968 (e.g., @code{+ "$str" = foo}); a more portable way is to use
13969 @code{@w{" $str"}} and to adjust the rest of the expression to take
13970 the leading space into account (e.g., @code{@w{" $str" = " foo"}}).
14578 dirname dir1/str dir2/str