Commit Graph

88 Commits (a0648a3ec2dc18b290ee71b9a857fd5d049d09a8)

Author SHA1 Message Date
penguindark 9aabf222fe
encoding.utf8: fix a bug in up_low (#9610) 2021-04-05 21:28:21 +03:00
Atakan Yenel ab6e0ed0b3
add custom errors to encoding lib (#9513) 2021-03-30 15:27:26 +03:00
ka-weihe f885c7cea9
tests: fix three tests with address errors (#9441) 2021-03-24 00:01:29 +02:00
Alexander Medvednikov 2f1810634e checker: do not allow direct initialization of builtin types (s := string{}) 2021-03-13 18:20:46 +03:00
yuyi fbc02cbc54
csv: fix reader_test.v (#9204) 2021-03-09 03:53:02 +01:00
yuyi b64d781a20
csv: fix error of read() (#9193) 2021-03-08 16:57:02 +02:00
zakuro db9b523cc9
utf8: deprecate utf8.char_len (#9008) 2021-03-01 15:35:57 +02:00
spaceface d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
zakuro 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
Miccah d81b6e7805
encoding.base64: change base64 function signatures to use `[]byte` (#8970) 2021-02-26 08:22:12 +02:00
zakuro c113abe1a4
strings: make builder implement io.Writer (#8914) 2021-02-23 09:42:48 +02:00
zakuro ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
zakuro 1891ebf22d
scanner: print multibyte char for invalid char error (#8804) 2021-02-18 15:43:39 +02:00
Quix 64018e6f14
encoding.utf8: fix 'length' typo in two spots (#8746) 2021-02-15 17:52:00 +02:00
Nick Treleaven ea803113c3
checker: check `unsafe` V function calls (#8752) 2021-02-14 19:31:42 +01:00
Nick Treleaven 82482167ce
vlib: replace all `goto` statements with labelled break (#8531) 2021-02-03 15:19:42 +01:00
Larpon 981b42125f
encoding: document all of the `encoding.base64` module (#8276) 2021-01-22 22:29:05 +02:00
Lukas Neubert ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
yuyi a2efb5319d
all: change `[1,2,3]!!` to `[1,2,3]!` (#8101) 2021-01-14 03:51:13 +01:00
Alexander Medvednikov 5a70eba8e1 all: byte.str() => byte.ascii_str() 2021-01-05 19:14:37 +01:00
Lukas Neubert 8adb1acf31
check-md: verify code example formatting (#7143) 2020-12-05 22:54:41 +01:00
Lukas Neubert df4165c7ee
docs_ci: check all md files except thirdparty (#6855) 2020-11-18 18:28:28 +01:00
Nick Treleaven 01a5b263e5
encoding/csv: improve Reader docs (#6828) 2020-11-14 19:49:36 +02:00
Delyan Angelov 0c192cfd64 tests: fix warnings when doing `./v -W -progress -check-syntax test-fixed` 2020-10-26 14:41:57 +02:00
Delyan Angelov aad122334b vlib: fix warnings due to the vfmt change 2020-10-17 16:26:56 +03:00
Daniel Däschle df82ef6bc7
base64: encode_url (#6622) 2020-10-15 16:04:06 +02:00
Delyan Angelov 3c48a6e4ce tests: rename _test.v files with dup names (temp workaround for highly parallel testing) 2020-10-14 18:25:26 +03:00
Maciej Obarski 7bd2804ce9
all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
Delyan Angelov 949ed90b51 utf8: fix a panic in utf8.len("pippo"), mark with `unsafe{}` direct pointer manipulations 2020-07-22 21:15:27 +03:00
Nick Treleaven ee349691f9
v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
Carlos Esquerdo Bernat b0d76c59f7
websocket utf8: move utf8 functions from websocket to encoding.utf8, add utf8_test.v (4/4) (#5924) 2020-07-22 18:36:24 +03:00
Carlos Esquerdo Bernat f09e14a2b9
csv: cleanup reader_test.v 2020-07-22 17:26:26 +03:00
Delyan Angelov 6dd1494008 encoding.base64: use fixed static arrays for the ending_table and index consts 2020-07-21 17:56:19 +03:00
penguindark e85c1fb762
utf8: bug fix in get_uchar (#5775) 2020-07-10 14:44:40 +02:00
yuyi 34a24eaa4e
checker: validate loop var names (#5677) 2020-07-05 15:27:37 +02:00
Ned Palacios 36edd6295f
vlib: transfer intro to readme; normalize comments 2020-06-08 00:04:23 +03:00
yuyi 5ae8853648
all: change `f mut Foo` to `mut f Foo` 2020-06-04 10:35:40 +02:00
Delyan Angelov ae8f7cf569 tests: fix some tests, that failed due to the stricter immutable checks 2020-06-01 18:24:38 +03:00
Uwe Krüger fd4d28b7b6
tests: update for stricter type checks 2020-05-24 21:07:32 +02:00
yuyi 7f4cf08516
parser: check `(mut f Foo)` syntax 2020-05-17 13:51:18 +02:00
Enzo Baldisserri f44a40eee0
checker: check incorrect names 2020-05-16 16:12:23 +02:00
yuyi 0606d26ba7
csv: fix field multiple lines error 2020-05-10 14:19:26 +02:00
yuyi 53989daf9a
csv: fix empty line error 2020-05-09 17:35:03 +02:00
yuyi b2a076e8b8
csv: fix last-field-empty error 2020-04-29 16:50:02 +02:00
yuyi 9f4d498ff1
all: update`import ()` and `[]array` 2020-04-26 13:49:31 +02:00
Alexander Medvednikov 8000eb3656 parser: revert silent _ prefix rule 2020-04-26 05:34:34 +02:00
yuyi c26e83f58a
array: fix fixed array errors 2020-04-25 18:26:38 +02:00
Delyan Angelov 945f964c0c parser: stay silent about unused variables starting with _ 2020-04-25 15:38:15 +03:00
sambeckingham 4ea4d1c8c4
csv: handle missing line ending 2020-04-21 00:02:55 +02:00
sambeckingham b1459ade69
csv: fix missing last column 2020-04-20 21:49:05 +02:00