212 Commits

Author SHA1 Message Date
penguindark
089778e55e
encoding.csv: add support for multithreading to encoding.csv.RandomAccessReader (#23677) 2025-02-09 16:50:49 +02:00
Laurent Cheylus
81fd0db8af
encoding.ut8: remove deprecated tests for utf8.is_uchar_punct/1 and utf8.get_uchar/2 (fix #23599) (#23600) 2025-01-27 19:37:27 +02:00
Felipe Pena
c2e436518b
checker: fix private symbol visibility checking (fix #23518) (#23543) 2025-01-27 11:42:27 +02:00
Laurent Cheylus
c225e0415a
encoding.iconv: add flag for OpenBSD to find iconv include and library (fix #23573) (#23575) 2025-01-25 19:41:05 +02:00
Felipe Pena
419645a045
encoding.utf8: fix is_punct func (fix #22646) (#22647) 2024-10-26 10:33:31 +03:00
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
Pepper Gray
35079f115d
encoding.utf8: replace uchar with rune, deprecate get_uchar, is_uchar_punct, is_uchar_global_punct (#22560) 2024-10-18 10:39:26 +03:00
Delyan Angelov
c5e8ad19df
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540) 2024-10-16 14:18:10 +03:00
kbkpbot
e2425842b2
encoding.iconv: fix iconv type cstrict, add support for LOCAL encoding (#22398) 2024-10-03 11:27:42 +03:00
kbkpbot
747794998b
encoding: add an encoding.iconv module with tests (#22332) 2024-10-02 19:37:48 +03:00
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