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

139 Commits

Author SHA1 Message Date
868d3e1008 ci: fix failing tests for mysql, crypto.rc4, strings 2022-04-15 20:51:04 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +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
7f3b91e688 builtin: more byte => u8 2022-04-15 14:10:11 +03:00
d6c40865f9 strings: cleanup unsafe casts in some of strings.Builder ops (#13819) 2022-03-25 00:07:15 +02:00
8a2d3f6470 strings: add a Builder.ensure_cap() method (#13755) 2022-03-18 10:36:53 +02:00
34dd4f34ab checker: fix cgen error on sliced references (#13736) 2022-03-14 19:52:37 +02:00
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
80444c8ec4 strings: add find_between_pair (#13468) 2022-02-15 15:12:15 +02:00
ceb05b163a strings: rename Builder.write_b() to Builder.write_byte(), add deprecation (#13313) 2022-01-28 20:34:44 +02:00
9329b6c8c8 builtin: add more documentation (#13160) 2022-01-14 17:27:38 +02:00
a60b381d5e docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
e4850a007c strings: add Builder.drain_builder/1 utility method 2021-12-05 11:59:18 +02:00
47aa2b1f93 all: fix casting of string(MyString('abc')) and byte(MyByte(123)); improve TypeSymbol handling (#12617) 2021-12-01 09:50:53 +02:00
6937074e7a strings,builder: reduce V cgen and parser memory consumption, fix strings.Builder leak (#12342) 2021-10-31 12:58:55 +02:00
a7d4236337 sync,strings,cgen: reduce memory consumption in cgen 2021-10-29 22:29:56 +03:00
2c3e44eb20 strings: use memdup_noscan in Builder.str() 2021-10-28 17:00:16 +03:00
22962dd2d2 js: change codegen for match statement, speedup string.split_into_lines (#12157) 2021-10-12 09:52:16 +03:00
3c8be0db72 tests: reduce maxn in builder_test.js.v to just 1000 for now (runs in under 200ms, vs ~240s before that) 2021-10-11 19:57:35 +03:00
33a1006cc5 js: comptime&assert improvements, more byte and strings.Builder methods ported (#12096) 2021-10-07 15:55:47 +03:00
b2945e916f js: add initial support for runes (#12077) 2021-10-06 10:43:49 +03:00
8d1ba52d0c js: fix string.bytes codegen, readline, add tests for strings (#12060) 2021-10-04 18:28:30 +03:00
863dd0b23e js: array improvements (#11952) 2021-09-26 07:33:53 +03:00
72089c4feb js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
f8aaf4bf67 js: fix strings module (#11353) 2021-08-31 17:10:19 +03:00
fe08e1c504 strings: add Builder.write_rune/1 and Builder.write_runes/1 methods 2021-08-19 07:18:09 +03:00
a09324faa9 scanner: remove pos 0 hack which is no longer needed (#10935) 2021-07-25 01:13:07 +03:00
45c6b6493b v.util: make util.smart_quote use its output string builder directly 2021-06-21 09:13:38 +03:00
a21ee1abd4 strings.textscanner: add .current/0, .peek_back/0, .peek_back_n/1 and .goto_end/1 methods 2021-06-20 13:32:20 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
f9c4365dc7 v.gen.c: free indents in autogenerated .str() methods 2021-06-08 17:24:08 +03:00
f6bb4d9a4a strings.textscanner: fix doc strings (#10298) 2021-06-02 16:11:16 +03:00
eac1e25c5d strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
888b9c020c strings: add a new module strings.textscanner to simplify writing small parsers 2021-05-20 11:23:25 +03:00
2d2b4f79cc strings: add Builder.cut_to (#10042) 2021-05-07 19:41:27 +03:00
aff21c976b strings: fix for Builder.str() using b.len instead of b.buf.len 2021-04-25 09:07:46 +03:00
fec89c7efb ci: fix some of v test-cleancode 1 2021-04-05 20:47:32 +03:00
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
82f3ca2d55 strings: use deprecated_after for the .write_bytes method 2021-04-04 10:01:26 +03:00
400b4027c9 strings: comment deprecation of Builder.write_bytes temporarily 2021-03-22 09:01:22 +02:00
e3c0f305b2 os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370) 2021-03-20 09:02:28 +02:00
7446d8dc44 strings: test Builder's cut_last on windows 2021-03-04 20:35:17 +03:00
23f231ee61 builtin: tag array methods unsafe: *_many, grow_len, pointers (#8983) 2021-02-26 22:55:09 +01:00
c113abe1a4 strings: make builder implement io.Writer (#8914) 2021-02-23 09:42:48 +02:00
f54c1a5cc2 all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
514cabd7c8 strings: cleanup strings builder, allow reusing it 2021-02-21 13:34:29 +02:00
4a0367a63c vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00