202 Commits

Author SHA1 Message Date
Felipe Pena
24238c107d
encoding.csv: fix reading when there is no line ending at the end of the file (fix #22337) (#22342) 2024-09-28 17:49:40 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Ivan Vatlin
6aeef5e4db
encoding.binary: add u16/u32/u64 -> []u8 conversion functions (#22193) 2024-09-10 20:22:34 +03:00
yuyi
dd2210abf6
ast: fix const field str() (#22192) 2024-09-10 17:02:51 +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
c69dfefedb
fmt: cleanup fields comments alignment and add ignore_newline config (#22027) 2024-08-12 10:56:32 +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
3247b98bb5
ast: fix const field str() (#21998) 2024-08-06 17:42:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Roman
52fe7c09b8
encoding.base58: fix notice for slice creation (#21935) 2024-07-26 10:28:17 +03:00
Alexander Medvednikov
39f419139e encoding.binary: add an f32 test; checker: remove "(s)" from the assignment mismatch error 2024-07-01 15:07:07 +03:00
Alexander Medvednikov
940fc41c19 encoding.binary: little_endian_f32_at 2024-07-01 14:08:37 +03:00
Mike Ward
e1d23429c7
encoding.base32: fix warning of implicit clone of array, by using an explicit unsafe block (#21728) 2024-06-25 08:17:29 +03:00
Delyan Angelov
0e2b6041b8
testing: fix v -stats test folder/ not failing for a _test.v that fails (#21483) 2024-05-10 23:30:24 +03:00
Alexander Medvednikov
6cc096a4b3 checker: ambiguous expression notice for & << >>, similar to && || 2024-05-07 20:38:32 +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
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
a7d68cbc2d
xml: update entity parse test (#21190) 2024-04-05 17:31:32 +03:00
RoboSchmied
2db9c82d26
vlib: fix typos (endianess -> endianness) (#21099) 2024-03-26 10:32:10 +02:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Delyan Angelov
c60a869fb4
vlib: add encoding.txtar (port of Go's txtar module) (#20874) 2024-02-20 02:41:20 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Delyan Angelov
729a1cbc9f
encoding.binary: add _fixed variants for the conversion fns, that accept fixed arrays (#20766) 2024-02-09 22:07:59 +02:00
penguindark
ef3b0ec775
encoding.csv: fix bug in RandomAccessReader, spotted on windows with mingw32 (#20571) 2024-01-17 22:10:28 +02:00
koplenov
43b8cc8ab7
encoding.csv: add a new utility fn new_reader_from_file/2 (#20530) 2024-01-14 19:42:01 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Kim Shrier
c7ce72f314
encoding.binary: fix u32 little endian comments (#20256) 2023-12-23 15:26:17 +02:00
penguindark
cfcbcb416a
encoding.csv: add a sequential reader too (suitable for very large .csv files, it does not read everything at once) (#20140) 2023-12-11 00:57:08 +02:00
penguindark
2768de1fc7
encoding.csv: add a new RandomAccessReader (#20119) 2023-12-08 22:17:27 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Kim Shrier
cc220e60a5
vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
Subhomoy Haldar
1482a2f28d
encoding.xml: fix parsing for self closing empty tags (#19907) 2023-11-17 10:51:46 +02:00
Subhomoy Haldar
c9429f3331
encoding.xml: make functions public, add documentation, tests, fix attribute parsing for self-closing tags (#19901) 2023-11-16 20:13:36 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Subhomoy Haldar
5f08d45c7c
encoding.xml: update parser logic to skip BOM before prolog (#19858) 2023-11-13 14:24:39 +02:00
Subhomoy Haldar
00f2e4a8c5
encoding.xml: make tag name and attribute parsing more robust and cleaner (#19828) 2023-11-10 11:31:36 +02:00
Subhomoy Haldar
cd2e36a44d
encoding.xml: fix parsing of single letter tag names (#19815) 2023-11-09 13:02:05 +02:00
Subhomoy Haldar
35558df96c
vlib: add an encoding.xml module with parser, validation, entity encoding, unit tests (#19708) 2023-11-06 15:14:30 +02:00
JalonSolov
9ec8807dbe
compress,coroutines,encoding: handle C calls in .v files (part of enabling -W impure-v as default) (#19769) 2023-11-05 17:38:03 +02:00
Alexander Medvednikov
e265e99a64 all: int => i64 (part 5) 2023-10-08 01:32:37 +03:00
Delyan Angelov
6b79b2aaa5
encoding.leb128: fix v -cstrict -cc gcc-11 examples/wasm_codegen/bf_compiler.v 2023-10-03 17:05:55 +03:00
Turiiya
3329919144
encoding.html: improve hex unescaping, add test (#19279) 2023-09-06 09:37:51 +03:00
Turiiya
273341685a
encoding.html: implement unescape() (#19267) 2023-09-05 08:29:24 +03:00
yuyi
18e60e77de
fmt: remove inline comments (#19263) 2023-09-03 23:51:56 +03:00
Turiiya
61b219953a
encoding.html: optimize escape performance (#19264) 2023-09-03 19:01:19 +03:00
yuyi
815439a381
checker: fix assigning an array slice (fix #19120) (#19137) 2023-08-15 20:37:51 +03:00
shove
11a8a46ade
tests: cleanup test cases (#19104) 2023-08-13 13:36:08 +03:00
Surman The Dead
b772731b98
leb128: make decoding return the number of decoded bytes, in addition to the decoded value (#17912) 2023-04-09 10:32:49 +03:00
walking devel
9957356a84
encoding.base32: change ? to ! (#17892) 2023-04-06 03:09:05 +02:00