Delyan Angelov
|
e983d75b64
|
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380)
|
2025-01-06 08:23:56 +02:00 |
|
yuyi
|
17f3c8f813
|
checker: check fn call argument mismatch (fix #23016) (#23061)
|
2024-12-04 11:52:07 +02:00 |
|
Alexander Medvednikov
|
7b8089b392
|
markused: fix veb actions
|
2024-11-26 12:55:16 +03:00 |
|
Felipe Pena
|
af875ede92
|
v: do a minor optimizations on cmd/v (#22880)
|
2024-11-17 13:17:19 +02:00 |
|
yuyi
|
b30be51872
|
builtin: fix runes.to_upper() (fix #22742) (#22755)
|
2024-11-06 16:54:12 +02:00 |
|
yuyi
|
ea1992380c
|
builtin: add string.is_pure_ascii() (#22748)
|
2024-11-03 18:52:23 +02:00 |
|
Felipe Pena
|
ee4f29fd87
|
v: optimize the compiler performance (#22709)
|
2024-10-31 20:40:30 +02:00 |
|
Hitalo Souza
|
b5795dcd76
|
builtin: improve performance of string.starts_with/1 and string.ends_with/1 , when compiled with tcc (#22620)
|
2024-10-22 17:02:47 +03:00 |
|
Delyan Angelov
|
a64dfc776b
|
builtin: remove unsafe{} blocks from data_to_hex_string/2
|
2024-10-16 14:19:18 +03:00 |
|
Delyan Angelov
|
c5e8ad19df
|
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540)
|
2024-10-16 14:18:10 +03:00 |
|
Jose Mendoza
|
75658415f1
|
builtin: add string.wrap method + tests (#22441)
|
2024-10-08 07:14:32 +03:00 |
|
yuyi
|
ca5f47a966
|
builtin: cleanup string trim()/trim_left()/trim_right() (#22225)
|
2024-09-15 20:05:42 +03:00 |
|
yuyi
|
6eae77b61e
|
builtin: fix string.trim() (fix #13021) (#22205)
|
2024-09-13 07:27:40 +03:00 |
|
yuyi
|
99bfb5b0fc
|
builtin: cleanup comments of struct string (#22159)
|
2024-09-04 07:31:50 +03:00 |
|
yuyi
|
fdc3a9c11c
|
builtin,fmt: cleanup alignment using string.repeat() instead of strings.repeat() (#22087)
|
2024-08-21 09:18:10 +03:00 |
|
Alexander Medvednikov
|
ae1b9ed571
|
veb: deprecate x.vweb in favor of veb; checker: show missing variants in the sumtype error
|
2024-08-18 17:27:08 +03:00 |
|
yuyi
|
c51d30bf53
|
fmt: fix alignment of struct init fields (#22025)
|
2024-08-11 09:11:24 +03:00 |
|
Delyan Angelov
|
f676daceb5
|
vlib: fix C warnings/errors for v -show-c-output -cstrict -cc clang-18 run examples/gg/additive.v
|
2024-07-30 17:15:15 +03:00 |
|
yuyi
|
bf04adcc81
|
builtin: fix 'aaaa'.split('aa') (fix #21936) (#21951)
|
2024-07-28 13:25:14 +03:00 |
|
Swastik Baranwal
|
69bc4be512
|
builtin: add s.trim_space_left/0 and s.trim_space_right/0 methods (#21903)
|
2024-07-21 22:38:59 +03:00 |
|
Felipe Pena
|
769e9147c3
|
v: change old attr syntax mention to new one in comments too (#21860)
|
2024-07-14 09:39:37 +03:00 |
|
Turiiya
|
895bd71fa0
|
builtin: improve snake to camel case conversion (#21755)
|
2024-06-29 11:10:10 +03:00 |
|
Turiiya
|
6ecfc6f63a
|
builtin: fix assert '_ISspace'.camel_to_snake() == '_i_sspace' (#21736)
|
2024-06-27 08:23:39 +03:00 |
|
Turiiya
|
5b9358279a
|
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc (#21725)
|
2024-06-25 09:55:08 +03:00 |
|
Turiiya
|
c5c49d3685
|
builtin: fix assert 'JVM_PUBLIC_ACC'.camel_to_snake() == 'jvm_public_acc' (#21722)
|
2024-06-24 23:01:52 +03:00 |
|
Alexander Medvednikov
|
d7bc216713
|
string: fix leak in replace_once
|
2024-06-22 19:17:26 +03:00 |
|
Alexander Medvednikov
|
549e11bfa1
|
string: optimize is_ascii()
|
2024-06-22 18:25:52 +03:00 |
|
Turiiya
|
895bb87a32
|
builtin: improve performance of string.camel_to_snake (#21691)
|
2024-06-18 09:16:10 +03:00 |
|
kbkpbot
|
df1e4f1246
|
builtin: add string.camel_to_snake/0 and string.snake_to_camel/0 methods (#21679)
|
2024-06-15 21:02:44 +03:00 |
|
kbkpbot
|
02f65627bc
|
builtin: fix string.find_between(), when not found end string return '' (#21670)
|
2024-06-12 14:25:19 +03:00 |
|
Turiiya
|
a2ce55d922
|
builtin: update last_index_u8 , deprecate index_u8_last string methods, make consistent with last_index (#21604)
|
2024-06-04 13:21:47 +03:00 |
|
Turiiya
|
0fdc32e225
|
builtin: simplify splint_nth methods (#21563)
|
2024-05-25 16:47:11 +03:00 |
|
Delyan Angelov
|
c9e6a120f6
|
builtin: reduce allocations in s.index_kmp/1 and s.replace/2 (#21561)
|
2024-05-25 03:25:38 +03:00 |
|
Turiiya
|
5329a0a671
|
builtin: fix empty string lower / upper assert (#21358)
|
2024-04-26 21:03:44 +03:00 |
|
Delyan Angelov
|
d66de0c514
|
builtin: fix undefined read s[0], from ''.is_lower() and ''.is_upper() in c7af2c2
|
2024-04-26 17:07:40 +03:00 |
|
Swastik Baranwal
|
c7af2c21d1
|
builtin.string: fix is_upper and is_lower with numbers (#21357)
|
2024-04-26 16:20:21 +03:00 |
|
Turiiya
|
8aa9314a99
|
vlib: refactor empty string checks to use s == '' or s != '' , instead of s.len == 0 (#21300)
|
2024-04-18 02:44:31 +03:00 |
|
Turiiya
|
27cd1b106e
|
builtin: cleanup compare_strings functions (#21255)
|
2024-04-11 22:17:12 +03:00 |
|
Felipe Pena
|
625048c5b4
|
x.json2,checker,toml: allow field.typ compile-time checking with MatchExpr and add array of option checking (#21171)
|
2024-04-04 12:43:59 +03:00 |
|
Alexander Medvednikov
|
acf0107493
|
builtin: str.last_index(); pref: hide-auto-str;
|
2024-03-28 18:26:30 +03:00 |
|
Turiiya
|
f77bb32044
|
all: fix typos (#21089)
|
2024-03-25 12:18:27 +02:00 |
|
Felipe Pena
|
e6b43a166e
|
cgen: enable autofree for option (#21051)
|
2024-03-20 08:33:51 +02:00 |
|
Kim Shrier
|
094b0328e5
|
builtin: fix a few grammar errors in builtin.string comments (#21010)
|
2024-03-13 13:14:50 +02:00 |
|
cui fliter
|
78602846e5
|
all: fix typos in comments (#20963)
|
2024-03-04 18:41:55 +02:00 |
|
Delyan Angelov
|
a58f980b02
|
os: workaround a -prod -cc gcc bug, affecting os.open_file (fix #20923) (related to #20872) (#20960)
|
2024-03-04 18:15:28 +02:00 |
|
kbkpbot
|
7fd1b169f3
|
builtin: add a string.u8_array() method (#20736)
|
2024-02-06 17:53:02 +02:00 |
|
Vinicius Silva
|
3569635eff
|
builtin: add empty string verification for the new string .is_oct() etc methods, suggested on PR #20540 (#20564)
|
2024-01-17 11:00:07 +02:00 |
|
Vinicius Silva
|
afd74ad6e6
|
builtin: add is_hex() , is_int() , is_bin() , and is_oct() methods to the string type (#20540)
|
2024-01-16 23:58:28 +02:00 |
|
Anton
|
763f94388b
|
all: update copyright year (#20334)
|
2024-01-01 23:29:54 +02:00 |
|
Delyan Angelov
|
4b3109237d
|
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095)
|
2023-12-05 13:56:59 +02:00 |
|