mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
* Numfmt: one built-in format table, no dead render arms, fewer allocations (#817) S1: the built-in format table lives only in gridcraft-xlsx (file formats do not depend on numfmt); numfmt's unused copy and its exports are removed, xlsx gets tests pinning its lookup rules. S3: drop the render_number arm that printed what the fallback prints; literal text is appended to the output instead of built as a String per call. O3: render_number keeps pieces, text-before and literal replacements in one buffer (Parts), fill_int writes digits left to right, Section stores the date flags (sub-second digits, calendar, AM/PM) computed at parse time, render_date writes into one buffer. O4: significant_digits formats into a stack buffer; format_general_fit re-rounds the 15 digits per width into reused strings. An equality test compares format_value, TEXT() and format_general_fit with digests recorded from the previous implementation. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * xlsx test: builtin ids 42 and 44 are written as custom formats like 5-8 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * numfmt: push_str for short month/day names (clippy) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
153 lines
4.8 KiB
Plaintext
153 lines
4.8 KiB
Plaintext
1427c0507a69d2eb 79 "0.0000000000000000000000000"
|
|
c37039701ea91f71 79 "#,###,###,###,###,###,###,###,##0.00"
|
|
c886ef7cc0381aca 79 "0.0000000000000000000000000E+00"
|
|
16878498a86d6270 79 "# ?????/?????"
|
|
25810fe3aa348757 79 "General"
|
|
637698d5ec4840e7 79 "0"
|
|
f480db9c3f30f4f9 79 "0.00"
|
|
233cef56f68009ce 79 "#,##0"
|
|
d2fae9f7b5756366 79 "#,##0.00"
|
|
fcf13b3494133da6 79 "#.##"
|
|
93b3291c9e9847f7 79 "0.0##"
|
|
20ca0c941ad5c11f 79 "00000"
|
|
db86a5c476fc29cd 79 "000.000"
|
|
7cc10690ed9769ab 79 "#,###"
|
|
ea3312bb2d5c1342 79 "#,##0,"
|
|
d14a7d6e48db33f0 79 "#,##0,,"
|
|
e44a9c0ed1f49c8a 79 "0.0,,\"M\""
|
|
3c70c4c8ff8af422 79 "?.??"
|
|
93f48e4f2d83fd29 79 "##0.0"
|
|
a06b56173759b328 79 "# "
|
|
5a35d2ec11553fa4 79 "#"
|
|
f3495305635eab2d 79 ".00"
|
|
1f2ae975e66d556b 79 ",0"
|
|
253e097c9bdaf643 79 "0,0"
|
|
ae00b79ca5b8d288 79 "0.00,"
|
|
1b989416a1ec6e7c 79 "\"$\"#,##0.00"
|
|
f82256c8ac29c8f3 79 "\"$\"#,##0_);\\(\"$\"#,##0\\)"
|
|
7fc54d574b4ee62c 79 "#,##0.00;[Red](#,##0.00)"
|
|
7a81a86d7a4d3c69 79 "#,##0 ;(#,##0)"
|
|
57a11793e92c9715 79 "0;-0;;@"
|
|
a3d6c52367c35259 79 "0.00;;"
|
|
b45d3fdec1e8ff9a 79 ";;;"
|
|
11a021e5408029bb 79 "0_);(0)"
|
|
99b2e56004ca9b4a 79 "0\" units\""
|
|
c9aaa3ef8150f3a6 79 "\\A0"
|
|
641306b16f0036fe 79 "(0)"
|
|
19af7c406782b02c 79 "00-00"
|
|
c298712a7d3815bd 79 "000-00-0000"
|
|
28e5bc8fc3d88c8e 79 "[<=9999999]###-####;(###) ###-####"
|
|
f494c7ff5ff0fd7a 79 "[$€-407]#,##0.00"
|
|
4e11e82e14ea8f05 79 "_(* #,##0_);_(* \\(#,##0\\);_(* \"-\"_);_(@_)"
|
|
fc2d989610e136f3 79 "_(\"$\"* #,##0.00_);_(\"$\"* \\(#,##0.00\\);_(\"$\"* \"-\"??_);_(@_)"
|
|
091f29e23e924f36 79 "*-0"
|
|
93217b43f4b7af91 79 "0*x"
|
|
6a7561a5ce77014d 79 "*0 0.0"
|
|
9a6620cdfa67c60b 79 "@*_"
|
|
0b8f6e85e6ff12f0 79 "0%"
|
|
d2f558040c30c4cc 79 "0.00%"
|
|
371df01b15432009 79 "#,##0%"
|
|
e5016314db39e07b 79 "0.0%%"
|
|
f603836d162018f0 79 "%0"
|
|
7d08aed42e8d71e0 79 "0%;[Red]-0%"
|
|
d7d44df9f81bff2e 79 "0.00E+00"
|
|
275678f83b4d4113 79 "##0.0E+0"
|
|
497033fffb9c0967 79 "0E+0"
|
|
9679af8d3aa45c26 79 "0.0e-0"
|
|
eafc341422b759ce 79 "0.00E+000"
|
|
67cf5d053575d3df 79 "E+0"
|
|
f9d5b40fa2875a1e 79 "0.00E+"
|
|
e633fc616f9a3ff3 79 "#.##E+00"
|
|
8ecbeef181fb381e 79 "0.0E+00 \"x\""
|
|
7b74fb5636bda27e 79 "# ?/?"
|
|
aa283fbec589cdfe 79 "# ??/??"
|
|
9c9625146b582644 79 "# ???/???"
|
|
7d7dd7cefba77e8e 79 "?/?"
|
|
3babcf6e56373ec4 79 "# ?/8"
|
|
c2e84ddf50f1e21d 79 "# ??/16"
|
|
d5bbf7173f227e7a 79 "0/0"
|
|
6fe467468cd9a182 79 "# #/#"
|
|
a73c12b90cfc3656 79 "#/#"
|
|
d034fba50699f7ea 79 "?/100"
|
|
02ee892d135e01dc 79 "# ?/?;-# ?/?"
|
|
4bd7e5c1d9b3503f 79 "0 0/0"
|
|
2162452594679802 154 "m/d/yyyy"
|
|
d04b4c59e67bea74 154 "d-mmm-yy"
|
|
5dec91c67babe5f2 154 "d-mmm"
|
|
c384b64cedef18eb 154 "mmm-yy"
|
|
d7aa777afafbc668 154 "h:mm AM/PM"
|
|
b175c2057a22f6de 154 "h:mm:ss AM/PM"
|
|
aded84fe78136262 154 "h:mm"
|
|
5a79757ea5163c90 154 "h:mm:ss"
|
|
cd019c5ea6050d45 154 "m/d/yyyy h:mm"
|
|
54dbe04a04108479 154 "mm:ss"
|
|
e0718e196529a8f2 154 "[h]:mm:ss"
|
|
a38b480cf5c5a364 154 "[h]:mm"
|
|
2a913161d1313180 154 "[m]:ss"
|
|
76fdaf50d35fb2a2 154 "[s]"
|
|
ff9403ec80b0bc4f 154 "mmss.0"
|
|
425d4aa682fdc092 154 "yyyy-mm-dd"
|
|
058ce7638d05bbb9 154 "dddd, mmmm d, yyyy"
|
|
fe4bc250009a8329 154 "ddd mmm dd yy"
|
|
ccb6419ee78b2955 154 "mmmmm"
|
|
6c0289cc8797f513 154 "yy"
|
|
47cc3767e6229ec4 154 "h:mm:ss.000"
|
|
e6112ef1c8665ef8 154 "h:mm:ss.0000"
|
|
0bf1d0573ca9d704 154 "hh:mm:ss A/P"
|
|
e2a3d66078e1cf02 154 "[hh]:mm:ss"
|
|
8707505efd8a6284 154 "d"
|
|
7fa481a6092fa43c 154 "dd"
|
|
7d4b6020f781a3ba 154 "dddd"
|
|
949ed74d9b020535 154 "m"
|
|
0aa17a2f309cbecd 154 "mm"
|
|
c70a36183af563af 154 "s.00"
|
|
a8c8c009a7b0012f 154 "yyyy-mm-dd hh:mm:ss.00"
|
|
a70fc60b044d8b5e 154 "h AM/PM"
|
|
cf3e0c4fccbedb80 154 "[$-409]d-mmm-yy"
|
|
80b17497f3b9d5dd 154 "yyyy\"年\"m\"月\""
|
|
e00bb34ae8360b4c 154 "[h]\" hrs\""
|
|
8b75446f8310605f 154 "mmmm yyyy;@"
|
|
01123dabdab536a7 79 "@"
|
|
59fa7b60ca99b9b7 79 "\"x\"@"
|
|
b1eee7ca88961e38 79 "0;\"neg\"0;\"zero\";\"txt: \"@"
|
|
4d3f8a891532765e 79 "General;General;General;@"
|
|
59dc8b6bd14d719a 79 "[Red]0.0;[Blue]-0.0"
|
|
6a4d8666a78e97b3 79 "[Green]0;[Magenta]0;[Cyan]0;[Yellow]@"
|
|
15b794f754adc79d 79 "[Color3]0.00"
|
|
158526f0a5b736c5 79 "[>100]\"big\"0;[<-100]\"small\"0;0.0"
|
|
7a94ed36a6bb6573 79 "[=0]\"zero\";0.0"
|
|
30d048d3f229b1ba 79 "[>=1000]#,##0,\"K\";0"
|
|
2b2b1f13faeb468d 79 "[<1]0.00%;0.0"
|
|
b78758e73c416a1e 79 "[Red][>5]0;0.00"
|
|
8b2379e7de300595 79 "General\" kg\""
|
|
73f3485fe971d2bd 79 "\"v\"General"
|
|
2d2ce0ee57d199a2 79 "[Red]General"
|
|
ea2f102aad8c3c1b 79 "0.0;[Red]General"
|
|
ef5fc7ae5e0cf36c 79 "["
|
|
d80872ea795758e3 79 "0.0.0"
|
|
145e66eaa5b6a665 79 "0\""
|
|
ddb909bb72f98e33 79 "\\"
|
|
cc44573b688554a4 154 "[h"
|
|
c78707c90ee7a1b6 79 "[$"
|
|
aaf7da8233ee4f96 154 "yyyy-mm-dd;"
|
|
b1bbc169427ccdf8 79 ";"
|
|
2cf377cde4d0586d 79 "0;0;0;0;0"
|
|
9293c3fbfd2434b1 79 "\"abc"
|
|
3a0ef807a097eb69 79 "[>x]0"
|
|
1ef168bf45be1582 79 "ggg"
|
|
b39c47241ef60000 79 "#?#0"
|
|
92199ef29ea54843 154 "0E"
|
|
fe0eba9c258b10e7 154 "E0"
|
|
c5adbc0bf74eded8 79 "/"
|
|
d77317d9cc005a8c 79 "0/"
|
|
86aefad6fd9ab034 79 "/0"
|
|
d08e2f5c1fb6d629 79 "*"
|
|
5257c26622f2cfe0 79 "_"
|
|
ef14d84a8bf4f1b4 79 "_0"
|
|
c1a24c12c4381ef2 154 "[Red"
|
|
1653b1ac403ed200 79 "0.00.00%"
|
|
aac2038aa4ae7651 154 "mm:ss.0.0"
|
|
00083314e9f89199 79 "[ABC]0"
|
|
a456ed739adcc87c 79 "[=1]0;[=2]0;0"
|
|
b0b3aa7b9f08690c 79 "0 ??/??;0"
|