Jon Lipstate
7a8aa03e54
doc tests verified
2023-04-06 14:58:57 -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
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
gingerBill
ea9fe397e5
Fix typo in decimal_to_float_bits
2023-01-23 12:46:03 +00: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
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
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
Mikkel Hjortshoej
851118faf4
Fix #399 by removing unused parameter
2019-12-08 02:09:03 +01:00
gingerBill
9db81498d8
Make the string type elements "immutable", akin to char const * in C
...
Allows for extra security and optimization benefits
2019-12-01 14:10:59 +00:00
gingerBill
4e8a801b35
strings.split; strings.index; eprint* over print*_err;
2019-10-06 18:13:15 +01:00
gingerBill
f25818e923
Make procedure parameters just named values rather than copied variables
2019-07-15 21:18:37 +01:00
gingerBill
a019059975
Fix -vet for demo.odin
2019-03-30 10:52:53 +00:00
gingerBill
6b18b90222
Fix possible buffer overflows in package strconv
2019-03-25 21:26:23 +00:00
gingerBill
b978959fae
Improve package strconv
2019-03-24 20:58:01 +00:00
gingerBill
332e598357
%e and %g support in fmt.printf
2019-03-15 23:13:06 +00:00
gingerBill
c67ea97845
Add implicit selector expressions for in/notin
2019-03-06 19:08:37 +00:00
gingerBill
d035d48c8e
Fix issue #280
2018-11-17 09:45:52 +00:00
gingerBill
71f94bff76
Minor sanity features for bit_set
2018-08-14 19:22:48 +01:00
gingerBill
acc010cba5
Add bit_set type
2018-08-14 17:07:56 +01:00
gingerBill
0718f14774
Reduce number of range and slice operators #239
...
Replace .. and ... with : and ..
2018-08-01 21:34:59 +01:00
gingerBill
5b6770f3d2
Parse directories to be packages
2018-05-21 20:47:52 +01:00