aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
Commit message (Collapse)AuthorAgeFilesLines
* wasi: make the demo run on wasi and run it in CILaytan Laats2024-06-291-1/+0
|
* Fix loads of indentation issues with mixing spaces and tabsgingerBill2024-06-294-31/+31
|
* Even more style fixesgingerBill2024-06-292-2/+2
|
* Indentation fixesgingerBill2024-06-291-116/+116
|
* Fix generation for unicode entitiesgingerBill2024-06-291-4816/+4816
|
* Add another `-vet-cast` checkgingerBill2024-06-291-1/+1
|
* Keep `-vet` happyFeoramund2024-06-281-2/+2
|
* Merge pull request #3643 from korvahkh/fix-omitempty-commagingerBill2024-06-281-15/+17
|\ | | | | encoding/json: Fix struct marshal() emitting comma after omitted field
| * Merge branch 'odin-lang:master' into fix-omitempty-commakorvahkh2024-06-1316-308/+624
| |\
| * | encoding/json: Fix struct marshal() emitting comma after omitted fieldkorvahkh2024-05-271-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously: ```odin package main import "core:fmt" import "core:encoding/json" T :: struct { a: string `json:",omitempty"`, b: string, } main :: proc() { data, _ := json.marshal(T{b = "foo"}) fmt.println(string(data)) } ``` would output: ``` {,"b":"foo"} ``` which is not correct. Also cleaned up some whitespace while I'm at it.
* | | Merge pull request #3792 from Feoramund/core-uuidgingerBill2024-06-288-0/+1082
|\ \ \ | | | | | | | | Add `core:encoding/uuid`
| * | | Use new API `from_nanoseconds` in `uuid`Feoramund2024-06-221-3/+3
| | | |
| * | | Change how `Time` is constructed in `uuid`Feoramund2024-06-221-5/+3
| | | |
| * | | Clarify some `uuid` legacy documentationFeoramund2024-06-221-16/+12
| | | |
| * | | Add API for creating custom version 8 UUIDsFeoramund2024-06-221-0/+89
| | | |
| * | | Add vendor-specific version 8 UUID generation (hashing)Feoramund2024-06-221-0/+116
| | | |
| * | | Add `unsafe_write` to `uuid` packageFeoramund2024-06-221-4/+45
| | | |
| * | | Address minor organizational issuesFeoramund2024-06-223-17/+21
| | | |
| * | | Add buffer-based `to_string` to `uuid` packageFeoramund2024-06-221-1/+30
| | | |
| * | | Improve time-related API in `uuid` packageFeoramund2024-06-222-25/+80
| | | | | | | | | | | | | | | | | | | | | | | | - Let timestamps be specified by the user. - Change `time_v*` to `raw_time_v*` and implement an API that returns timestamps from the `time` package.
| * | | Update `uuid` package documentationFeoramund2024-06-221-7/+38
| | | |
| * | | Require CSPRNG in UUID generation where applicableFeoramund2024-06-222-3/+12
| | | |
| * | | Move v3 and v5 UUID procs to `uuid/legacy`Feoramund2024-06-222-135/+150
| | | |
| * | | Add version 6 UUID generationFeoramund2024-06-222-1/+65
| | | |
| * | | Add version 1 UUID generationFeoramund2024-06-223-0/+102
| | | |
| * | | Add version 7 UUID generationFeoramund2024-06-223-0/+120
| | | |
| * | | Make UUID namespaces `@(rodata)`Feoramund2024-06-221-0/+4
| | | |
| * | | Make UUID `Identfier` only a distinct byte arrayFeoramund2024-06-224-48/+38
| | | |
| * | | Fix wrong commentsFeoramund2024-06-221-2/+2
| | | |
| * | | Add `core:encoding/uuid`Feoramund2024-06-226-0/+419
| | |/ | |/|
* | | Mark deuxJeroen van Rijn2024-06-241-1/+1
| | |
* | | Fix CSV comments.Jeroen van Rijn2024-06-241-2/+4
|/ /
* | Fold XML attribute whitespace.Jeroen van Rijn2024-06-121-10/+24
| |
* | Update XML reader to normalize whitespace, part 1.Jeroen van Rijn2024-06-123-111/+65
| |
* | Port `tests\core\encoding\json`Jeroen van Rijn2024-06-023-41/+42
| |
* | Port `tests\core\encoding\hxa`Jeroen van Rijn2024-06-022-37/+36
| | | | | | | | And fix a few leaks in `core:encoding/hxa` while at it.
* | Port `tests\encoding\hex`Jeroen van Rijn2024-06-021-6/+5
| |
* | Update `tests\core\encoding\cbor` to use new test runner.Jeroen van Rijn2024-06-024-113/+116
| | | | | | | | | | | | It was leaky and required a substantial number of `loc := #caller_location` additions to parts of the core library to make it easier to track down how and where it leaked. The tests now run fine multi-threaded.
* | Add `core:encoding/ansi` packageFeoramund2024-06-022-0/+157
| |
* | `core:encoding/ini`gingerBill2024-05-311-0/+189
|/
* Merge pull request #3628 from IllusionMan1212/bitset-json-marshalling-fixJeroen van Rijn2024-05-251-2/+0
|\ | | | | fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_set
| * fix(core/encoding/json): remove Unsupported_Type return when marshalling bit_setIllusionMan12122024-05-251-2/+0
| |
* | Remove core:mem import in example.Jeroen van Rijn2024-05-241-1/+0
| |
* | Add iterator_next(&r) to CSV.Jeroen van Rijn2024-05-242-2/+112
|/
* encoding/json: Properly marshal `#no_nil` unionskorvahkh2024-05-111-5/+8
| | | | | Previously the first variant of a `#no_nil` would always be output as `null`, and following variants would be treated as the wrong type.
* Fix `omitempty` in `json.marshal`Feoramund2024-04-272-2/+2
|
* Return partial readsgingerBill2024-04-191-4/+15
|
* Only override the comma value on `*_init` if it is "invalid"gingerBill2024-04-192-2/+8
|
* Update numerous package declaration namesgingerBill2024-04-1825-25/+25
|
* Keep -vet happygingerBill2024-04-154-18/+17
|