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

144 Commits

Author SHA1 Message Date
Alexander Medvednikov
c6158e4519 all: remove unnecessary IError() casts 2022-10-28 19:08:30 +03:00
Alexander Medvednikov
098db89b85 encoding.csv: remove unnecessary IError() cast 2022-10-27 11:30:08 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
ChAoS_UnItY
fe597b7172
encoding.utf8: add is_number (#15931) 2022-10-01 11:01:51 +03:00
Alexander Medvednikov
3d2588f101 cgen: parallel cc for much faster compilation using all CPU cores 2022-10-01 10:04:06 +03:00
Joe Conigliaro
51a92d170f
encoding.base32: vfmt code 2022-09-27 16:29:44 +10:00
Joe Conigliaro
5415c4f75e
encoding.base32: initial implementation 2022-09-27 16:25:50 +10:00
ChAoS_UnItY
ea8b30fd91
encoding.utf8: add is_space (#15847) 2022-09-23 10:34:45 +03:00
yuyi
bfdd6f1cf8
csv: minor cleanup in writer.v (#15633) 2022-09-01 21:23:18 +03:00
ChAoS_UnItY
258ff73efd
encoding.csv: re-encapsulate fields in Writer/Reader (fix #15558) (#15570) 2022-08-28 11:13:43 +03:00
Delyan Angelov
5a834a2ef9
encoding.base58: remove one unnecessary map access per the most common BTC usages; implement encode_bytes, decode_bytes, encode_walpha_bytes, decode_walpha_bytes functions 2022-08-08 15:37:00 +03:00
Nacho Verdón
42efc383d2
encoding.binary: fix function names in comments (#15317) 2022-08-02 00:30:06 +03:00
Nacho Verdón
9561fb406e
encoding.binary: add functions to read/write with an offset and at the end of the array, split files by endianness (#15301) 2022-08-01 08:20:14 +03:00
Ken
3075e35237
encoding.csv: handle bools (#15103) 2022-07-17 10:54:36 +03:00
boris-741
b4dedcae43
encoding.csv: generic serialization (#15097) 2022-07-16 22:21:05 +03:00
Subhomoy Haldar
8ee614d3f8
encoding.binary: add unit tests and module documentation (#15000) 2022-07-09 15:52:19 +03:00
Ulises Jeremias Cornejo Fandos
e505fcdac0
encoding.csv: update reader.v (#14807) 2022-06-21 08:31:47 +03:00
Delyan Angelov
fc64f09f0b
crypto.md5: improve performance of md5.blockblock_generic 2022-05-30 21:56:39 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
David 'Epper' Marshall
a2338dbb7c
docs: document more builtin functions/methods (#14229) 2022-04-30 12:31:23 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov
c3ad4e2069 encoding.base64: use u8 2022-04-15 15:10:34 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
StunxFS
38853568b4
encoding.csv: allow passing a custom delimiter to the new_reader function (#13910) 2022-04-03 19:13:43 +03:00
Nick Treleaven
7231a3f135
vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702) 2022-03-09 20:26:00 +02:00
Ikko Ashimine
aa633dab41
utf8: fix typo in utf8_util.v (#13624) 2022-03-01 19:06:48 +02:00
Tim Basel
37c151efe5
docs, builtin, encoding.csv: update error implementations (#13440) 2022-02-12 11:54:10 +02:00
Delyan Angelov
d02c0636d8
encoding.hex: fix shift warning 2022-02-04 15:16:08 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Delyan Angelov
6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
Delyan Angelov
87029e5707
encoding.base64: vfmt base64.c.v 2021-11-28 20:37:08 +02:00
Delyan Angelov
31fe02de8c
builtin,crypto: fix problems detected by -fsanitize=address,undefined and -fsanitize=memory 2021-11-28 20:35:18 +02:00
yuyi
2984751a57
checker: fix the argument mismatch of fn call (#12479) 2021-11-16 17:19:02 +02:00
playX
c1aa782a6c
js,checker: fix some modules build for v -b js self, fix or block check in ast.CallExpr (#12231) 2021-10-19 12:11:54 +03:00
ChAoS_UnItY
077c55d0c8
encoding.utf8: add pub fn is_letter(r rune) bool (#11547) 2021-09-20 21:16:50 +03:00
ChAoS_UnItY
2ced845e30
arrays: add chunk and window functions (#11476) 2021-09-13 16:13:32 +03:00
Adam Oates
83e2a84c21
encoding: add base58 support (#11288) 2021-08-24 06:22:46 +03:00
Miccah
60f21f065f
encoding.hex: remove strconv dependency (#11196) 2021-08-16 04:59:21 +03:00
Miccah
ea4f6fd48f
encoding: add a hex sub-module (#11193) 2021-08-15 21:42:51 +03:00
Delyan Angelov
34d39ccb64
builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091) 2021-08-13 18:37:34 +03:00
Delyan Angelov
7d3476cbca
ci: fix tests-sanitize-address-clang job (regression after 9995f6c) 2021-08-07 14:37:51 +03:00
Sebastian Schicho
9995f6cca1
encoding.base64: speed up encoding and decoding (#11055)
* add new function headers

* new encoding function

* rename to decode_micro and add helper functions

* implement new decoding function

* add test for buffer to buffer decoding

* - add notice to GO code
- v fmt base64.v

* implement new decoding function

* fix base64_memory_test.v by commenting a few lines

* vfmt base64.v

* add some more asserts to base64_memory_test.v

* remove unused decoding function

* add bounds check, when detecting the padding

* use union for storing the decoded data

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-08-07 00:09:55 +03:00
shadow
66bc8bc0cb
vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
Daniel Däschle
0f9537ece5
all: remove ustring (#10630) 2021-07-03 20:14:09 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
yuyi
9a9d539e6f
csv: fix csv fields with double quotes (#10399) 2021-06-10 19:24:20 +03:00
Uwe Krüger
bd467f94ab
encoding: append 0 to strings for compatibility (#10249) 2021-05-29 16:31:52 +03:00
Enzo
a639f94050
utf8: format utf8_util.v (#10135) 2021-05-19 13:03:43 +03:00