gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Jeroen van Rijn
e52cc73d50
Fix generic_float.odin
2023-12-21 22:37:26 +01:00
gingerBill
55f3e99f63
Fix %g in fmt, and make %v default to %g for floats
2023-12-21 17:05:24 +00:00
Jon Lipstate
7a8aa03e54
doc tests verified
2023-04-06 14:58:57 -07:00
Jon Lipstate
846c0f7cfc
add decimal subpackage ref
2023-04-06 09:56:27 -07:00
Jon Lipstate
1886193c6c
resolve doc-test issues
2023-04-06 09:44:57 -07:00
Jon Lipstate
ed7284add2
parens
2023-04-06 00:14:46 -07:00
Jon Lipstate
9ecbd70daa
parens
2023-04-06 00:02:57 -07:00
Jon Lipstate
b8989d9bf9
strconv docs
2023-04-05 23:52:11 -07:00
Jon Lipstate
0570c84a83
initial
2023-03-28 15:40:48 -07:00
Jon Lipstate
a3860e23c6
doc decimal
2023-03-28 13:09:21 -07:00
gingerBill
09a0dad115
Add contextless to internal parse_hex call
2023-03-16 12:43:10 +00:00
gingerBill
ef999f660b
Remove debug code
2023-03-06 19:46:50 +00:00
gingerBill
fad330acd1
Fix bug with nil pointer
2023-03-06 15:21:20 +00:00
gingerBill
8f1af2630d
Fix typo in parse_components
2023-03-06 13:40:06 +00:00
gingerBill
ff275df5ea
Fix parsing C-like hex floats
2023-03-06 12:39:52 +00:00
Hyp-X
a3bb7d3028
Fix decimal_to_float_bits for floats >= 1
2023-01-28 14:40:44 +01:00
gingerBill
97595c4b50
Use a LUT for shift_left
2023-01-23 14:00:02 +00:00
gingerBill
ea9fe397e5
Fix typo in decimal_to_float_bits
2023-01-23 12:46:03 +00:00
MarenFayre
68173f4bc7
Remove unused formatting flag
2023-01-08 20:24:08 +01:00
MarenFayre
c979c2fafa
Fix left padding format specifier and float formatting
2023-01-08 20:00:42 +01:00
gingerBill
b9ec2de4db
strconv.parse_f64 - accurately parse floats
2022-11-21 13:00:24 +00:00
Jeroen van Rijn
4c78ba2152
Fix #2122
2022-10-09 21:34:43 +02:00
Jeroen van Rijn
cd910b1512
[strconv] Add parsing of Inf & NaN
2022-09-28 16:41:26 +02:00
gingerBill
026900c7f0
Add optional n parameter to strconv.parse_* procedures to state how many bytes could be read
2022-08-26 16:31:42 +01:00
gingerBill
96e36c7c39
Minor fix to strconv.unquote_string
2022-03-03 13:54:23 +00:00
gingerBill
1d7c9cf872
Make strconv more robust
2021-12-09 15:35:00 +00:00
gingerBill
ebc09d5e4e
Add i128 and u128 parsers to strconv
2021-09-25 14:30:50 +01:00
gingerBill
ceebd7b23c
Correct context.allocator usage
2021-09-19 11:59:31 +01:00
gingerBill
720884e0f1
Strip even more semicolons if followed by a } or ) on the same line
2021-08-31 23:47:57 +01:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
86649e6b44
Core library clean up: Make range expressions more consistent and replace uses of .. with ..=
2021-06-14 11:15:25 +01:00
gingerBill
54e6c50769
Implement f16 functionality
2021-04-01 10:06:00 +01:00
gingerBill
b727b6438b
Minimize unneeded casts
2021-03-03 14:31:17 +00:00
gingerBill
aa93305015
Replace usage of inline proc with #force_inline proc in the core library
2021-02-23 16:14:47 +00:00
gingerBill
825c5a963f
Improve fmt's %#v behaviour for nested records
2021-02-04 14:52:23 +00:00
Tetralux
c06528d702
Improve number parsing procedures
...
- 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.
2020-12-06 11:39:03 +00:00
gingerBill
fc4fdd588e
Remove usage of do in core library
2020-09-23 17:17:14 +01:00
gingerBill
f043e92650
Add strconv.unquote_string and strconv.unquote_char
2020-05-09 13:58:45 +01:00
Tetralux
7d4f9545a7
Fix parsing of single-digit numbers
2020-05-06 23:21:24 +00:00
Tetralux
25f77e32ee
Fix doc comments
2020-04-29 23:35:26 +01:00
Tetralux
704ee9f851
Return (value: T, ok: bool) instead
2020-04-29 22:37:33 +01:00
Tetralux
190932935c
Refactor parse_* procedures: arbitrary bases, and return (value, rest_of_string)
2020-04-29 21:33:33 +01:00
gingerBill
e92fdb4a99
x if cond else y and x when cond else y expressions
2020-03-05 20:34:30 +00:00
gingerBill
7267004a55
Remove import "core:runtime" in integers.odin to make -vet happy
2019-12-22 10:28:48 +00:00
gingerBill
08392d885e
Add strconv/integers.odin
2019-12-21 14:01:29 +00:00
gingerBill
d462dbb5be
Deprecate using import
2019-12-21 12:11:16 +00:00
gingerBill
494b1e7eaa
Add -help which prints information about the compiler flags
2019-12-21 11:22:46 +00:00
Mikkel Hjortshoej
851118faf4
Fix #399 by removing unused parameter
2019-12-08 02:09:03 +01:00
gingerBill
f170648629
Fix issue with -thread-count flag with <= 0 count
2019-12-03 18:23:14 +00:00