Commit graph

339 commits

Author SHA1 Message Date
Folkert
a9ba08d8cb
appendScalar zig implementation 2022-07-04 13:58:39 +02:00
Folkert
4f965ec263
fix RocStr.capacity() in zig 2022-07-04 13:39:51 +02:00
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
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
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 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
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
e29a89d33c
remove zig implementation of keepIf/keepErrs/keepOks 2022-07-02 19:38:38 +02: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
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
Anton-4
b1b9a8dc0a
Merge branch 'trunk' of github.com:rtfeldman/roc into crates-folder 2022-07-02 10:44:25 +02:00
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00