aboutsummaryrefslogtreecommitdiff
path: root/core/encoding
Commit message (Collapse)AuthorAgeFilesLines
* core:os -> core:os/old && core:os/os2 -> core:osJeroen van Rijn6 days4-4/+4
|
* Remove all `core:os` imports from JS targetsJeroen van Rijn6 days7-60/+72
| | | | Fix `local_tz_name` on FreeBSD.
* eprintfJeroen van Rijn7 days1-6/+5
|
* Add `loc := #caller_location` to `read_entire_file`Jeroen van Rijn7 days1-2/+2
|
* Convert `core:encoding/hxa`Jeroen van Rijn7 days2-7/+7
|
* `core:os` -> `core:os/os` for CSV, INI, and XMLJeroen van Rijn7 days3-33/+40
| | | | | Also had to vendor `core:encoding/ini` into `core:os/os2` for the user directories on *nix, as it used that package to read `~/.config/user-dirs.dirs`, causing an import cycle.
* encoding/xml: pass allocator on destroyIsabella Basso2026-01-251-1/+2
|
* Merge branch 'master' into xmlcommentJeroen van Rijn2026-01-223-2429/+2725
|\
| * Keep -vet happygingerBill2026-01-191-1/+1
| |
| * Remove the nbsp change, as it is not necessarygingerBill2026-01-191-5/+2
| |
| * Escape non-breaking space (0xa0) to ` `gingerBill2026-01-191-1/+4
| |
| * Merge pull request #6145 from odin-lang/bill/html-escapeJeroen van Rijn2026-01-182-2429/+2676
| |\ | | | | | | Update `core:encoding/entity`
| | * Update generated.odingingerBill2026-01-181-101/+101
| | |
| | * Keep `-vet` happygingerBill2026-01-181-9/+9
| | |
| | * Move html escaping calls and fix existing generatorgingerBill2026-01-182-2429/+2676
| | |
| * | core:encoding/base64: add support for url variantrykad2026-01-171-0/+49
| |/
* | Comment includiing -- at endStudebakerGuy2026-01-071-1/+1
| | | | | | | | | | Comments are incorrectly including -- a the end. This was due to the comment slice being returned 2 charachters too long.
* | Comments before first emlement not being capturedStudebakerGuy2026-01-071-1/+1
|/ | | | | | The xml library was not correctly detect that a comment occured before the first element. This addresses the issue, but the comment incorrectly includes --.
* Merge pull request #5882 from IllusionMan1212/custom-json-marshallingJeroen van Rijn2026-01-012-3/+164
|\ | | | | encoding/json: custom json (un)marshalling
| * Make custom JSON (un)marshalers more like core:fmt'sJeroen van Rijn2025-12-102-61/+200
| |
| * encoding/json: error handling for custom (un)marshallersHisham Aburaqibah2025-12-022-4/+4
| |
| * encoding/json: custom json (un)marshallingIllusionMan12122025-12-022-44/+66
| |
* | [encoding/json] Allow Unmarshalling to `rune`dozn2025-12-302-0/+10
| | | | | | | | Fixes https://github.com/odin-lang/Odin/issues/6061
* | [encoding/json] Fix Escapes When Marshallingdozn2025-12-301-3/+3
| | | | | | | | | | | | Fixes https://github.com/odin-lang/Odin/issues/6060 and https://github.com/odin-lang/Odin/issues/6075 The boolean "true" was setting `html_safe` instead of `for_json`. Chalk one up for the "use enums instead of booleans" crowd.
* | Moved `first_iteration` up a couple lines so it makes sense readability-wise.dozn2025-12-301-1/+1
| |
* | Add JSON5/SJSON Comments When Marshallingdozn2025-12-291-0/+26
| | | | | | | | | | | | Allows user-facing JSON5/SJSON to have comments explaining field usage. `json.Marshal_Options.pretty` must be enabled since we only use single-line comments (not to mention it wouldn't be terribly useful without `pretty` set anyways). We don't escape anything, so `\n` will display as "\n", but you're still able to enter in a proper newline character and it'll be displayed on multiple lines.
* | Merge pull request #6078 from BigBoyBarney/json-arraysLaytan2025-12-292-11/+11
|\ \ | | | | | | Fix standard json parsing / unmarshalling issue for pure arrays
| * | Fix standard json parsing / unmarshalling issue for pure arraysSylphrena2025-12-292-11/+11
| |/
* | encoding/base32: Fix padding validation for malformed inputZoltán Kéri2025-12-271-7/+7
| | | | | | | | | | | | | | | | | | | | | | Fix a bug where padding characters in the middle of input were not detected when there was no trailing padding. The "verify no padding in middle" check was inside `if padding_count > 0`, so inputs like "MZ===YTBMZXW6YTB" would incorrectly pass validation. Test case added for this edge case.
* | Address issue identifying of CDATAStudebakerGuy2025-12-231-1/+2
|/ | | | | | The XML library wasn't identifying CDATA and skipping over it. This was found when CDATA contained a <. This patch addresses that issue.
* Increase base64 decoding table size to 256, preventing out of bounds readsFranz Hoeltermann2025-11-221-19/+35
|
* encoding/json: clone unquoted stringsNeirokan2025-11-062-15/+17
|
* Merge pull request #5859 from odin-lang/bill/change-licensedev-2025-11gingerBill2025-11-047-31/+20
|\ | | | | Change Odin's LICENSE to zlib from BSD 3-clause
| * Change Odin's LICENSE to zlib from BSD 3-clausegingerBill2025-10-287-31/+20
| | | | | | | | This change was made in order to allow things produced with Odin and using Odin's core library, to not require the LICENSE to also be distributed alongside the binary form.
* | encoding/cbor: fix epoch tag with small valuesLaytan2025-11-031-14/+18
|/
* Link doc lines to source specifications.Jeroen van Rijn2025-10-105-8/+5
|
* Render examples.Jeroen van Rijn2025-10-108-48/+49
|
* Further overhaul of package line comments.Jeroen van Rijn2025-10-0917-19/+15
|
* package lines for encodingJeroen van Rijn2025-10-0911-18/+21
|
* More package linesJeroen van Rijn2025-10-093-4/+6
|
* Package lines for base32, move its tests to tests"Jeroen van Rijn2025-10-093-229/+5
|
* Followup fix to #4895Courtney Strachan2025-10-051-3/+1
|
* Merge branch 'odin-lang:master' into masterCourtney Strachan2025-10-0617-287/+236
|\
| * Add `#+test` to base32_test.odingingerBill2025-09-281-0/+1
| |
| * Require `@(init)` and `@(fini)` to be `proc "contextless" ()`gingerBill2025-08-081-4/+6
| |
| * Change `is_utf16` field to `encoding` and use an enumgingerBill2025-08-053-3/+3
| |
| * Begin supporting `string16` across the core librarygingerBill2025-08-024-6/+10
| |
| * Fix #4705Jeroen van Rijn2025-06-091-1/+2
| | | | | | | | Allocate `doc.tokenizer`, and free it in `destroy`.
| * Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-052-7/+7
| |
| * encoding/cbor: support simd vectorsLaytan Laats2025-06-042-0/+30
| |