Lines Matching refs:arg
186 char const *arg, size_t argsize, in quotearg_buffer_restyled() argument
279 for (i = 0; ! (argsize == SIZE_MAX ? arg[i] == '\0' : i == argsize); i++) in quotearg_buffer_restyled()
287 && memcmp (arg + i, quote_string, quote_string_len) == 0) in quotearg_buffer_restyled()
294 c = arg[i]; in quotearg_buffer_restyled()
303 if (i + 1 < argsize && '0' <= arg[i + 1] && arg[i + 1] <= '9') in quotearg_buffer_restyled()
324 && i + 2 < argsize && arg[i + 1] == '?') in quotearg_buffer_restyled()
325 switch (arg[i + 2]) in quotearg_buffer_restyled()
334 c = arg[i + 2]; in quotearg_buffer_restyled()
379 if (! (argsize == SIZE_MAX ? arg[1] == '\0' : argsize == 1)) in quotearg_buffer_restyled()
456 argsize = strlen (arg); in quotearg_buffer_restyled()
461 size_t bytes = mbrtowc (&w, &arg[i + m], in quotearg_buffer_restyled()
473 while (i + m < argsize && arg[i + m]) in quotearg_buffer_restyled()
488 switch (arg[i + m + j]) in quotearg_buffer_restyled()
527 c = arg[++i]; in quotearg_buffer_restyled()
564 return quotearg_buffer_restyled (buffer, buffersize, arg, argsize, in quotearg_buffer_restyled()
580 char const *arg, size_t argsize, in quotearg_buffer() argument
585 size_t r = quotearg_buffer_restyled (buffer, buffersize, arg, argsize, in quotearg_buffer()
593 quotearg_alloc (char const *arg, size_t argsize, in quotearg_alloc() argument
596 return quotearg_alloc_mem (arg, argsize, NULL, o); in quotearg_alloc()
606 quotearg_alloc_mem (char const *arg, size_t argsize, size_t *size, in quotearg_alloc_mem() argument
613 size_t bufsize = quotearg_buffer_restyled (0, 0, arg, argsize, p->style, in quotearg_alloc_mem()
616 quotearg_buffer_restyled (buf, bufsize, arg, argsize, p->style, flags, in quotearg_alloc_mem()
668 quotearg_n_options (int n, char const *arg, size_t argsize, in quotearg_n_options() argument
704 size_t qsize = quotearg_buffer_restyled (val, size, arg, argsize, in quotearg_n_options()
714 quotearg_buffer_restyled (val, size, arg, argsize, options->style, in quotearg_n_options()
724 quotearg_n (int n, char const *arg) in quotearg_n() argument
726 return quotearg_n_options (n, arg, SIZE_MAX, &default_quoting_options); in quotearg_n()
730 quotearg_n_mem (int n, char const *arg, size_t argsize) in quotearg_n_mem() argument
732 return quotearg_n_options (n, arg, argsize, &default_quoting_options); in quotearg_n_mem()
736 quotearg (char const *arg) in quotearg() argument
738 return quotearg_n (0, arg); in quotearg()
742 quotearg_mem (char const *arg, size_t argsize) in quotearg_mem() argument
744 return quotearg_n_mem (0, arg, argsize); in quotearg_mem()
748 quotearg_n_style (int n, enum quoting_style s, char const *arg) in quotearg_n_style() argument
751 return quotearg_n_options (n, arg, SIZE_MAX, &o); in quotearg_n_style()
756 char const *arg, size_t argsize) in quotearg_n_style_mem() argument
759 return quotearg_n_options (n, arg, argsize, &o); in quotearg_n_style_mem()
763 quotearg_style (enum quoting_style s, char const *arg) in quotearg_style() argument
765 return quotearg_n_style (0, s, arg); in quotearg_style()
769 quotearg_style_mem (enum quoting_style s, char const *arg, size_t argsize) in quotearg_style_mem() argument
771 return quotearg_n_style_mem (0, s, arg, argsize); in quotearg_style_mem()
775 quotearg_char_mem (char const *arg, size_t argsize, char ch) in quotearg_char_mem() argument
780 return quotearg_n_options (0, arg, argsize, &options); in quotearg_char_mem()
784 quotearg_char (char const *arg, char ch) in quotearg_char() argument
786 return quotearg_char_mem (arg, SIZE_MAX, ch); in quotearg_char()
790 quotearg_colon (char const *arg) in quotearg_colon() argument
792 return quotearg_char (arg, ':'); in quotearg_colon()
796 quotearg_colon_mem (char const *arg, size_t argsize) in quotearg_colon_mem() argument
798 return quotearg_char_mem (arg, argsize, ':'); in quotearg_colon_mem()