Andrew Kelley
0e37ff0d59
std.fmt: breaking API changes
...
added adapter to AnyWriter and GenericWriter to help bridge the gap
between old and new API
make std.testing.expectFmt work at compile-time
std.fmt no longer has a dependency on std.unicode. Formatted printing
was never properly unicode-aware. Now it no longer pretends to be.
Breakage/deprecations:
* std.fs.File.reader -> std.fs.File.deprecatedReader
* std.fs.File.writer -> std.fs.File.deprecatedWriter
* std.io.GenericReader -> std.io.Reader
* std.io.GenericWriter -> std.io.Writer
* std.io.AnyReader -> std.io.Reader
* std.io.AnyWriter -> std.io.Writer
* std.fmt.format -> std.fmt.deprecatedFormat
* std.fmt.fmtSliceEscapeLower -> std.ascii.hexEscape
* std.fmt.fmtSliceEscapeUpper -> std.ascii.hexEscape
* std.fmt.fmtSliceHexLower -> {x}
* std.fmt.fmtSliceHexUpper -> {X}
* std.fmt.fmtIntSizeDec -> {B}
* std.fmt.fmtIntSizeBin -> {Bi}
* std.fmt.fmtDuration -> {D}
* std.fmt.fmtDurationSigned -> {D}
* {} -> {f} when there is a format method
* format method signature
- anytype -> *std.io.Writer
- inferred error set -> error{WriteFailed}
- options -> (deleted)
* std.fmt.Formatted
- now takes context type explicitly
- no fmt string
2025-07-07 22:43:51 -07:00
..
2024-01-06 16:49:41 -08:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2021-04-29 15:54:04 -07:00
2025-06-19 18:41:12 -04:00
2025-04-02 05:53:22 +01:00
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2025-07-07 13:39:16 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-07-07 13:39:48 -07:00
2025-06-19 18:41:12 -04:00
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-07-07 13:39:48 -07:00
2025-06-28 06:47:09 +08:00
2025-06-28 06:47:09 +08:00
2025-05-03 20:10:26 +01:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-05-11 02:17:24 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-06-13 02:20:47 -07:00
2025-06-28 06:47:09 +08:00
2025-06-28 06:47:09 +08:00
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2024-08-27 00:44:35 +01:00
2025-06-19 18:41:12 -04:00
2024-08-28 08:39:59 +01:00
2023-11-19 09:57:03 +00:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2023-10-23 17:28:10 -07:00
2025-06-19 18:41:12 -04:00
2024-06-13 02:20:47 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2022-03-11 12:59:20 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-07-07 13:39:48 -07:00
2024-06-13 02:20:47 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-06-13 02:20:47 -07:00
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2024-06-13 02:20:47 -07:00
2025-06-19 18:41:12 -04:00
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-03-24 14:59:58 +01:00
2025-06-28 06:47:09 +08:00
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-08-28 08:39:59 +01:00
2025-06-16 13:22:19 +03:30
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-02-04 19:09:33 +01:00
2025-06-23 05:58:14 +02:00
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-07-07 13:39:48 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-05-11 02:17:24 -07:00
2024-07-26 04:19:58 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-19 18:41:12 -04:00
2025-07-07 13:39:48 -07:00
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2025-06-16 13:22:19 +03:30
2024-06-13 02:20:47 -07:00
2025-07-07 22:43:51 -07:00
2025-06-28 06:47:09 +08:00
2025-06-16 13:22:19 +03:30
2025-07-01 23:03:15 +02:00
2025-06-16 13:22:19 +03:30
2024-05-11 02:17:24 -07:00
2025-06-16 13:22:19 +03:30
2025-06-19 18:41:12 -04:00
2025-06-16 13:22:19 +03:30
2025-06-19 18:41:12 -04:00
2024-02-22 12:33:53 -08:00
2025-04-02 05:53:22 +01:00