Function fish_printf::sprintf_locale

source ·
pub fn sprintf_locale(
    f: &mut impl Write,
    fmt: &[char],
    locale: &Locale,
    args: &mut [Arg<'_>],
) -> Result<usize, Error>
Expand description

Formats a string using the provided format specifiers, arguments, and locale, and writes the output to the given Write implementation.

§Parameters

  • f: The receiver of formatted output.
  • fmt: The format string being parsed.
  • locale: The locale to use for number formatting.
  • args: Iterator over the arguments to format.

§Returns

A Result which is Ok containing the number of bytes written on success, or an Error.