thisisnotnull
76b85c0622
fix wprintf return value
2022-11-21 21:39:43 +01:00
gingerBill
ed58374964
Make Map_Info store pointers to cell info rather than inline
2022-11-08 12:18:36 +00:00
gingerBill
50e10ceb3b
Correct hashing for map types
2022-11-08 01:20:08 +00:00
gingerBill
da774e3fd2
General modifications
2022-11-08 00:38:31 +00:00
gingerBill
2c3febd620
Correct fmt printing to be robust
2022-11-07 23:35:44 +00:00
gingerBill
bce62b98d4
Basic fmt printing for map
2022-11-07 23:32:59 +00:00
gingerBill
c96e0afbf1
Begin work on implementing the new map internals
2022-11-07 23:02:21 +00:00
gingerBill
30db316e16
Merge pull request #2141 from ChuuniMage/patch-2
...
Add caprintf and ctprintf to fmt
2022-11-03 12:57:46 +00:00
Jeroen van Rijn
22672a816e
Merge pull request #2153 from oskarnp/fix-fmt-string-width
...
Fix behavior of fmt_string() to not truncate strings to width
2022-10-26 17:54:26 +02:00
Oskar Nordquist
dcb873c88d
Fix behavior of fmt_string() to not truncate strings to width
2022-10-26 11:21:42 -04:00
nowheredevel
4389059834
Fix printf typo in documentation
2022-10-25 19:06:15 -04:00
ChuuniMage
9dee943fae
Update fmt.odin
...
Feedback regarding internal `fmt` reference addressed
2022-10-21 14:50:46 +11:00
ChuuniMage
a459bc13dc
Add caprintf and ctprintf to fmt
...
Formatted cstring procs to work with ubiquitous cstring APIs
2022-10-21 10:23:10 +11:00
gingerBill
f50fc33749
Clean up of the core library to make the stream vtables not be pointers directly.
2022-09-15 10:00:50 +01:00
gingerBill
c9eed04b51
Add comment regarding the layout of a map to explain how it is iterated
2022-08-26 16:19:48 +01:00
gingerBill
60aeab3c38
Update fmt.odin
2022-08-08 15:07:19 +01:00
gingerBill
5e3cf45df3
Add #soa pointer type to aid with refactoring to #soa data types
...
a: #soa[16]Foo
p := &a[6]
#assert(type_of(p) == #soa^#soa[16]Foo)
p^.x = 123
p.x = 123
2022-08-08 15:07:00 +01:00
gingerBill
157c87b2a2
Fix typo
2022-07-15 00:34:26 +01:00
gingerBill
c90b7c38f1
Rename strings.Builder procedures to be consistent with the rest of the core library
2022-07-11 11:50:08 +01:00
gingerBill
21e637d2b3
Allow %q with enums
2022-06-13 23:30:10 +01:00
gingerBill
6c196931d2
Increase record_level on displaying map values
2022-06-13 14:46:03 +01:00
gingerBill
65b8cfae82
Minor code clean up
2022-06-12 16:49:15 +01:00
gingerBill
4055c31cf0
Update utf-32 printing
2022-06-12 16:48:06 +01:00
gingerBill
e88af4e458
Support UTF-16 printing with []u16 and [^]u16 related types
2022-06-12 16:36:55 +01:00
gingerBill
d04f732e68
Add fmt:"s,0" to allow arrays and multi-pointers to be printed with NUL termination
2022-06-12 13:07:43 +01:00
gingerBill
bd502d16bc
Correct distinction between indirection and record level
2022-06-11 15:24:35 +01:00
gingerBill
a11e17fbc3
Disable again
2022-06-11 15:18:51 +01:00
gingerBill
8b3b659433
Re-enable string quoting within records
2022-06-11 15:16:17 +01:00
gingerBill
f33228fd6e
Merge branch 'master' of https://github.com/odin-lang/Odin
2022-06-11 15:13:13 +01:00
gingerBill
df5b693de8
Refactor fmt_value
2022-06-11 15:13:07 +01:00
gingerBill
c75dd14308
Fix typo
2022-06-11 02:03:54 +01:00
gingerBill
c166b6a21d
Support optional length parameter on struct tags for multi-pointers
2022-06-11 01:40:58 +01:00
gingerBill
6ed5cbee12
Refactor to fmt_array
2022-06-11 01:38:14 +01:00
gingerBill
5b200ccdf8
Correct #soa printing
2022-06-11 01:32:52 +01:00
gingerBill
cf0f0c4b31
Clean up trailing comma
2022-06-11 01:23:41 +01:00
gingerBill
1399ecb41c
Refactor with fmt_struct
2022-06-11 01:22:18 +01:00
gingerBill
339d6cfd41
Check for in_bad
2022-06-11 01:17:33 +01:00
gingerBill
7bded4f189
Default to q for strings within structs
2022-06-11 01:09:42 +01:00
gingerBill
c7269b9ef0
Allow for fmt:"s" and fmt:"s,field_length"
2022-06-11 01:06:47 +01:00
gingerBill
85688015aa
Add fmt:"-" to ignore fields in a struct
2022-06-11 00:55:10 +01:00
gingerBill
33895b6d92
Convert all uses of *_from_slice to *_from_bytes where appropriate
2022-05-16 01:43:43 +01:00
Lucas Perlind
507722954c
Improve core:fmt formatting
...
* Strings will respect widths smaller than the string's length
* Strings are right justified by default like integers
* Strings accept '-' flag to be left justified
* Booleans will be formatted like strings
* Enums will be formatted like strings
2022-03-02 16:22:16 +11:00
gingerBill
14cb19c2df
Update fmt to record the bytes written in the fmt.Info
2022-02-20 22:31:13 +00:00
Colin Davidson
ddf9c4a65b
switch to passing total_size to the io.writers
2022-02-19 16:38:33 -08:00
Colin Davidson
b3d797598e
fprintf tweaked to avoid calling file_size
2022-02-19 15:51:11 -08:00
gingerBill
21864d8d51
Improve BAD ENUM VALUE message in fmt #1496
2022-02-15 16:25:28 +00:00
gingerBill
f20105ddfe
Update docs for packages fmt and io
2022-01-24 23:07:06 +00:00
gingerBill
c85ac955f7
Simplify docs to hide the copyright
2022-01-17 19:00:47 +00:00
gingerBill
f0529535e0
ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant
2022-01-15 17:53:18 +00:00
gingerBill
f55fc4cd08
Add complex32 and quaternion64 for the 16-bit float types to fmt
2021-11-15 17:25:29 +00:00