aboutsummaryrefslogtreecommitdiff
path: root/core/strconv/strconv.odin
Commit message (Collapse)AuthorAgeFilesLines
* Further overhaul of package line comments.Jeroen van Rijn2025-10-091-1/+1
|
* Add doc line to `strconv`gingerBill2025-10-091-0/+1
|
* fix: copy/paste errorsamwega2025-10-031-1/+1
|
* Tetralux asked for int_tostring() to also be deprecated, use write_int() ↵samwega2025-10-031-29/+0
| | | | instead.
* short C names deprecated (itoa, ftoa), C reimplementations of atoi and atof ↵samwega2025-10-031-54/+6
| | | | deprecated as parse_int() and parse_f64() are preferable
* After discord debate: replaced rtoi and utoi with just digit_to_int and ↵samwega2025-10-021-63/+2
| | | | simple comment
* fix: copy/paste replaced tabs with spacessamwega2025-10-021-27/+27
|
* feat: added rtoi & utoi procs for converting a rune and a u8 character ↵samwega2025-10-021-0/+68
| | | | respectively to int
* Remove trailing whitespaceFeoramund2025-06-051-96/+96
|
* Clarify `strconv.append_*` to `strconv.write_*`Feoramund2025-06-051-42/+42
|
* add hexfloat (0h) parsing to strconvLaytan Laats2025-05-101-0/+33
|
* Fix magnitude check in parse_f64_prefixMisomosi2024-10-221-1/+2
|
* Return "" for rune < 0 in strconv.Jeroen van Rijn2024-09-081-31/+31
|
* Don't factor trailing zeroes into mantissa divisionFeoramund2024-06-301-3/+19
| | | | | This should fix issues where `N00 / (pow+2)` results in a different number than `N / pow`.
* Add `@(rodata)` and `@(static, rodata)` where appropriategingerBill2024-06-061-1/+1
|
* Merge pull request #3675 from Feoramund/fix-partial-infinitygingerBill2024-06-051-6/+9
|\ | | | | Fix partial parsing of `infinity`
| * Permit parsing of incomplete `infinity` but do not return trueFeoramund2024-06-041-2/+8
| | | | | | | | | | | | | | | | | | To clarify, `parse_f64` will indeed take `infi` to mean `+Inf` and return that as the value, but it will not return `ok = true`. It treats it as `inf` followed by any other trailing character. `parse_f64_prefix` is the lenient one which will return true so long as it finds some meaningful value.
| * Fix partial parsing of "infinity" in `parse_f64_prefix`Feoramund2024-06-041-6/+3
| | | | | | | | | | It was previously reporting an invalid number of characters parsed for any string other than "inf", "+inf", or "-inf".
* | Merge pull request #3678 from Feoramund/fix-p-f64-p-docJeroen van Rijn2024-06-051-1/+5
|\ \ | | | | | | Strike incorrect note from `parse_f64_prefix` doc
| * | Strike incorrect note from `parse_f64_prefix` docFeoramund2024-06-041-1/+5
| |/
* / Add `parse_complex/quaternion*` to `core:strconv`Feoramund2024-06-041-0/+269
|/
* Fix and re-enable .doc tests.Jeroen van Rijn2024-05-111-9/+9
|
* Add append_u128gingerBill2024-04-101-0/+7
|
* correct newly found vetsLaytan Laats2024-04-031-1/+1
|
* doc tests verifiedJon Lipstate2023-04-061-26/+27
|
* resolve doc-test issuesJon Lipstate2023-04-061-1/+51
|
* parensJon Lipstate2023-04-061-25/+25
|
* parensJon Lipstate2023-04-061-25/+25
|
* strconv docsJon Lipstate2023-04-051-288/+371
|
* initialJon Lipstate2023-03-281-7/+402
|
* Add `contextless` to internal `parse_hex` callgingerBill2023-03-161-1/+1
|
* Remove debug codegingerBill2023-03-061-2/+0
|
* Fix bug with nil pointergingerBill2023-03-061-3/+4
|
* Fix typo in `parse_components`gingerBill2023-03-061-2/+4
|
* Fix parsing C-like hex floatsgingerBill2023-03-061-11/+39
|
* Fix typo in `decimal_to_float_bits`gingerBill2023-01-231-2/+1
|
* `strconv.parse_f64` - accurately parse floatsgingerBill2022-11-211-98/+252
|
* Fix #2122Jeroen van Rijn2022-10-091-1/+8
|
* [strconv] Add parsing of Inf & NaNJeroen van Rijn2022-09-281-1/+33
|
* Add optional `n` parameter to `strconv.parse_*` procedures to state how many ↵gingerBill2022-08-261-18/+31
| | | | bytes could be read
* Minor fix to strconv.unquote_stringgingerBill2022-03-031-0/+1
|
* Make `strconv` more robustgingerBill2021-12-091-1/+3
|
* Add `i128` and `u128` parsers to `strconv`gingerBill2021-09-251-0/+223
|
* Correct `context.allocator` usagegingerBill2021-09-191-2/+3
|
* Strip even more semicolons if followed by a `}` or `)` on the same linegingerBill2021-08-311-4/+4
|
* Remove unneeded semicolons from the core librarygingerBill2021-08-311-266/+266
|
* Core library clean up: Make range expressions more consistent and replace ↵gingerBill2021-06-141-7/+7
| | | | uses of `..` with `..=`
* Minimize unneeded castsgingerBill2021-03-031-2/+2
|
* Replace usage of `inline proc` with `#force_inline proc` in the core librarygingerBill2021-02-231-4/+4
|
* Improve number parsing proceduresTetralux2020-12-061-14/+47
| | | | | | | | - No longer returns true for partial string parsing. All characters in the string must be part of the number. i.e: parse_int("2.345") no longer returns (2, true) - it now returns (2, false) - Return (0, false) on empty strings.