Jimmi Holst Christensen
1676729c66
fmt: Refactor parsing of placeholders into its own function
...
This saves on comptime format string parsing, as the compiler caches
comptime calls. The catch here, is that parsePlaceHolder cannot take the
placeholder string as a slice. It must take it as an array by value for
the caching to occure.
There is also some logic in here that ensures that the specifier_arg is
always them same slice when the items they contain are the same. This
makes the compiler stamp out less copies of formatType.
2022-01-12 11:53:07 -07:00
..
2021-11-30 23:32:47 +00:00
2021-12-06 14:55:35 -06:00
2021-12-31 14:21:22 -07:00
2021-11-30 23:32:47 +00:00
2021-12-19 00:24:45 -05:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2021-08-24 12:25:09 -07:00
2021-12-19 00:24:45 -05:00
2021-11-30 23:32:47 +00:00
2021-12-19 23:22:05 -08:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2021-12-06 01:17:01 +13:00
2021-12-19 01:58:13 -05:00
2021-11-30 00:13:07 -07:00
2021-11-30 23:32:47 +00:00
2022-01-12 11:52:11 -07:00
2021-10-29 19:20:31 -04:00
2021-12-18 23:45:32 -07:00
2021-08-15 23:09:55 -07:00
2021-11-30 23:45:01 +00:00
2021-12-19 00:24:45 -05:00
2021-12-16 19:08:58 -08:00
2021-10-04 23:48:55 -07:00
2021-08-24 12:25:09 -07:00
2021-10-04 23:48:55 -07:00
2021-12-19 00:24:45 -05:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2021-10-04 23:48:55 -07:00
2021-11-30 00:13:07 -07:00
2021-12-03 16:42:59 -08:00
2021-12-15 20:10:34 +01:00
2021-11-30 23:32:47 +00:00
2021-11-30 23:32:47 +00:00
2021-12-18 17:55:53 -08:00
2021-12-10 23:09:02 +01:00
2021-12-19 00:24:45 -05:00
2021-12-19 00:24:45 -05:00
2021-11-30 23:32:47 +00:00
2021-08-24 12:25:09 -07:00
2021-08-24 12:25:09 -07:00
2021-11-15 04:47:57 +01:00
2021-11-30 23:32:47 +00:00
2021-12-19 00:24:45 -05:00
2021-11-30 23:32:47 +00:00
2021-12-19 00:24:45 -05:00
2021-12-31 14:19:36 -07:00
2021-08-24 12:25:09 -07:00
2021-09-01 17:54:06 -07:00
2021-11-30 23:32:47 +00:00
2022-01-12 11:53:07 -07:00
2021-12-06 23:30:18 -08:00
2021-12-17 16:56:43 -07:00
2021-08-24 12:25:09 -07:00
2021-12-19 00:24:45 -05:00
2021-11-30 00:13:07 -07:00
2021-11-30 23:32:47 +00:00
2021-09-20 01:58:18 -04:00
2021-08-24 12:25:09 -07:00
2021-11-30 00:13:07 -07:00
2021-12-15 08:59:20 +01:00
2021-11-30 00:13:07 -07:00
2021-12-31 14:22:38 -07:00
2021-11-30 00:13:07 -07:00
2021-11-30 23:32:47 +00:00
2021-12-02 12:35:17 -08:00
2021-11-09 18:31:03 -07:00
2021-12-19 00:24:45 -05:00
2021-10-09 03:15:34 -04:00
2021-12-31 14:20:02 -07:00
2021-12-15 17:46:10 -08:00
2021-12-15 17:46:04 -08:00
2021-11-30 23:32:47 +00:00
2021-12-06 12:18:41 -08:00
2021-12-19 00:24:45 -05:00
2021-08-24 12:25:09 -07:00
2021-10-27 16:07:48 -04:00
2021-12-19 00:24:45 -05:00
2021-11-29 08:05:51 +01:00
2021-10-04 23:48:55 -07:00
2021-12-16 03:01:13 -07:00
2021-12-31 14:20:09 -07:00
2021-12-19 00:24:45 -05:00
2021-10-04 23:48:55 -07:00
2021-11-30 23:32:47 +00:00
2021-08-29 11:57:32 +02:00
2021-11-30 23:32:47 +00:00
2021-08-24 12:25:09 -07:00
2021-11-30 23:32:47 +00:00