Commit graph

48 commits

Author SHA1 Message Date
Richard Feldman
544e1f294a
Fix doc comment 2020-12-03 22:30:24 -05:00
Folkert
4b0b5126a1 add Str.fromInt 2020-12-04 00:37:19 +01:00
Folkert
82e87d04e3 rename str.len to str.number_of_bytes 2020-12-03 21:23:07 +01:00
Folkert
22d798b7c7 add Str.endsWith 2020-12-03 19:16:50 +01:00
Folkert
3162ab5fc4 simplify str_len 2020-12-03 16:22:47 +01:00
Folkert
f21af47fc1 simplify str_starts_with 2020-12-03 16:10:24 +01:00
Folkert
770d4d7bc3 simplify str_count_graphemes 2020-12-03 16:07:14 +01:00
Folkert
3d6ea21184 cleanup 2020-12-03 16:04:08 +01:00
Folkert
3554a81add pass RocStr over the zig/llvm boundary 2020-12-03 15:52:27 +01:00
Folkert
674f336601 clippy things 2020-12-01 23:11:24 +01:00
Folkert
63f4fbf1ef use zig-defined Str.concat 2020-12-01 23:00:39 +01:00
Sébastien Besnier
b36c2bf499 implement startsWith builtin using Zig 2020-11-22 21:48:42 +01:00
Chadtech
385d0fda9f Resolving conflicts with remote trunk 2020-11-22 13:54:13 -05:00
Folkert
2f1ca9decf cleanup 2020-11-21 22:54:57 +01:00
Folkert
8013af7e97 change representation of list/str 2020-11-21 22:50:33 +01:00
Folkert
45c62dfa3c improve list allocation 2020-11-19 16:11:21 +01:00
Folkert
8528e5affb upgrade inkwell 2020-11-17 01:58:30 +01:00
Chad Stearns
b551ba0f0e Fix llvm name 2020-11-08 15:25:06 -05:00
Chad Stearns
58f0c48338 Str.split works for big str 2020-11-08 15:01:52 -05:00
Chad Stearns
481bca3b44 Pass in pointers into Str split in place bitcode function, not actual strs 2020-11-08 13:04:36 -05:00
Chad Stearns
5e0e3da3b7 Merging in remote trunk 2020-11-08 07:01:07 -05:00
Jared Ramirez
430666a948 Fix cargo clippy 2020-11-07 15:29:53 -06:00
Chad Stearns
5561f9787e Use Str.split bitcode with proper arguments and names 2020-11-07 02:26:59 -05:00
Jared Ramirez
14fed8e6a6 Fix cargo fmt 2020-11-06 17:03:21 -06:00
Jared Ramirez
e112a406a2 Fix countGrapheme wiring; Reorganize zig builtins; Streamline how we export zig function 2020-11-06 16:54:28 -06:00
Jared Ramirez
63308d90e1 Add Str.countGraphemes 2020-11-06 16:54:28 -06:00
Dimitar Apostolov
9beeafb6cd WIP: str_starts_with loop 2020-10-22 23:24:35 +02:00
Dimitar Apostolov
0ae045c1f3 Add canonical Expr for Str.startsWith 2020-10-22 23:24:29 +02:00
Chad Stearns
bab954f40f Comply with clippy 2020-10-20 21:02:28 -04:00
Chad Stearns
b3004a7862 Fill in panics in Str.split implementation 2020-10-20 20:40:37 -04:00
Chad Stearns
626d49d7b0 Str Split bitcode 2020-10-20 05:02:59 -04:00
Chad Stearns
bf81e67a89 WIP on Str.split 2020-10-18 21:12:08 -04:00
Chad Stearns
ee7a3e375c counter_delimiters bitcode function for Str.split 2020-10-06 02:51:43 -04:00
Chad Stearns
43960cf1c6 unique and std work, check if delimiter is longer than str 2020-09-27 14:27:56 -04:00
Chad Stearns
943925e4de Set up many basic details for Str.split- no implementation yet 2020-09-26 14:54:14 -04:00
Richard Feldman
1c8383b3bb clippy things 2020-09-16 19:34:48 -04:00
Richard Feldman
5d3645350d Merge remote-tracking branch 'origin/trunk' into small-str 2020-09-16 02:23:06 -04:00
Richard Feldman
1efc386e5a Fix Str.concat for small strings 2020-09-12 23:25:34 -04:00
Richard Feldman
4ef800d4b7 Add some TODOs about memcpys 2020-09-12 23:05:25 -04:00
Richard Feldman
254b93a8ce Add env.small_str_bytes 2020-09-12 23:05:01 -04:00
Richard Feldman
d778e82d65 Fix Str.isEmpty 2020-09-12 22:05:08 -04:00
Richard Feldman
d1b1fd3a6a Consistently cast string length to usize 2020-09-12 21:57:11 -04:00
Richard Feldman
e3d0145894 Add Str.isEmpty 2020-09-12 21:56:53 -04:00
Richard Feldman
8e8a41079e Separate out str_is_not_empty
Also have list_is_not_empty use ptr_int instead of i64
2020-09-12 21:48:51 -04:00
Richard Feldman
648758f752 Fix Str.concat for big strings 2020-09-12 21:22:37 -04:00
Chad Stearns
a6c3d8edef Mostly implemented big and small string work for Str.concat. Just some bugs somewhere in the llvm 2020-09-12 17:39:41 -04:00
Chad Stearns
89ca6735eb Code compiles for load_str, but does not work 2020-09-12 16:59:00 -04:00
Chad Stearns
5ab3bf8c24 isolated str builtin stuff into new build_str module 2020-09-07 18:41:12 -04:00