1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

145 Commits

Author SHA1 Message Date
78cb6e2b41 all: handle fixed []u8 2022-04-15 18:35:56 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
843ce43077 strconv: cleanup atof.c.v - use a ParserState enum, clarify comments 2022-04-11 12:01:47 +03:00
e3dca82f9c strconv: minor cleanup in f64_to_str_lnd1() (#13804) 2022-03-22 20:15:59 +02:00
56f5ed4789 strconv: fix error for string interpolation of float format (#13800) 2022-03-22 12:00:18 +02:00
a3e9409196 strconv: fix a double free bug in v_sprintf/remove_tail_zeros_old, reduce leaks 2022-03-11 19:32:08 +02:00
795fe5844c strconv: fix strconv.v_printf() (#13716) 2022-03-11 17:00:57 +02:00
9c24d09dc3 strconv: bug fix for "${239.5:0.0f}" (#13483) 2022-02-16 11:33:29 +03:00
7f29418c63 strconv: change atof64 to return an error, if the parsed value is not a valid number (#13424) 2022-02-10 13:27:32 +02:00
ceb05b163a strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313) 2022-01-28 20:34:44 +02:00
ec91de3504 builtin: use dlmalloc for -freestanding (#13054) 2022-01-06 14:10:37 +02:00
a60b381d5e docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
0f01236e52 strconv: fix assert .f64() == 0 2022-01-04 17:51:48 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
33163238e7 strconv: add a small performance optimisation 2021-12-03 20:14:14 +02:00
8494e387ec strconv: fix format.md example snippets (#12642) 2021-12-01 17:23:35 +02:00
a8a1e9381f strconv,js: f64_to_str works on JS backend now; Fix BigInt usage in infix expressions (#12464) 2021-11-15 14:13:44 +02:00
e3d98b1b28 js,strconv: port some functions to JS backend, improve rune.str() (#12460) 2021-11-14 21:06:58 +02:00
6e4bda3741 strconv: fix string builder leaks in format_dec_old, format_es_old, format_fl_old, v_sprintf 2021-10-17 19:46:34 +03:00
f3757a7cd1 strconv: float memory leak fix (#11980) 2021-09-26 07:33:35 +03:00
ae41d1d3c6 builtin, cgen: more -nofloat fixes 2021-09-13 19:06:19 +03:00
07bd61582c js: fix strconv build, BigInt infix fix (#11464) 2021-09-11 00:11:36 +03:00
e5360e164a fmt: remove unnecessary parentheses after return (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
08c517c966 strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364) 2021-09-03 12:16:07 +03:00
4d078edb72 scanner: no longer allow 1. float literals (#11301) 2021-08-25 14:39:37 +03:00
490dec222f fmt: keep char literal, ' (#11060) 2021-08-06 06:21:28 +03:00
66bc8bc0cb vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
54dd510ace strconv: fix compilation with -cc gcc -cstrict -prod 2021-07-15 01:05:00 +03:00
1486258591 strconv: fix atoi returning 0 on large strings (#10635) 2021-07-02 10:39:57 +03:00
a3f876d683 strconv: use [if debug_strconv?] for fn assert1 2021-06-22 10:33:48 +03:00
aea23e8a40 strconv: fix fxx_to_str_l_parse/fxx_to_str_l_parse_no_dot returning s without cloning 2021-06-19 07:48:46 +03:00
de384f1cc8 strconv: vfmt everything 2021-06-18 17:59:56 +03:00
5dff8dc097 v.fmt: keep [ ... \n 123, // end of line comment \n ... ] as is 2021-06-18 16:43:03 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
0ff2d9ef78 strconv: fix memory corruption (#10250) 2021-05-29 16:24:09 +03:00
d8d05e0106 all: new string interpolation in pure V (#10181) 2021-05-24 05:20:45 +03:00
d60a55d30b strconv: float functions cleaning and speed optimization (#10076) 2021-05-11 08:09:17 +03:00
e9d7ff751f strconv: new decimal digits counts function (#10029) 2021-05-08 00:24:50 +03:00
99a2fd76c8 strconv: separate v_sprintf (#10007) 2021-05-05 04:12:18 +03:00
a2014f86b7 strconv: new faster atof function (#9903) 2021-04-28 07:42:22 +03:00
4eb8072882 parser: remove ++/-- exception for some modules (#9895) 2021-04-27 01:41:42 +03:00
bfe0a7887f builtin,strconv: fix and optimize utf8 and formatting functions (#9874) 2021-04-25 17:57:21 +03:00
73352583e7 ci: fix all -cstrict warnings with gcc and clang (#9792) 2021-04-19 15:38:48 +03:00
3e297bced4 ci: remove some tests from skip_with_werror in v test-self 2021-04-14 12:47:24 +03:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
4a0367a63c vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00
978359a6fc tests: fix some warnings in preparation for -W test-self 2021-01-31 11:05:17 +02:00