std.fmt [core] std.fmt.pad_left pub fn pad_left(s: str, width: int) -> str — s padded on the LEFT with spaces to at least width bytes — right-alignment, the {x:>w} spec's meaning. std.fmt.pad_left_with pub fn pad_left_with(s: str, width: int, fill: str) -> str — pad_left with an explicit one-byte fill. std.fmt.pad_right pub fn pad_right(s: str, width: int) -> str — s padded on the RIGHT with spaces to at least width bytes — left-alignment, the {x: str — pad_right with an explicit one-byte fill; the assert trap on a multi-byte fill is pad_left_with's, for the same reason. std.fmt.center pub fn center(s: str, width: int) -> str — s centered in width bytes with spaces — the {x:^w} spec's meaning. std.fmt.center_with pub fn center_with(s: str, width: int, fill: str) -> str — center with an explicit one-byte fill; the assert trap on a multi-byte fill is pad_left_with's. std.fmt.to_str pub fn to_str(n: int) -> str — n in base ten — the decimal rendering of an int, sign included, no separators, no padding. std.fmt.to_str_base pub fn to_str_base(n: int, radix: int) -> str ! {base} — n in radix (2 through 36) with lowercase digits; base when the radix is outside that range. std.fmt.to_hex pub fn to_hex(n: int) -> str — n in base sixteen with lowercase digits and no 0x prefix; the sign-magnitude rendering to_str_base documents. std.fmt.to_hex_upper pub fn to_hex_upper(n: int) -> str — to_hex with uppercase digits ("FF"). std.fmt.to_oct pub fn to_oct(n: int) -> str — n in base eight, no 0o prefix. std.fmt.to_bin pub fn to_bin(n: int) -> str — n in base two, no 0b prefix and no leading zeros — the shortest binary rendering, so to_bin(1) is "1" and not a 64-bit field. std.fmt.with_sign pub fn with_sign(n: int) -> str — n in base ten with an explicit sign — "+42", "-42", and "+0" for zero. std.fmt.group pub fn group(n: int, sep: str) -> str — n in base ten with sep inserted every three digits from the right — thousands grouping, sign in front of the first group. std.fmt.parse_int pub fn parse_int(s: str) -> int ! {parse} — s parsed as a whole decimal integer; parse when it is not one. std.fmt.parse_int_base pub fn parse_int_base(s: str, radix: int) -> int ! {parse, base} — s parsed as a whole integer in radix; parse when the text is not one and base when the radix is outside 2..36 — two tags because a caller distinguishes bad data from a bad call (§2, and this module's header on the re-home). std.fmt.parse_bool pub fn parse_bool(s: str) -> bool ! {parse} — s parsed as a boolean; parse when it is neither "true" nor "false". std.fmt.truncate_to pub fn truncate_to(s: str, width: int) -> str — The longest prefix of s that is at most width BYTES long and ends on a code-point boundary; s itself when it already fits.