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

269 Commits

Author SHA1 Message Date
Delyan Angelov
47884dfd1f
builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
Enzo
506c30a291
builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
shadow
66bc8bc0cb
vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
Uwe Krüger
a1f123bd42
cgen: enable string index error handling s[i] or {...} (#10670) 2021-07-05 21:00:30 +03:00
Alexander Medvednikov
6a64259527 string: bring back the is_lit comment 2021-07-03 20:16:49 +03:00
Daniel Däschle
0f9537ece5
all: remove ustring (#10630) 2021-07-03 20:14:09 +03:00
Flinner
1486258591
strconv: fix atoi returning 0 on large strings (#10635) 2021-07-02 10:39:57 +03:00
Daniel Däschle
3881e97a40
vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +03:00
Daniel Däschle
6838030ab5
builtin: add string.runes() (#10611) 2021-06-30 09:17:38 +03:00
Delyan Angelov
ab5a4cf4e5
builtin: cleanup .before() documentation 2021-06-29 14:50:55 +03:00
Delyan Angelov
1b5d0ba8fd
builtin: document existing behaviour of .before() methods on strings 2021-06-29 14:40:37 +03:00
Delyan Angelov
f580597ffc
ci: fix -cstrict compilation on tests-sanitize-undefined-clang 2021-06-23 20:17:58 +03:00
Delyan Angelov
66bf963a48
builtin: remove C.printf call from string.free() 2021-06-23 16:31:46 +03:00
Uwe Krüger
652e7ba973
gc: extend optimized mode to strings (#10431) 2021-06-12 11:27:08 +03:00
Alexander Medvednikov
e02d1d4a4b Revert "gc: extend optimized mode to strings (#10409)"
This reverts commit 3f654a69e3.
2021-06-12 01:52:06 +03:00
Uwe Krüger
3f654a69e3
gc: extend optimized mode to strings (#10409) 2021-06-12 00:03:05 +03:00
pancake
5be982d63e
builtin: fix memory leak on empty strings (#10408) 2021-06-10 15:21:57 +03:00
Uwe Krüger
15557161cc
builtin: add trailing 0 to reversed string (#10248) 2021-05-29 16:45:26 +03:00
Enzo
39c376bb5b
builtin,gen: use operator overloading on ustring (#10197) 2021-05-25 14:51:48 +03:00
Enzo
ce7f78522d
builtin: remove former string operator methods (#10184) 2021-05-24 14:05:29 +03:00
Enzo
886f69bfcf
all: use operator overloading on strings (p. 2) (#10183) 2021-05-24 11:38:31 +03:00
Delyan Angelov
7f12bfa563
builtin: optimise sx == sy in the case where strings have common prefixes 2021-05-23 17:22:57 +03:00
Delyan Angelov
5efd8c62d0
ci: fix tests-sanitize-undefined-clang 2021-05-23 15:13:53 +03:00
Delyan Angelov
a27e7f7675
builtin: remove commented code; improve print_backtrace with tcc 2021-05-23 12:37:40 +03:00
Alexander Medvednikov
7c0f8f7644 builtin: a small optimization in string.replace() 2021-05-22 14:35:36 +03:00
JalonSolov
274c817028
builtin.string: optimize split_into_lines (#10081) 2021-05-11 18:57:32 +03:00
Delyan Angelov
e6011e83ce
builtin: cleanup string.v 2021-05-11 13:59:44 +03:00
Uwe Krüger
d26ac5692e
all: various fixes for [heap]/auto-heap handling (#10033) 2021-05-07 15:58:48 +03:00
Delyan Angelov
2eafea6308
v: reduce the memory usage of the compiler (analysed with heaptrack) 2021-05-06 11:44:48 +03:00
Delyan Angelov
84f9789e72
v: tag more low level functions with [direct_array_access] 2021-05-06 00:35:16 +03:00
Delyan Angelov
597a774d36
scanner: speed up Scanner.skip_whitespace (~2-3% speed up of -o x.c cmd/v) 2021-05-03 14:14:32 +03:00
Mark
feb60674b4
builtin.string: minor fixes in join() (#9952) 2021-05-02 19:31:47 +03:00
JalonSolov
3175525b5e
builtin.string: optimize replace (#9969) 2021-05-02 19:30:07 +03:00
JalonSolov
3363c3ef65
builtin.string: optimize replace() (#9955) 2021-05-01 21:27:49 +03:00
Lukas Neubert
70c651ff17
all: make __global behave consistent with const (#9711) 2021-04-19 17:07:47 +03:00
Delyan Angelov
ded3ce5863
builtin: cleanup string.v 2021-04-17 12:30:45 +03:00
crthpl
14434cc86a
all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
Delyan Angelov
f04dd21e79
builtin: run vfmt over string.v 2021-04-13 12:01:23 +03:00
Delyan Angelov
a1121d0eb0
builtin: use 0 instead of \0 rune when setting C style terminators; use C.memcpy in []string{}.join("") 2021-04-13 11:29:33 +03:00
Alexander Medvednikov
66d3917554 builtin: fix C++ compilation 2021-04-07 15:25:45 +03:00
Delyan Angelov
291a88bc62
ci: fix some of v test-cleancode 4 2021-04-05 21:39:32 +03:00
Delyan Angelov
34aa67b1e8
ci: fix compilation and formatting of sqlite example in docs.md 2021-04-05 08:09:04 +03:00
Delyan Angelov
accd4d83bf
ci: fix compilation 2021-04-04 20:14:51 +03:00
Alexander Medvednikov
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
Alexander Medvednikov
bb5958991c checker: warn about automatic (de)referencing; freetype: compilation flag fixes 2021-03-26 11:42:51 +03:00
Delyan Angelov
b7c01db1f9
builtin: add .vstring_literal and .vstring_literal_with_len for converting read only strings like os.args 2021-03-23 22:10:28 +02:00
Delyan Angelov
026f8424c2
builtin: fix a leak in string.index_kmp 2021-03-23 21:48:08 +02:00
Delyan Angelov
d098a3caca
builtin: make string.add() public temporarily till -autofree improves 2021-03-23 20:20:53 +02:00
Delyan Angelov
419ee8ae2a
builtin: fix a bug in []string.join() 2021-03-23 20:14:46 +02:00
Alexander Medvednikov
0c055a1ce9 all: s.contains(s2) instead of in 2021-03-23 11:38:56 +03:00