aboutsummaryrefslogtreecommitdiff
path: root/core/fmt
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Use positional and named arguments within the core librarygingerBill2023-06-212-15/+15
|/
* Merge pull request #2573 from inbelic/inbelic/fmt-zero-paddinggingerBill2023-06-071-0/+5
|\ | | | | [fmt] fix zero-padding behaviour of numbers
| * [fmt] fix zero-padding behaviour of numbersfinn2023-06-011-0/+5
| | | | | | | | | | | | - when formatting a negative number with left zero-padding we expect the padding to be placed between the minus (-) sign and the number - currently the padding is placed before the sign
* | Fix `fmt` for `js`gingerBill2023-06-061-1/+1
| |
* | Correct printing in fmt for `ODIN_ERROR_POS_STYLE`gingerBill2023-06-061-5/+16
|/
* Fix special printing for certain named types with `fmt.printf` related ↵gingerBill2023-05-241-12/+4
| | | | procedures
* Partially buffer `fmt.fprint*` related calls using a `bufio.Writer`gingerBill2023-04-271-5/+35
|
* Fix caprintf commentJeroen van Rijn2023-03-271-1/+1
|
* Update fmt.odinJeroen van Rijn2023-03-271-7/+3
| | | | Fix hardcoded 64 bit, use assert instead of branched panic.
* Update fmt.odinjon lipstate2023-03-261-9/+11
| | | Update example to use set/register procs.
* corrected bprintJon Lipstate2023-03-251-6/+6
|
* fmt docsJon Lipstate2023-03-251-97/+561
|
* Fixed incorrect precision value in `fmt` doc.WraithGlade2023-03-191-1/+1
| | | | | | | It seems like `%.2f` is the correct implementation of "precision 2" for displaying floats, not `$.3f`. It prints two decimal places. Either that or the next case (`%8.3f`) would be wrong instead, if it's the other way around. So, there's a mistake here one way or the other at the least.
* Rename to `Type_Info_Parameters`gingerBill2023-02-081-2/+2
|
* Clean up float_fmt logicMarenFayre2023-01-101-13/+6
|
* Merge pull request #2297 from MarenFayre/d-parsinggingerBill2023-01-101-1/+1
|\ | | | | Fix off by one error in %d parsing