47 Commits

Author SHA1 Message Date
Delyan Angelov
b305fa5743 docs: cleanup doc comments of public APIs in builtin (found by find_doc_comments_with_no_dots.v) 2025-07-02 16:33:24 +03:00
Gonzalo Chumillas
55eccf6abe
jsgen: fix string.runes method (fix #20500) (#24609) 2025-05-30 06:15:08 +03:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +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
Juan de Bruin
da4afef0d7
builtin: implement a JS version of string.split_any (#21612) 2024-06-08 07:10:57 +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
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
Alexander Medvednikov
acf0107493 builtin: str.last_index(); pref: hide-auto-str; 2024-03-28 18:26:30 +03:00
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Turiiya
4bab3e700e
builtin: add @[direct_array_access] to js string trim_right method (#20222) 2023-12-19 23:31:30 +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
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Delyan Angelov
466c80f80a
vlib: remove methods deprecated before 2022-07-22 (#18944) 2023-07-22 18:11:12 +03:00
sandbankdisperser
e97aff8742
time: add more detailed error descriptions, add custom format parsing with time.parse_format (#18257) 2023-06-06 18:43:10 +03:00
Ikko Eltociear Ashimine
abcbba1e81
builtin: fix typo in string.js.v (#18213) 2023-05-21 02:46:11 +03:00
Roy Ivy III
5cd074a49e
builtin: improve multi-platform portability for string.split_into_lines() (#17078) 2023-01-24 10:02:25 +02:00
playX
db34adaec8
builtin.js: fix string.int method (#14564) 2022-05-31 11:52:11 +03:00
Delyan Angelov
6f5a513d8b
ci: fix v build-examples 2022-04-15 20:31:10 +03:00
Alexander Medvednikov
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Delyan Angelov
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
pancake
7b4ba66720
js: use JS.String instead of string in builtin javascript functions (#13004) 2022-01-01 09:17:08 +02:00
playX
0da7e2f8ab
js: make vlib/v/util compile on JS backend (#12660) 2021-12-03 12:25:36 +02:00
playX
2eb02ff5a7
jsdom, js: start refactoring jsdom; improve JS interfaces; add two attributes for them (#12488) 2021-11-17 11:41:33 +02:00
playX
a4c57ba56e
js: support JS interfaces (#12426) 2021-11-11 14:36:32 +02:00
Delyan Angelov
80242c8041
builtin,ast: apply small performance improvements, suggested by hotspot 2021-11-07 13:30:44 +02:00
playX
cfecb62299
js: DOM API. Part 1 (#12296) 2021-10-27 23:18:09 +03:00
playX
57c79770b3
js: port more methods (os, builtin) (#12238) 2021-10-20 16:02:21 +03:00
playX
d373eba79b
js: implement more functions for JS backend (#12167) 2021-10-13 09:40:14 +03:00
playX
22962dd2d2
js: change codegen for match statement, speedup string.split_into_lines (#12157) 2021-10-12 09:52:16 +03:00
playX
33a1006cc5
js: comptime&assert improvements, more byte and strings.Builder methods ported (#12096) 2021-10-07 15:55:47 +03:00
playX
b2945e916f
js: add initial support for runes (#12077) 2021-10-06 10:43:49 +03:00
playX
8d1ba52d0c
js: fix string.bytes codegen, readline, add tests for strings (#12060) 2021-10-04 18:28:30 +03:00
playX
9145cd66ec
js: add more tests to builtin/js and implement more builtin functions (#12049) 2021-10-03 10:08:21 +03:00
playX
863dd0b23e
js: array improvements (#11952) 2021-09-26 07:33:53 +03:00
Delyan Angelov
4faa0f8487
v.checker: add checks for .free() methods 2021-09-09 09:54:06 +03:00
playX
72089c4feb
js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
playX
bdf11d969a
js: add basic support for running tests, fix string.replace_each (#11314) 2021-08-26 15:20:54 +03:00
playX
109d5d5847
js: os now compiles to the JS backend, more builtins & minor codegen fixes (#11302) 2021-08-25 14:40:53 +03:00
playX
94c321c80d
v.gen.js: port fully the array test suite & add fixes (#11073) 2021-08-07 17:58:49 +03:00
playX
836ac54d12
v.gen.js: add more array tests and fixes (#11014) 2021-08-01 14:08:49 +03:00
Delyan Angelov
b0a721b2ec
js: draft support for compiling -b js x_test.v 2021-07-27 13:49:47 +03:00
playX
d5e0fa6d1b
v.gen.js: port string methods and fix booleans (#10824) 2021-07-18 09:00:20 +03:00
playX
06edbc8a38
v.gen.js: implement most of array and map methods in builtin/js (#10806) 2021-07-15 17:36:53 +03:00