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

300 Commits

Author SHA1 Message Date
a91226c376 docs: cleanup (#14327) 2022-05-07 20:18:42 +03:00
9fde5b067b docs: add missing function names in the builtin example doc comments (#14318) 2022-05-05 17:22:25 +03:00
995485c649 builtin: add string.len_utf8() method (#14208) 2022-04-29 10:23:57 +03:00
1533b77404 builtin: remove unnecessary casts for defunct small unsigned warning (#14108) 2022-04-20 21:47:09 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
c780de6282 checker: disallow 'small_unsigned == signed' (#13967) 2022-04-12 19:37:30 +03:00
2cd9c91e98 vdoc: highlight terminal examples for -comments -color (#13937) 2022-04-04 18:13:24 +03:00
d10135e2c4 vdoc: HTML highlight generic function as function, not name (#13923) 2022-04-03 23:41:02 +03:00
42f92db0ab v.doc: parse multi-line examples (so they get highlighted) (#13894) 2022-04-02 18:29:12 +03:00
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
7f29418c63 strconv: change atof64 to return an error, if the parsed value is not a valid number (#13424) 2022-02-10 13:27:32 +02:00
727c9fb4a1 all: add string range OrExpr (#13189) 2022-01-17 13:03:10 +03:00
9329b6c8c8 builtin: add more documentation (#13160) 2022-01-14 17:27:38 +02:00
70aedaf184 builtin: add a string.parse_int/2 method (wrapping strconv.parse_int/3) (#13164) 2022-01-14 00:31:11 +02:00
d3489d4246 builtin: s.trim_prefix/1 -> s.trim_string_left/1, s.trim_suffix/1 -> s.trim_string_right/1 2022-01-05 12:49:22 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
278c08704c all: support slices with negative indexes #[start..end] (gated arrays) (#12914) 2021-12-22 16:34:02 +03:00
f81654e3a7 builtin: add s.match_glob(wildcard_pattern) 2021-12-20 14:17:08 +02:00
6ff953d936 preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523) 2021-12-16 15:59:46 +02:00
81a1490e31 builtin: add string.split_any/1 (#12720) 2021-12-04 20:13:40 +02:00
c4363bc78b builtin: explain and better organise the different cstring_to_vstring/tos/tos_clone/vstring family of conversion functions 2021-12-02 15:46:53 +02:00
80242c8041 builtin,ast: apply small performance improvements, suggested by hotspot 2021-11-07 13:30:44 +02:00
b86c79329b os, builtin: reduce leaks without -autofree 2021-10-29 15:49:30 +03:00
8014235e0e scanner: speed up text_scan by using a specialised keywords matcher, instead of a generic V map of keywords 2021-10-28 15:41:13 +03:00
Ken
a17b943e87 builtin: add method byte() for string (#11998) 2021-09-28 10:08:10 +03:00
b343f19bec v.scanner: fix ambiguity of two-level generics and shift-right (#11540) 2021-09-19 16:22:28 +03:00
78c26e69cf builtin: fix the string.index_any method (#11310) 2021-09-06 15:06:37 +03:00
bdf11d969a js: add basic support for running tests, fix string.replace_each (#11314) 2021-08-26 15:20:54 +03:00
109d5d5847 js: os now compiles to the JS backend, more builtins & minor codegen fixes (#11302) 2021-08-25 14:40:53 +03:00
47884dfd1f builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
506c30a291 builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
66bc8bc0cb vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
a1f123bd42 cgen: enable string index error handling s[i] or {...} (#10670) 2021-07-05 21:00:30 +03:00
6a64259527 string: bring back the is_lit comment 2021-07-03 20:16:49 +03:00
0f9537ece5 all: remove ustring (#10630) 2021-07-03 20:14:09 +03:00
1486258591 strconv: fix atoi returning 0 on large strings (#10635) 2021-07-02 10:39:57 +03:00
3881e97a40 vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +03:00
6838030ab5 builtin: add string.runes() (#10611) 2021-06-30 09:17:38 +03:00
ab5a4cf4e5 builtin: cleanup .before() documentation 2021-06-29 14:50:55 +03:00
1b5d0ba8fd builtin: document existing behaviour of .before() methods on strings 2021-06-29 14:40:37 +03:00
f580597ffc ci: fix -cstrict compilation on tests-sanitize-undefined-clang 2021-06-23 20:17:58 +03:00
66bf963a48 builtin: remove C.printf call from string.free() 2021-06-23 16:31:46 +03:00
652e7ba973 gc: extend optimized mode to strings (#10431) 2021-06-12 11:27:08 +03:00
e02d1d4a4b Revert "gc: extend optimized mode to strings (#10409)"
This reverts commit 3f654a69e3.
2021-06-12 01:52:06 +03:00
3f654a69e3 gc: extend optimized mode to strings (#10409) 2021-06-12 00:03:05 +03:00
5be982d63e builtin: fix memory leak on empty strings (#10408) 2021-06-10 15:21:57 +03:00
15557161cc builtin: add trailing 0 to reversed string (#10248) 2021-05-29 16:45:26 +03:00
39c376bb5b builtin,gen: use operator overloading on ustring (#10197) 2021-05-25 14:51:48 +03:00