Alexander Medvednikov
|
ab3c1f2a08
|
prealloc: skip frees for now
|
2020-07-11 13:22:18 +02:00 |
Uwe Krüger
|
646df49c74
|
builtin: fix string.hash method for `gcc -O2` (#5794)
|
2020-07-11 01:18:52 +03:00 |
Delyan Angelov
|
7248d8422e
|
vfmt: keep `vproto.Name`, when current module is `proto`
|
2020-07-11 00:59:19 +03:00 |
Delyan Angelov
|
78e1127d99
|
cgen: treat the main module like any other v module
|
2020-07-01 00:53:53 +02:00 |
Delyan Angelov
|
2fd960f12c
|
builtin: implement a double free detection for v strings
|
2020-06-30 18:32:04 +03:00 |
nyaascii
|
f10d2bb75f
|
string: fix trim_prefix and trim_suffix methods (#5572)
|
2020-06-30 15:44:53 +02:00 |
Emily Hudson
|
c84bafbdae
|
vlib,cgen: cleanup array inits using `.repeat() instead of new init syntax
|
2020-06-27 21:46:04 +02:00 |
yuyi
|
7efb3ecb34
|
checker: check deprecated functions
|
2020-06-23 16:25:24 +02:00 |
Swastik Baranwal
|
0052ab71e9
|
string: add map method
|
2020-06-17 12:26:55 +02:00 |
yuyi
|
2ef0f15b34
|
string: fix contains behaviour (closes #5371)
|
2020-06-14 19:24:15 +10:00 |
Alexander Medvednikov
|
af27963938
|
string: do not free empty strings
|
2020-06-12 17:20:51 +00:00 |
Alexander Medvednikov
|
5dcd2303c9
|
builtin: fix string.fields()
|
2020-06-09 10:15:20 +02:00 |
Alexander Medvednikov
|
dabfc4ebd0
|
checker: do not display errors for incorrectly initialized vars
|
2020-06-08 13:10:47 +02:00 |
Uwe Krüger
|
076089d3c5
|
checker: apply stricter type checks to function args and return types
|
2020-06-01 21:15:59 +02:00 |
Delyan Angelov
|
97b9ce04a4
|
crypto.rand: cleanup test, make it less likely to fail in CI
|
2020-06-01 07:49:52 +03:00 |
Delyan Angelov
|
481f103dc9
|
checker: make an error using non `pub` fns from other modules
|
2020-05-27 12:00:19 +03:00 |
Uwe Krüger
|
013fdb8a4b
|
checker: restrict numeric promotions to cases where no data is lost
|
2020-05-27 05:42:48 +02:00 |
Alexander Medvednikov
|
f41e2c0a4b
|
string: make replace() clone for now; parser: comptime method
|
2020-05-25 08:17:36 +02:00 |
Delyan Angelov
|
ac396ea02f
|
http: cleanup backend_nix.c.v, fixes vpm too
|
2020-05-20 12:04:28 +03:00 |
Uwe Krüger
|
2635be511f
|
all: re-apply C++ support
|
2020-05-18 21:38:06 +02:00 |
Alexander Medvednikov
|
07a78b2843
|
Revert "all: C++ compiler support"
This reverts commit 9a237c3e82 .
|
2020-05-18 17:05:48 +02:00 |
Uwe Krüger
|
9a237c3e82
|
all: C++ compiler support
|
2020-05-18 15:51:36 +02:00 |
Alexander Medvednikov
|
4f307c1a78
|
checker: requre & in struct init; http: chunked encoding
|
2020-05-18 05:11:00 +02:00 |
yuyi
|
7f4cf08516
|
parser: check `(mut f Foo)` syntax
|
2020-05-17 13:51:18 +02:00 |
Swastik Baranwal
|
04744a5390
|
string: add trim_prefix and trim_suffix
|
2020-05-15 19:37:14 +02:00 |
Delyan Angelov
|
673acdbd00
|
tcc: fix selfcompilation with tcc. Temporarily disable crashing interface test
|
2020-05-07 20:59:45 +03:00 |
Alexander Medvednikov
|
8cfb2ad6c9
|
string: is_lit
|
2020-05-07 18:05:57 +02:00 |
Delyan Angelov
|
f638caef39
|
compiler: v -autofree can now compile itself
|
2020-05-06 19:03:51 +03:00 |
yuyi
|
1fabb7d5a6
|
checker: fix string.str() error
|
2020-04-29 13:51:42 +02:00 |
Enzo Baldisserri
|
682838a0cf
|
checker: check array and fields mutability
|
2020-04-27 22:53:26 +02:00 |
joe-conigliaro
|
9f76a7b250
|
parser: simplify unused vars & add loop/if vars etc
|
2020-04-27 23:16:31 +10:00 |
Alexander Medvednikov
|
ef26f27753
|
builtin: replace `isnil` calls for perfomance
|
2020-04-27 07:13:36 +02:00 |
Larpon
|
7b39ab6d06
|
string: fix replace_each edge case error message
|
2020-04-26 12:40:39 +02:00 |
Alexander Medvednikov
|
3ab8dc0092
|
parser: array init: `[]string` => `[]string{}`
|
2020-04-26 09:17:17 +02:00 |
ka-weihe
|
d72e401378
|
string: optimize eq
|
2020-04-25 20:19:53 +02:00 |
Alexander Medvednikov
|
48857090fc
|
runtime `as` type check: part 2
|
2020-04-25 08:42:23 +02:00 |
Kris Cherven
|
155891a4e0
|
parser: add unused variable warning
|
2020-04-22 01:52:56 +02:00 |
yuyi
|
0ced7116b6
|
string: add is_upper/is_lower and fix parser.match_expr error
* string: add is_upper/is_lower and fix parser.match_expr error
* to_capital => capitalize, to_title => title
* is_titled => is_title, is_capitalized => is_capital
|
2020-04-12 13:09:05 +03:00 |
Delyan Angelov
|
6433c23a34
|
string: add s.strip_margin_custom/1, instead of passing varargs to s.strip_margin()
The reason for adding s.strip_margin_custom/1 is that
passing varargs interfere with the current implementation of the
builtin module caching.
|
2020-04-11 11:06:12 +03:00 |
Alexander Medvednikov
|
6bbd1943dd
|
cgen: fix &string cast; vfmt fixes
|
2020-04-07 18:51:44 +02:00 |
Major Taylor
|
f099f90f50
|
string: fix trim_right, add tests
|
2020-04-06 14:30:25 +02:00 |
Delyan Angelov
|
abf15e863c
|
v2: compile vrepl, 'fn main(){println(2+2)}' runs now
It works if you give it complete V programs like
fn main(){println(2+2)}
but not for single expressions like 2+2 or statements like a:='abc'
|
2020-04-02 19:21:12 +03:00 |
Alexander Medvednikov
|
473d9fef55
|
checker: do not allow extra () in if conditions
|
2020-03-27 14:57:19 +01:00 |
Alexander Medvednikov
|
ed3e0c43bc
|
cgen: for c in string; short struct init syntax fixes;
|
2020-03-26 17:03:14 +01:00 |
Alexander Medvednikov
|
f101e9b9e2
|
v2: string fixes, is_dir fix
|
2020-03-24 11:14:11 +01:00 |
Alexander Medvednikov
|
fe6707b26d
|
cgen: minor fixes
|
2020-03-18 16:47:37 +01:00 |
yuyi
|
456c0250b0
|
string: fix strip_margin
|
2020-03-16 15:46:09 +01:00 |
Major Taylor
|
8d19ba9195
|
string: strip_margin: fix the error message for multiple args
|
2020-03-15 07:49:37 +01:00 |
Major Taylor
|
2d5c7c8e93
|
string: add `strip_margin`
|
2020-03-15 05:46:12 +01:00 |
Alexander Medvednikov
|
a182b5c531
|
cgen: more errors fixed
|
2020-03-11 23:22:40 +01:00 |