Commit graph

178 commits

Author SHA1 Message Date
Dan Knutson
fdac5e2bd8 add isWhitespace helper 2021-10-25 20:22:37 -05:00
Folkert
f8ac85195b fix zig test 2021-10-03 14:18:48 +02:00
Folkert
486f1d540f add specifications for fromUtf8 and toUtf8 2021-10-03 13:22:03 +02:00
Folkert
018348bd83 make Str.fromUtf8 in-place 2021-10-03 12:13:17 +02:00
Kofi Gumbs
b2343cb0ad Format zig 2021-09-29 21:54:14 -04:00
Kofi Gumbs
b32a42f05a Add Str.repeat builtin 2021-09-29 17:32:42 -04:00
Folkert
c0cfd6ac16 make conversion a cast again 2021-09-12 14:28:44 +02:00
Folkert
1d17a21d1f higher alignment requirement on rocstr/roclist 2021-09-04 15:18:37 +02:00
Folkert
63f89d73be attempt benchmark platform 2021-08-24 23:57:39 +02:00
Folkert
0a7f7a2772 emit LLVM IR that can be compiled to wasm 2021-08-24 20:56:13 +02:00
Folkert
04fa8fee38 take self by reference 2021-08-24 20:24:21 +02:00
Folkert
13df4ee656 Merge remote-tracking branch 'origin/trunk' into wasm-cli-option 2021-08-24 17:02:05 +02:00
Folkert
9037e57e14 fix zig usize/u64 issues 2021-08-23 21:45:12 +02:00
Folkert
9903e14cd3 update zig to compile on nightly 2021-08-23 21:41:13 +02:00
Folkert
459af15c8f WIP 2021-08-23 21:14:09 +02:00
Joshua Hoeflich
bd62347b11 Remove unnecessary lines from zig 2021-08-09 22:04:51 -05:00
Joshua Hoeflich
c00d400d85 Fixes merge conflict 2021-08-08 21:38:15 -05:00
Joshua Hoeflich
b8b20a376a Passing without bounds checks 2021-08-08 11:26:49 -05:00
Joshua Hoeflich
4231b340ee Glue code working 2021-08-08 11:06:10 -05:00
Richard Feldman
2a616103c6 Rename Str.toBytes to Str.toUtf8 2021-08-07 22:46:24 -04:00
Richard Feldman
267836226c s/CodePoint/CodePt/g 2021-08-07 21:46:20 -04:00
Richard Feldman
ebf7e6e3b9 Add RocStr.capacity and isNullTerminated 2021-06-21 19:05:12 -04:00
Richard Feldman
d11f42743c Update a comment 2021-06-21 19:05:12 -04:00
Richard Feldman
bdc0456996 Drop unused function which failed on small strings 2021-06-21 19:05:12 -04:00
Richard Feldman
6b8c39c8cb Don't hardcode 16 bytes in str.zig 2021-06-21 19:05:12 -04:00
Richard Feldman
89996c4b43 Drop obsolete comment 2021-06-21 19:05:12 -04:00
Folkert
f62a5c12b9 fix zig test 2021-06-19 23:03:13 +02:00
Folkert
e912edcfdd fix too many arguments 2021-06-19 21:26:06 +02:00
rvcas
a3c9009867 fix: all tests need to use try now 2021-06-06 00:50:52 -04:00
Richard Feldman
aa96d2373b Reorder args in decref 2021-05-24 22:06:35 -04:00
Richard Feldman
0b3715ebee Rearrange arg order for roc_alloc etc 2021-05-24 21:01:12 -04:00
Richard Feldman
7d7588ca19 Merge remote-tracking branch 'origin/trunk' into roc_alloc 2021-05-24 20:10:26 -04:00
Richard Feldman
12c353afaf zig fmt 2021-05-23 23:46:09 -04:00
Richard Feldman
ab51582541 Switch builtins to use roc_alloc and friends 2021-05-23 23:46:09 -04:00
Folkert
d2b0ecdd04 fix List.map2 2021-05-19 16:07:50 +02:00
Folkert
04968d6394 fix closure RC increments 2021-05-18 21:34:37 +02:00
Folkert
c071cfba13 implement startsWithCodePoint 2021-05-02 19:26:08 +02:00
Folkert
839095942d reallocate in strings 2021-05-01 23:16:34 +02:00
Folkert
870adb20a8 use decref to deallocate RocStr in zig code 2021-04-14 16:53:36 +02:00
Folkert
134f8a15e9 fix zig tests 2021-02-24 22:26:18 +01:00
Folkert
3537fa57d2 decrement when the input is invalid utf8 2021-02-24 21:46:58 +01:00
Folkert
a6edc58323 make fromUtf8 do RC 2021-02-24 21:25:14 +01:00
Folkert
9116e9e8c9 add Str.toBytes 2021-02-21 19:52:32 +01:00
Folkert
57b78dde06 Merge remote-tracking branch 'origin/trunk' into str-fromUtf8 2021-02-21 15:25:36 +01:00
Folkert
a2a31cb962 reuse allocateWithRefcount in str 2021-02-19 19:26:29 +01:00
Folkert
9473a332db clippy 2021-02-19 19:22:05 +01:00
Folkert
17fddaf0dd refcount details of builtins 2021-02-19 17:13:09 +01:00
Folkert
a37913ff01 fix shadowing 2021-02-16 01:23:10 +01:00
Folkert
411a265024 remove bitcast in Str.fromFloat 2021-02-16 00:56:44 +01:00
Folkert
13b2c23c01 working AStar 2021-02-15 21:34:55 +01:00