Alexander Medvednikov
|
3e04dfc79f
|
builtin: fix byte.str() (part 1)
|
2021-01-05 18:59:51 +01:00 |
|
Delyan Angelov
|
84fc9cec4b
|
builtin: add string.split_by_whitespace()
|
2020-12-29 08:46:46 +02:00 |
|
yuyi
|
b47daad40d
|
all: remove redundant array.contains definitions (#7464)
|
2020-12-22 08:32:32 +01:00 |
|
Larpon
|
1ff6230062
|
builtin: document all functions in string.v (#7273)
|
2020-12-12 12:10:29 +02:00 |
|
Alexander Medvednikov
|
d319fe14f0
|
string: fix a one byte leak in .substr()
|
2020-12-11 05:12:18 +01:00 |
|
Alexander Medvednikov
|
a297cf8676
|
string: fix one byte leak in clone()
|
2020-12-11 05:03:37 +01:00 |
|
Seven Du
|
4a35a75b64
|
json: fix raw json string decoding crash when expected key is missing (#7206)
|
2020-12-09 20:10:41 +01:00 |
|
Andréas Livet
|
a2ec52b8c4
|
builtin: rewrite string.split_nth and fix some bugs (#7189)
|
2020-12-08 10:51:47 +02:00 |
|
yuyi
|
215a76a715
|
string: make tos_lit deprecated (#7129)
|
2020-12-04 20:34:58 +02:00 |
|
yuyi
|
06eaded6ea
|
string: change tos_lit to _SLIT (#7079)
|
2020-12-03 16:02:48 +01:00 |
|
Alexander Medvednikov
|
86b5f7ef5d
|
string: fix ustring.free()
|
2020-11-28 03:41:43 +01:00 |
|
Daniel Däschle
|
52b627feb3
|
checker: check filter, map and sort left type (#6952)
|
2020-11-26 11:28:54 +01:00 |
|
Swastik Baranwal
|
00464ad988
|
builtin: add charptr.vstring() and charptr.vstring_with_len() (#6830)
|
2020-11-14 19:43:42 +02:00 |
|
Alexander Medvednikov
|
6d11caf784
|
autofree: string.replace() test
|
2020-10-21 19:44:31 +02:00 |
|
Alexander Medvednikov
|
7da1afa140
|
all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests
|
2020-10-15 12:32:28 +02:00 |
|
Delyan Angelov
|
ce302c29e4
|
builtin: support also [abc,def].sort(b>a)
|
2020-10-06 21:33:15 +03:00 |
|
Henrixounez
|
c324169af0
|
all: remove intermediate handling for both global definition syntaxes (#6546)
|
2020-10-03 15:41:45 +02:00 |
|
Delyan Angelov
|
d2badcdedf
|
vlib: fix more C warns on windows
|
2020-09-18 13:40:47 +03:00 |
|
Oghogho Odemwingie
|
332f3a924c
|
builtin: consume matched string length in string.replace_each (#6349)
|
2020-09-12 02:31:06 +02:00 |
|
Alexander Medvednikov
|
4bc0dde413
|
all: new .sort(a < b) syntax
|
2020-08-12 05:54:51 +02:00 |
|
Delyan Angelov
|
36eae1c175
|
builtin: x.vstring() instead of string(x) (#6102)
|
2020-08-10 18:05:26 +02:00 |
|
Nick Treleaven
|
2dd90de993
|
parser: error on [unsafe_fn] (#6090)
|
2020-08-09 12:22:11 +03:00 |
|
Alexander Medvednikov
|
c65dbe51d6
|
parser: c2v fixes
|
2020-08-09 03:58:14 +02:00 |
|
Lukas Neubert
|
f2c639c869
|
builtin: add string.contains_any() (#5963)
|
2020-07-29 21:48:50 +02:00 |
|
Nick Treleaven
|
ee349691f9
|
v/checker: Warn about pointer indexing outside unsafe {} (#5918)
|
2020-07-22 20:28:53 +03:00 |
|
Nick Treleaven
|
a74cbf55c7
|
checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869)
|
2020-07-20 20:06:41 +03:00 |
|
Nick Treleaven
|
fb76e02c59
|
builtin: speed up string.clone() by using C.memcpy (#5837)
|
2020-07-20 17:44:35 +03:00 |
|
Nick Treleaven
|
105a0e015e
|
checker: warn if unsafe method called outside unsafe block (#5863)
|
2020-07-17 19:14:12 +02:00 |
|
Nick Treleaven
|
f5e6a83a05
|
builtin: unsafe vlib pointer indexing (#5836)
|
2020-07-15 21:56:50 +02:00 |
|
ka-weihe
|
df45488e09
|
cgen: fix warnings (#5820)
|
2020-07-14 00:16:31 +02:00 |
|
Swastik Baranwal
|
b5b5176f9b
|
string: add filter method (#5812)
|
2020-07-12 21:07:28 +03:00 |
|
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 |
|