204 Commits

Author SHA1 Message Date
Delyan Angelov
5c56909547
strconv: fix bounds check bug, discovered by the equivalent of ./v -g -force-bounds-checking test vlib/toml/ (thanks to tankf33der) 2025-07-23 15:38:04 +03:00
ChAoS_UnItY (Kyle Lin)
9f3f1291e8
checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
kilavvy
8aef3c72b4
all: fix typos in documentation files (#23822) 2025-02-28 02:42:55 +03:00
kbkpbot
675fe14cbb
strconv: fix strconv.atof64() inconsistency with the other .ato functions; make it return an error by default, when it detects an extra non number character after a number (#23815) 2025-02-27 08:31:59 +02:00
Bruno-Vdr
8b3d02de75
strconv: add atou, atou8/16/32/64 utility functions with tests (#23766) 2025-02-20 09:53:09 +02:00
Bruno-Vdr
a694918f4c
strconv : add atoi8/16/32/64 helper functions with their tests (#23757) 2025-02-19 02:32:19 +02:00
Bruno-Vdr
9bed50d76d
strconv: fix atoi() and its tests (#23737) 2025-02-17 12:07:26 +02:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
Felipe Pena
3ed799ef7b
checker: fix comptime evaluation on infix expr (fix #23341) (#23344) 2025-01-04 01:13:33 +02:00
Delyan Angelov
a9ae3765e7
strconv: remove commented code 2024-11-18 23:07:32 +02:00
Delyan Angelov
5bba92a65a
vlib: remove modules/functions/fields, deprecated in 2023 (#22750) 2024-11-17 20:09:21 +02:00
kbkpbot
309c8d3778
strconv: fix e/g format (fix #22424) (#22430) 2024-10-07 08:43:04 +03:00
kbkpbot
491d6f4955
strconv: fix remove_tail_zeros bug (fix #22421) (#22422) 2024-10-06 16:48:08 +03:00
yuyi
63957f248d
strconv: cleanup format_fl()/format_es() (#22257) 2024-09-19 04:49:39 +03:00
yuyi
fca336c895
strconv: fix format_fl()/format_es() (fix #13210) (#22244) 2024-09-18 16:54:09 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Delyan Angelov
d9a3a3aa0a
strconv,math.bits: eliminate bounds checking in commonly used routines 2024-07-22 13:43:50 +03:00
Turiiya
8aa9314a99
vlib: refactor empty string checks to use s == '' or s != '', instead of s.len == 0 (#21300) 2024-04-18 02:44:31 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Pierre Curto
900ec70711
checker: add cast overflow checks (#20641) 2024-01-24 18:36:39 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Kim Shrier
bbb712a42d
strconv: fix byte type to u8 type in the documented examples in format.md (#19952) 2023-11-21 14:19:24 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
JalonSolov
c494b63d75
os,picohttpparser,sokol,strconv: prepare for making -W impure-v the default (#19846) 2023-11-12 09:52:14 +02:00
Turiiya
690ec7d3a5
all: fix typos (#19693) 2023-10-30 03:28:34 +02:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
shove
11a8a46ade
tests: cleanup test cases (#19104) 2023-08-13 13:36:08 +03:00
penguindark
ba1c5def77
strconv.atoi: fix string.int() returning numbers for non number characters (fix #18875) (#18925) 2023-07-22 06:43:10 +03:00
Artem Yurchenko
1ed0cd9a74
builtin: reduce the number of array allocations for consts in all V programs (#18889) 2023-07-19 13:06:41 +03:00
Delyan Angelov
acd581add5
strconv: mark strconv.v_sprintf and strconv.v_printf with [unsafe] (part 2, breaking change, needed an update to vsl) (#18836) 2023-07-10 21:20:47 +03:00
Delyan Angelov
6b00685629
strconv: remove deprecations for strconv.v_sprintf and strconv.v_printf (part 1) 2023-07-10 17:42:29 +03:00
yuyi
126fbe8e33
scanner: fix indent error for line comment generated by vdoc (#18422) 2023-06-13 08:50:02 +03:00
penguindark
9658d20f03
strconv.atoi: optimization (#17913) 2023-04-09 05:54:38 +02:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Alexander Medvednikov
f1e9a8ff37 tests: remove unnecessary v_printf test 2023-03-19 15:30:52 +03:00
Alexander Medvednikov
47e10a9fcd strconv: make v_printf private 2023-03-19 15:03:49 +03:00
Alexander Medvednikov
7939ca2997 strconv: deprecate v_sprintf 2023-03-19 11:30:56 +03:00
yuyi
9275161d0f
strconv: fix v_sprintf with '%%' (#17708) 2023-03-19 09:52:45 +02:00
Makhnev Petr
c8c70de87d
docs: unify format of notes (#17294) 2023-02-13 10:29:02 +02:00
JalonSolov
90941b3b1f
all: change optional to option (#16914) 2023-01-09 09:36:45 +03:00
Delyan Angelov
c286775d9f
strconv: add test_atof_converter to the tests, as suggested by the code review 2022-11-21 07:41:41 +02:00
Delyan Angelov
6cd1723deb
strconv: fix float_prec := 1.9999999999999999 + 0.0000000000000000005 being 0.5 (fix #16448) (#16495) 2022-11-21 03:57:51 +03:00