aboutsummaryrefslogtreecommitdiff
path: root/core/fmt
Commit message (Collapse)AuthorAgeFilesLines
* Fix duplicate sign printing of complex and quaternion typesFeoramund2024-06-031-4/+20
| | | | | Negative zero wasn't being detected (so it would appear as `+-0`), and `+Inf` was appearing as `++Inf` when imaginary.
* Improve `fmt` parsing of struct field tagsgingerBill2024-05-201-41/+89
|
* Fix the way '%32b' and other prefixed numbers are written.Jeroen van Rijn2024-05-201-11/+58
|
* remove extra newline in enumerated array hash fmtMatias Fernandez2024-05-181-1/+0
|
* Correct #soa RTTI usagegingerBill2024-05-161-1/+1
|
* Amend `fmt` documentationFeoramund2024-05-091-15/+18
|
* Refactor `wprintf`Feoramund2024-05-091-191/+156
| | | | | | | | | | | | | | | | | | | | | | - Extracts common code between C and Python-like syntax into its own sub-procedures. - Fixes Python-like syntax from treating `}` as a verb. - Makes C-like syntax treat ' ' as a missing verb. - Fixes EXTRA arguments being formatted with options that were previously set, instead using default options now. - Makes error messaging more consistent between C and Python-like syntax. - Requires argument index to be specified immediately before the verb in C-like syntax, per the documentation, instead of after `%` _or_ before the verb. - Tracks argument usage through a `bit_set`, allowing for reporting of unused arguments even when reordered. - Moves exit for C-like syntax if next byte is `%` to beginning of block instead of needlessly trying to parse through all options. - Pops next unused argument for unspecified formatters like `%i` or `{}`, instead of taking the argument after the last one used. - Fixes unspecified precision `%.f` from not setting precision to zero, per the documentation.
* Combine adjacent `sbprint*`/`to_string` callsFeoramund2024-04-281-12/+6
| | | | The `sbprint*` procs already return a string conversion.
* Require results for non-buffered `print` procsFeoramund2024-04-281-0/+12
|
* wasm: add the `fprint` procedures to `fmt`Laytan Laats2024-04-281-0/+51
| | | | This makes the `log` package work on wasm
* Fix printing of big endian integers in a `bit_field`gingerBill2024-04-271-1/+4
|
* Add printfln and eprintfln functions to fmt_js.odinDamian Tarnawski2024-04-211-0/+4
|
* Merge pull request #3447 from matias-eduardo/fix-soa-hash-formattinggingerBill2024-04-191-2/+19
|\ | | | | fix #soa '%#v' formatting
| * fix #soa '%#v' formattingMatias Fernandez2024-04-171-2/+19
| |
* | Do not print column of a runtime.Source_Code_Location if the `column == 0`gingerBill2024-04-191-4/+8
|/
* Fix #3407gingerBill2024-04-101-1/+1
|
* Add `#row_major matrix[R, C]T`gingerBill2024-03-191-2/+10
| | | | | As well as `#column_major matrix[R, C]T` as an alias for just `matrix[R, C]T`. This is because some libraries require a row_major internal layout but still want to be used with row or major oriented vectors.
* Minor change to spacing when printing a mapgingerBill2024-03-081-3/+3
|
* Improve formatting for `%#` on `map`sgingerBill2024-03-071-5/+24
|
* Replace `b` with `_` as it is not neededgingerBill2024-03-071-1/+1
|
* Begin work on `%w` - 'w'rite as valid Odin literalsgingerBill2024-03-071-170/+217
|
* Merge pull request #3207 from Tetralux/printflngingerBill2024-02-292-25/+130
|\ | | | | Add `fmt.*printfln`
| * [fmt] Add *printfln()Tetralux2024-02-182-25/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds the following procedures, which just call through to the `printf` versions, with `newline = true`; a new parameter also added in this commit. In all cases, `wprintf` is the one that ultimately writes the newline, if requested. - printfln - fprintfln - eprintfln - aprintfln - tprintfln - bprintfln - caprintfln - ctprintfln - sbprintfln - wprintfln
* | Improve `bit_field` printinggingerBill2024-02-221-3/+6
| |
* | Add field tags to `bit_field`gingerBill2024-02-221-2/+23
| |
* | Add general support for `bit_field`sgingerBill2024-02-221-2/+8
| |
* | Begin work adding `bit_field`gingerBill2024-02-221-0/+65
| |
* | Add `reflect.enum_name_from_value` and `reflect.enum_name_from_value_any`gingerBill2024-02-211-27/+2
|/
* Move Tracking_Allocator to its own file.dev-2024-02gingerBill2024-02-011-2/+2
|
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-282-3/+3
|
* Fix #3053gingerBill2024-01-261-16/+2
|
* Removed return value of assertf. assertf now correctly responds to ↵Dragos Popescu2024-01-231-9/+15
| | | | -disable-assert. Added log.assert and log.assertf. All asserts now do the @cold trick, first added to builtin.assert
* Remove unnecessary []byte -> []byte conversion.Jeroen van Rijn2023-12-301-3/+3
|
* Fix `%g` in `fmt`, and make `%v` default to `%g` for floatsgingerBill2023-12-211-6/+12
|
* core: Fixed build constraintsYawning Angel2023-12-171-1/+2
| | | | | | Multiple constraints on the same line are combined with logical OR, while combining multiple negated constraints needs to be done with logical AND (each constraint on a separate line).
* allow integer verbs in fmt_bit_setLaytan Laats2023-11-071-4/+32
|
* Add `allocator` parameter to `fmt`'s `aprint` and `aprintln`gingerBill2023-11-031-4/+4
|
* Merge pull request #2839 from Tetralux/aprintf-allyJeroen van Rijn2023-10-021-2/+2
|\ | | | | [fmt] Add allocator parameter to `fmt.aprintf`
| * [fmt] Add allocator parameter to `fmt.aprintf`Tetralux2023-10-021-2/+2
| | | | | | | | This allows you to do `fmt.aprintf("Hello, %v!", name, allocator = ally)`.
* | Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-301-6/+3
|/
* update docLaytan Laats2023-09-121-2/+2
|
* use KiB etc. instead of KBLaytan Laats2023-09-121-4/+4
|
* Add formatting of bytes into the best unit of measurementLaytan Laats2023-09-012-0/+64
|
* Add optional `flush := true` to many of the `core:fmt` proceduresgingerBill2023-08-223-36/+45
|
* Disallow `for in` in favour of `for _ in`gingerBill2023-08-081-4/+4
|
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-24/+3
|
* Clean up usage of `using` throughout core and vendorgingerBill2023-07-311-11/+11
|
* Fix fmt implementation for `js`gingerBill2023-06-261-13/+10
|
* Merge pull request #2584 from odin-lang/new-iogingerBill2023-06-231-5/+5
|\ | | | | New and Improved `io.Stream` interface
| * Just make the `io.Reader` etc aliasesgingerBill2023-06-081-5/+5
| |