Commit graph

1253 commits

Author SHA1 Message Date
Brian Carroll
e1d8d09472
builtins: move the output argument of Zig fromUtf8RangeC to first position 2022-07-04 11:24:39 +01:00
Brian Carroll
60d29c2e25
builtins: Move return pointer to first position for fromUtf8C 2022-07-04 11:24:39 +01:00
Brian Carroll
02ec30425c
wasm: Implement Str.split 2022-07-04 11:24:38 +01:00
Folkert
5904934887
rename countBytes -> countUtf8Bytes 2022-07-03 21:49:01 +02:00
Folkert
65f80b61c6
add Str.walkUtf8WithIndex 2022-07-03 20:24:08 +02:00
Folkert
eeb271d07f
Str.splitFirst and Str.splitLast 2022-07-03 19:47:06 +02:00
Folkert
be3800d7fa
add substringUnsafe roc function 2022-07-03 17:15:25 +02:00
Ayaz Hafiz
019ebd93f7
Put the capture niche in the lambda name instead of generating new names 2022-07-03 10:37:29 -04:00
Folkert
45eb8b9d77
add substringUnsafe in zig 2022-07-03 15:10:14 +02:00
Folkert
3cd56c3184
add Str.countBytes 2022-07-03 14:16:47 +02:00
Folkert
1f943a5452
add Str.getUnsafe 2022-07-03 13:46:22 +02:00
Marten/Qqwy
ce0bbbcef4
Fix segfault of List.range 0 3 2022-07-03 13:16:01 +02:00
Folkert
eefba96a16
format roc code 2022-07-03 13:02:41 +02:00
Folkert
8a611fdb34
use unreachable to implement walk 2022-07-03 03:01:23 +02:00
Folkert
762258ae20
Merge remote-tracking branch 'origin/trunk' into list-unreachable 2022-07-03 02:54:15 +02:00
Folkert de Vries
2a82d24847
Merge pull request #3369 from rtfeldman/pure-roc-list-walk
List.walk and friends in pure Roc
2022-07-03 02:32:43 +02:00
Folkert de Vries
d2c07f350d
Merge pull request #3371 from rtfeldman/starts-with-scalar
Str.startsWithCodePt -> Str.startsWithScalar
2022-07-03 00:22:21 +02:00
Folkert de Vries
75b4b3a206
Merge pull request #3365 from rtfeldman/to-scalars
Add Str.toScalars builtin
2022-07-02 23:04:28 +02:00
Brian Carroll
94181111be
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk 2022-07-02 21:44:42 +01:00
Richard Feldman
af05723d35
Rename startsWithCodePt to startsWithScalar 2022-07-02 15:51:33 -04:00
Folkert
8d6cdb6577
shift -> multiply 2022-07-02 21:48:57 +02:00
Richard Feldman
c9e52b8311
Have startsWithCodePt share code with toScalars 2022-07-02 15:28:10 -04:00
Richard Feldman
cfb33cb414
Fix bug in 3-byte and 4-byte toScalars 2022-07-02 15:25:33 -04:00
Richard Feldman
077c37d9fb
Use alignCast over intToPtr 2022-07-02 15:22:29 -04:00
Folkert
506e374642
List.unreachable 2022-07-02 19:40:05 +02:00
Folkert
e29a89d33c
remove zig implementation of keepIf/keepErrs/keepOks 2022-07-02 19:38:38 +02:00
Folkert
addb27164e
implement keepOks and keepErrs in pure roc 2022-07-02 19:38:37 +02:00
Folkert
6324fd632d
remove manual can implementation of takeFirst/takeLast 2022-07-02 19:38:37 +02:00
Folkert
616ddd6fe4
implement keepIf in pure roc 2022-07-02 19:38:36 +02:00
Brian Carroll
fdbcbb74dd
Format List.roc 2022-07-02 18:25:09 +01:00
Richard Feldman
d3ef05970f
zig fmt 2022-07-02 13:13:29 -04:00
Richard Feldman
9c9577c084
Add strToScalars empty string test 2022-07-02 13:13:28 -04:00
Richard Feldman
1b872022bb
Don't let fromSlice allocate when slice is empty 2022-07-02 13:13:28 -04:00
Richard Feldman
40d90c9fb3
Add doc comment for toScalars 2022-07-02 13:13:27 -04:00
Richard Feldman
810fcb307d
Delete some comments which reproduced a formatter bug 2022-07-02 13:12:14 -04:00
Richard Feldman
acb7cf99e1
Add Str.toScalars builtin 2022-07-02 13:12:12 -04:00
Richard Feldman
b1fe76adbf
Export Str.toScalars from Zig 2022-07-02 13:11:46 -04:00
Richard Feldman
5f20d31617
Add more strToScalars tests 2022-07-02 13:11:45 -04:00
Richard Feldman
9803e3ab01
Fix bug with 2-byte UTF-8 chars 2022-07-02 13:11:45 -04:00
Richard Feldman
598d03737c
Use RocStr.fromSlice in test 2022-07-02 13:11:45 -04:00
Richard Feldman
46c96be6ce
Rename toCodePts to toScalars
These code points will all be Unicode Scalar Values,
so might as well be more precise about the name.
2022-07-02 13:11:44 -04:00
Richard Feldman
44ba24df46
Improve strToCodePts 2022-07-02 13:11:44 -04:00
Richard Feldman
ce6c2f330c
Improve some RocList functions in zig 2022-07-02 13:11:43 -04:00
Richard Feldman
6f5baa5021
Use alignOf instead of sizeOf 2022-07-02 13:11:43 -04:00
Richard Feldman
47216b9905
Add RocStr.strToCodePts in Zig 2022-07-02 13:11:43 -04:00
Richard Feldman
6cdf63b319
Add some zig helpers to RocList 2022-07-02 13:11:42 -04:00
Richard Feldman
d4c1ac4afa
Fix error in comment 2022-07-02 13:11:42 -04:00
Richard Feldman
ff596f5e75
Add RocList.first_elem_ptr to list.zig 2022-07-02 13:11:42 -04:00
Brian Carroll
219e6d11cf
Merge branch 'trunk' of github.com:rtfeldman/roc into pure-roc-list-walk 2022-07-02 18:08:43 +01:00
Anton-4
b74fc3554b
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder 2022-07-02 12:35:19 +02:00