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

108 Commits

Author SHA1 Message Date
077c55d0c8 encoding.utf8: add pub fn is_letter(r rune) bool (#11547) 2021-09-20 21:16:50 +03:00
2ced845e30 arrays: add chunk and window functions (#11476) 2021-09-13 16:13:32 +03:00
83e2a84c21 encoding: add base58 support (#11288) 2021-08-24 06:22:46 +03:00
60f21f065f encoding.hex: remove strconv dependency (#11196) 2021-08-16 04:59:21 +03:00
ea4f6fd48f encoding: add a hex sub-module (#11193) 2021-08-15 21:42:51 +03:00
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
7d3476cbca ci: fix tests-sanitize-address-clang job (regression after 9995f6c) 2021-08-07 14:37:51 +03:00
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
66bc8bc0cb vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
0f9537ece5 all: remove ustring (#10630) 2021-07-03 20:14:09 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
9a9d539e6f csv: fix csv fields with double quotes (#10399) 2021-06-10 19:24:20 +03:00
bd467f94ab encoding: append 0 to strings for compatibility (#10249) 2021-05-29 16:31:52 +03:00
a639f94050 utf8: format utf8_util.v (#10135) 2021-05-19 13:03:43 +03:00
4974fd09e5 utf8: reverse() to handle unicode strings (#10133) 2021-05-19 12:24:08 +03:00
e0a3c5384f csv: fix parse error of last empty field on unquoted line (#10083) 2021-05-13 17:51:07 +03:00
8a380f4699 tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
d7a64bbc8a encoding.utf8: fix len and ulen and optimize raw_index (#9682) 2021-04-12 04:58:03 +02:00
cca06fce90 encoding.utf8: remove const unicode_con_table_up_to_low table (#9672) 2021-04-11 10:28:19 +03:00
acb58d4923 encoding.utf8: add support for indexing a utf8 str (#9670) 2021-04-11 09:04:18 +03:00
9aabf222fe encoding.utf8: fix a bug in up_low (#9610) 2021-04-05 21:28:21 +03:00
ab6e0ed0b3 add custom errors to encoding lib (#9513) 2021-03-30 15:27:26 +03:00
f885c7cea9 tests: fix three tests with address errors (#9441) 2021-03-24 00:01:29 +02:00
2f1810634e checker: do not allow direct initialization of builtin types (s := string{}) 2021-03-13 18:20:46 +03:00
fbc02cbc54 csv: fix reader_test.v (#9204) 2021-03-09 03:53:02 +01:00
b64d781a20 csv: fix error of read() (#9193) 2021-03-08 16:57:02 +02:00
db9b523cc9 utf8: deprecate utf8.char_len (#9008) 2021-03-01 15:35:57 +02:00
d63b7bc35a all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
995bd66970 encoding.utf8.east_asian: add support for East_Asian_Width (#8978)
See https://www.unicode.org/reports/tr11/
2021-02-26 09:52:07 +02:00
d81b6e7805 encoding.base64: change base64 function signatures to use []byte (#8970) 2021-02-26 08:22:12 +02:00
c113abe1a4 strings: make builder implement io.Writer (#8914) 2021-02-23 09:42:48 +02:00
ac4791045f time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
1891ebf22d scanner: print multibyte char for invalid char error (#8804) 2021-02-18 15:43:39 +02:00
64018e6f14 encoding.utf8: fix 'length' typo in two spots (#8746) 2021-02-15 17:52:00 +02:00
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
82482167ce vlib: replace all goto statements with labelled break (#8531) 2021-02-03 15:19:42 +01:00
981b42125f encoding: document all of the encoding.base64 module (#8276) 2021-01-22 22:29:05 +02:00
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
a2efb5319d all: change [1,2,3]!! to [1,2,3]! (#8101) 2021-01-14 03:51:13 +01:00
5a70eba8e1 all: byte.str() => byte.ascii_str() 2021-01-05 19:14:37 +01:00
8adb1acf31 check-md: verify code example formatting (#7143) 2020-12-05 22:54:41 +01:00
df4165c7ee docs_ci: check all md files except thirdparty (#6855) 2020-11-18 18:28:28 +01:00
01a5b263e5 encoding/csv: improve Reader docs (#6828) 2020-11-14 19:49:36 +02:00
0c192cfd64 tests: fix warnings when doing ./v -W -progress -check-syntax test-fixed 2020-10-26 14:41:57 +02:00
aad122334b vlib: fix warnings due to the vfmt change 2020-10-17 16:26:56 +03:00
df82ef6bc7 base64: encode_url (#6622) 2020-10-15 16:04:06 +02:00
3c48a6e4ce tests: rename _test.v files with dup names (temp workaround for highly parallel testing) 2020-10-14 18:25:26 +03:00
7bd2804ce9 all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
949ed90b51 utf8: fix a panic in utf8.len("pippo"), mark with unsafe{} direct pointer manipulations 2020-07-22 21:15:27 +03:00
ee349691f9 v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00