aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
Commit message (Collapse)AuthorAgeFilesLines
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-284-5/+5
|
* Merge pull request #2912 from ↵gingerBill2024-01-222-37/+121
|\ | | | | | | | | karl-zylinski/marshal-sort-maps-by-key-and-clone-value JSON: Option to sort marshaled maps before outputting + clone_value proc + small improvements
| * Made sure temp guard for sorting map keys in json marshal code ignores temp ↵Karl Zylinski2024-01-221-3/+3
| | | | | | | | allocator
| * Cleanup of json.clone_valueKarl Zylinski2023-11-011-4/+2
| |
| * Added temp allocator guard to json.marshal, in case we temp alloc when ↵Karl Zylinski2023-11-011-0/+3
| | | | | | | | sorting map kesy
| * Reversed order of sort_maps_by_key check in marshal.odin to make PR ↵Karl Zylinski2023-11-011-26/+26
| | | | | | | | comparison clearer.
| * Indentation fix.Karl Zylinski2023-11-011-3/+3
| |
| * JSON: Option to sort marshaled maps before outputting. Also added a ↵Karl Zylinski2023-11-012-38/+121
| | | | | | | | json.clone_value proc
* | Fix comments in xml_reader.odin for better rendering in documentationKostas Tsiligkiris2024-01-171-130/+53
| |
* | Fix filename in exampleKostas Tsiligkiris2024-01-171-2/+2
| |
* | Fix formatting of package documentation stringKostas Tsiligkiris2024-01-171-18/+18
| |
* | Move package xml before copyrightKostas Tsiligkiris2024-01-173-6/+12
| | | | | | | | | | Having the same copyright on all files made the documentation script to include it multiple times in the package information.
* | Enforce naming the parameters with `builtin.quaternion` to reduce confusiongingerBill2024-01-051-3/+3
| |
* | encoding/json: try to unmarshal into union variantsLaytan Laats2024-01-031-10/+27
| |
* | Update core:encoding to Unicode 15.1 table.Jeroen van Rijn2024-01-022-5033/+2627
| |
* | core/encoding/endian: Tidy up a comment (NFC)Yawning Angel2023-11-141-1/+1
| |
* | core/encoding/endian: Use intrinsics for loads/storesYawning Angel2023-11-141-66/+76
|/ | | | | | - Use `intrinsics.unaligned_load`/`intrinsics.unaligned_store` - Make all the routines contextless - Add unchecked variants for code that "Knows What It Is Doing(TM)"
* cleanup: remove unused importRickard Andersson2023-10-021-1/+0
|
* fix: guard against empty key value in `parse_object_body`Rickard Andersson2023-10-021-6/+10
|
* docs: add note about checking for alloc errorRickard Andersson2023-10-021-0/+2
|
* fix: use `runtime.map_insert` to not overallocateRickard Andersson2023-10-021-6/+4
|
* fix(json): return `.Out_Of_Memory` when out of memory on parseRickard Andersson2023-10-021-0/+6
| | | | | Previously this would silently simply not do anything and the object would be empty/incomplete when parsed instead.
* Minor cleanups to the core librarygingerBill2023-09-301-1/+1
|
* Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-302-7/+6
|
* Fix bug with index increment in `unquote_string`Abdelrahman Farid2023-09-191-1/+1
|
* json.marshal: Don't output spaces if pretty=falseRLGingerBiscuit2023-08-251-6/+6
|
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-1/+1
|
* Clean up usage of `using` throughout core and vendorgingerBill2023-07-311-16/+16
|
* Improve `//+vet`; remove `using` in many places; add `//+vet !using-stmt` ↵gingerBill2023-07-312-37/+30
| | | | where necessary
* Fix #2684Jeroen van Rijn2023-07-284-49/+44
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-262-7/+7
| | | | `switch`/`for` statements
* fix #2550 json encoding should use surrogate pairs per RFC7159Laytan Laats2023-05-222-4/+13
|
* fix hex.encode and add tests for the packageLaytan Laats2023-05-151-4/+4
|
* fix indentation and simplify hex.decode_sequenceLaytan Laats2023-05-151-29/+28
|
* add encoding/hex and use it to expand the percent decoding charsLaytan Laats2023-05-141-0/+74
|
* Fix typo in marshal.odinIkko Eltociear Ashimine2023-04-271-2/+2
| | | seperation -> separation
* Convert indentation to tabsjakubtomsu2023-04-141-6/+6
|
* Handle unmarshalling to json.Valuejakubtomsu2023-04-141-0/+6
|
* Document return values of strings and add allocator errors whereLucas Perlind2023-04-071-1/+1
| | | | possible
* Fix for skip_alphanum in JSON tokenizer not checking if first character is ↵Karl Zylinski2023-04-051-1/+2
| | | | non-alphanum. This broke any single-character key when using SJSON specification in combination with not using quoted strings.
* TypoJeroen van Rijn2023-03-251-1/+1
|
* Update types.odinJeroen van Rijn2023-03-251-6/+6
| | | | Use `context.allocator := allocator` idiom.
* Add allocator parameter to `json.detroy_value`Igor Dreher2023-03-241-5/+5
|
* Add `runtime.DEFAULT_TEMP_ALLOCATOR_TEMP_GUARD` where appropriategingerBill2023-02-102-1/+5
|
* Rename to `Type_Info_Parameters`gingerBill2023-02-081-1/+1
|
* Fix json.marshal for `map[string]string`gingerBill2023-01-241-0/+4
|
* Correct json/unmarshal.odingingerBill2022-11-111-1/+1
|
* Fix json marshal for mapsgingerBill2022-11-081-2/+2
|
* Correct reflection usage of mapsgingerBill2022-11-082-20/+14
|
* else statement to allow skipping unused struct fieldsMichael Kutowski2022-09-301-9/+7
|