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

96 Commits

Author SHA1 Message Date
a2ec52b8c4 builtin: rewrite string.split_nth and fix some bugs (#7189) 2020-12-08 10:51:47 +02:00
52b627feb3 checker: check filter, map and sort left type (#6952) 2020-11-26 11:28:54 +01:00
00464ad988 builtin: add charptr.vstring() and charptr.vstring_with_len() (#6830) 2020-11-14 19:43:42 +02:00
0c987f433d string: enable test for string escaping (#6688) 2020-10-27 15:25:44 +01:00
55536bb364 autofree: handle more statements 2020-10-18 00:48:06 +02:00
46c5a2c8fc v test-fmt: fix some embedded comments in expressions 2020-10-14 22:52:33 +03:00
ce302c29e4 builtin: support also [abc,def].sort(b>a) 2020-10-06 21:33:15 +03:00
abc98c273c parser: require assign on type alias (#6477) 2020-09-25 12:02:32 +02:00
403cd0d915 Revert "gen: scape string function in gen/str.v (#6452)"
This reverts commit 60fbcc37fc.
2020-09-24 18:19:18 +02:00
60fbcc37fc gen: scape string function in gen/str.v (#6452) 2020-09-24 18:18:10 +02:00
077b597bd8 scanner/parser: change error msgs for \0 and \x00 and add error for rbyte and cbyte (#6436) 2020-09-21 17:34:24 +03:00
1c886ad067 scanner: add check for !is_raw for null \0 (#6427) 2020-09-19 19:09:18 +03:00
332f3a924c builtin: consume matched string length in string.replace_each (#6349) 2020-09-12 02:31:06 +02:00
6921d46185 all: rune type for `` literals 2020-08-27 06:46:37 +02:00
36eae1c175 builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
64f218e943 string: fix all cap .title() test 2020-08-09 04:09:48 +02:00
c65dbe51d6 parser: c2v fixes 2020-08-09 03:58:14 +02:00
f2c639c869 builtin: add string.contains_any() (#5963) 2020-07-29 21:48:50 +02:00
276c1de190 unsafe: tag with unsafe{} some more pointer manipulations 2020-07-22 21:42:51 +03:00
e5a5e76a30 cgen: fix for passing functions as voidptr args 2020-07-13 19:45:13 +03:00
b5b5176f9b string: add filter method (#5812) 2020-07-12 21:07:28 +03:00
78e1127d99 cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
f10d2bb75f string: fix trim_prefix and trim_suffix methods (#5572) 2020-06-30 15:44:53 +02:00
325a7c7ec5 orm: more fixes and tests 2020-06-17 14:29:44 +02:00
0052ab71e9 string: add map method 2020-06-17 12:26:55 +02:00
2ef0f15b34 string: fix contains behaviour (closes #5371) 2020-06-14 19:24:15 +10:00
4f307c1a78 checker: requre & in struct init; http: chunked encoding 2020-05-18 05:11:00 +02:00
f44a40eee0 checker: check incorrect names 2020-05-16 16:12:23 +02:00
04744a5390 string: add trim_prefix and trim_suffix 2020-05-15 19:37:14 +02:00
e0e064ff08 scanner: fix string slash line breaks error 2020-05-04 10:19:23 +02:00
4b8ed3f831 cgen: fixes for ustring, makes utf8_util_test.v pass 2020-04-22 10:35:14 +03:00
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
4b029567e5 tests: test string literal indexing and mutable array filter 2020-04-11 23:32:00 +02:00
ea960b2ce2 parser: fix inter literal format error 2020-04-11 17:25:39 +02:00
f099f90f50 string: fix trim_right, add tests 2020-04-06 14:30:25 +02:00
461a5b2c18 cgen: fix raw strings 2020-04-02 10:15:35 +02:00
f489c89987 v2: more informative assert output; string interpolation formatting 2020-03-26 19:17:14 +01:00
eb57f192d4 cgen: fix test 2020-03-26 17:21:52 +01:00
75c2ef7947 cgen: fix octal and hex int literals 2020-03-26 17:14:24 +01:00
ed3e0c43bc cgen: for c in string; short struct init syntax fixes; 2020-03-26 17:03:14 +01:00
fc86269bc9 checker: array str fixes 2020-03-26 11:32:32 +01:00
e2eb0f17d7 string: separate strip_margin tests into different functions 2020-03-17 02:49:51 +01:00
d39dd53998 string: bring back test_strip_margins 2020-03-16 15:45:54 +01:00
98fc9ab65b string: disable strip_margins test for now 2020-03-15 23:21:32 +01:00
2d5c7c8e93 string: add strip_margin 2020-03-15 05:46:12 +01:00
cd8a5d1f2e fix parser_test.v and string_test.v 2020-03-04 17:39:27 +01:00
632a538eb3 string: update string.repeat behavior
Panic if a repeat count is negative.
Return an empty string if a repeat count is zero.
2020-02-29 15:25:31 +01:00
e4de1e1e89 string: add more test cases 2020-02-20 20:14:21 +01:00
8be07194c7 string: fix capitalize 2020-02-20 11:33:38 +01:00
f76651604d compiler: bugfix for raw'"' 2020-02-09 16:29:05 +01:00