Kris Cherven
|
155891a4e0
|
parser: add unused variable warning
|
2020-04-22 01:52:56 +02:00 |
yuyi
|
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 |
Delyan Angelov
|
6433c23a34
|
string: add s.strip_margin_custom/1, instead of passing varargs to s.strip_margin()
The reason for adding s.strip_margin_custom/1 is that
passing varargs interfere with the current implementation of the
builtin module caching.
|
2020-04-11 11:06:12 +03:00 |
Alexander Medvednikov
|
6bbd1943dd
|
cgen: fix &string cast; vfmt fixes
|
2020-04-07 18:51:44 +02:00 |
Major Taylor
|
f099f90f50
|
string: fix trim_right, add tests
|
2020-04-06 14:30:25 +02:00 |
Delyan Angelov
|
abf15e863c
|
v2: compile vrepl, 'fn main(){println(2+2)}' runs now
It works if you give it complete V programs like
fn main(){println(2+2)}
but not for single expressions like 2+2 or statements like a:='abc'
|
2020-04-02 19:21:12 +03:00 |
Alexander Medvednikov
|
473d9fef55
|
checker: do not allow extra () in if conditions
|
2020-03-27 14:57:19 +01:00 |
Alexander Medvednikov
|
ed3e0c43bc
|
cgen: for c in string; short struct init syntax fixes;
|
2020-03-26 17:03:14 +01:00 |
Alexander Medvednikov
|
f101e9b9e2
|
v2: string fixes, is_dir fix
|
2020-03-24 11:14:11 +01:00 |
Alexander Medvednikov
|
fe6707b26d
|
cgen: minor fixes
|
2020-03-18 16:47:37 +01:00 |
yuyi
|
456c0250b0
|
string: fix strip_margin
|
2020-03-16 15:46:09 +01:00 |
Major Taylor
|
8d19ba9195
|
string: strip_margin: fix the error message for multiple args
|
2020-03-15 07:49:37 +01:00 |
Major Taylor
|
2d5c7c8e93
|
string: add `strip_margin`
|
2020-03-15 05:46:12 +01:00 |
Alexander Medvednikov
|
a182b5c531
|
cgen: more errors fixed
|
2020-03-11 23:22:40 +01:00 |
Alexander Medvednikov
|
e0c85f87ae
|
cgen: args fixes
|
2020-03-11 21:11:27 +01:00 |
Alexander Medvednikov
|
63032c4bb7
|
cgen: minor fixes
|
2020-03-07 16:23:10 +01:00 |
Alexey
|
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 |
spaceface777
|
ef8c1203b4
|
cleanup: replace C for loops with range
|
2020-02-24 17:55:16 +01:00 |
Alexey
|
c85ccad0a6
|
string: update check if a char is a space
|
2020-02-20 20:14:54 +01:00 |
Alexey
|
e4de1e1e89
|
string: add more test cases
|
2020-02-20 20:14:21 +01:00 |
yuyi
|
8be07194c7
|
string: fix capitalize
|
2020-02-20 11:33:38 +01:00 |
yuyi
|
391da0ba07
|
string: optimize starts_with and ends_with
|
2020-02-19 15:18:09 +01:00 |
Alexander Medvednikov
|
31c1483b9d
|
vfmt2: fn args, comments
|
2020-02-18 20:20:15 +01:00 |
Delyan Angelov
|
195f3f465b
|
option to disable bounds checking; examples/path_tracing.v: optimizations
|
2020-02-16 16:13:45 +01:00 |
Alexey
|
1eeee40278
|
string: split into lines correctly
|
2020-02-09 09:23:57 +01:00 |
Alexander Medvednikov
|
06b5f43e48
|
builtin: remove unneeded casts
|
2020-02-05 11:22:24 +01:00 |
Alexander Medvednikov
|
2b433cdf64
|
v2: match, <<=, >>=, |=, ~, unsafe, map init
|
2020-02-05 10:00:14 +01:00 |
Alexander Medvednikov
|
80daaff874
|
v2: scopes, or, in, hex
|
2020-02-04 17:44:39 +01:00 |
Delyan Angelov
|
219239eadc
|
string.split_nth - return the rest of the string as the last value in the result array
|
2020-01-24 20:12:36 +01:00 |
Shun Sakai
|
c8c43a2475
|
update copyright year
|
2020-01-23 21:04:46 +01:00 |
penguindark
|
da9b6394e8
|
0bxxxx binary literal support; _ in literals (1_000_000)
|
2020-01-23 03:28:25 +01:00 |
Alexander Medvednikov
|
e1132156f5
|
make sqlite.DB public; make string.left/right private
|
2020-01-16 18:41:38 +01:00 |
Alexander Medvednikov
|
de3ad2b04f
|
fix vweb tutorial project; clean up gg functions a bit
|
2020-01-15 22:17:45 +01:00 |
Swastik Baranwal
|
2741c0b211
|
string: new type conversion functions
|
2020-01-14 18:05:38 +01:00 |
Alexander Medvednikov
|
4c7df98ac9
|
make private struct warning an error
|
2020-01-12 19:59:57 +01:00 |
BigBlack
|
98b81252b7
|
fix #3217 (string.replace)
|
2019-12-27 07:20:06 +03:00 |
Alexander Medvednikov
|
d082b3f4b9
|
run vfmt on vlib/builtin
|
2019-12-20 00:12:29 +03:00 |
penguindark
|
3dbf7a4039
|
atof implementation in V
|
2019-12-17 01:07:13 +03:00 |
Alexander Medvednikov
|
e7856a1afc
|
do not allow malloc(0)
|
2019-12-16 21:29:32 +03:00 |
Alexander Medvednikov
|
b8f728590b
|
string: last_index ?int
|
2019-12-12 21:54:48 +03:00 |
Alexander Medvednikov
|
cdfbb2978d
|
strings: replace_each([]); orm: update
|
2019-12-10 23:57:49 +03:00 |
Alexander Medvednikov
|
9726e18c0a
|
string: optimize replace()
|
2019-12-10 18:50:21 +03:00 |
Alexander Medvednikov
|
6f49d4c1d2
|
orm: bool support; vweb fixes
|
2019-12-09 23:20:29 +03:00 |
Don Alfons Nisnoni
|
254afcb2d0
|
*C.char => charptr
|
2019-12-02 11:37:35 +03:00 |
radare
|
5ff387bbe4
|
strings: split_nth and add tests
|
2019-12-01 16:10:13 +03:00 |
Alexander Medvednikov
|
3fea8f3de5
|
*char => charptr everywhere
|
2019-12-01 10:33:26 +03:00 |
Alexander Medvednikov
|
81d4f66fbb
|
string: make `index()` return `?int` instead of `int`/-1
|
2019-11-30 13:21:21 +03:00 |
Alexander Medvednikov
|
cc2bd0bb68
|
string: make substr private
|
2019-11-30 12:50:57 +03:00 |
Alexander Medvednikov
|
b38283dcf1
|
string: make left/right private
|
2019-11-30 12:06:17 +03:00 |
Delyan Angelov
|
7545ea709a
|
enable alpine/musl CI tests
|
2019-11-28 11:46:52 +03:00 |