Folkert
|
5763248b44
|
Merge remote-tracking branch 'origin/trunk' into assoc-list-dict
|
2022-07-13 20:44:28 +02:00 |
|
Ayaz Hafiz
|
980c3f1421
|
Use decimal formatting for float Num.toStr
|
2022-07-13 12:35:49 -04:00 |
|
Richard Feldman
|
25facfa9c6
|
Expose capacity builtins
|
2022-07-13 12:19:37 -04:00 |
|
Ayaz Hafiz
|
66b8d145a9
|
Support Num.toStr for dec
|
2022-07-13 12:13:21 -04:00 |
|
Ayaz Hafiz
|
b7c312d449
|
Support Num.toStr for f32, f64
|
2022-07-13 12:13:01 -04:00 |
|
Folkert
|
d33beedcd0
|
add the zig bits for expects
|
2022-07-13 14:40:07 +02:00 |
|
Folkert
|
6c26d8812f
|
remove dict/hash stuff from the zig builtins
|
2022-07-13 11:59:46 +02:00 |
|
Folkert
|
9a51737a47
|
fix use after free
|
2022-07-13 10:34:30 +02:00 |
|
Folkert
|
bc24841921
|
Str.fromUtf8Range: take list argument as owned; make sure it's decremented in the small string case
|
2022-07-12 22:57:48 +02:00 |
|
Folkert
|
e8530eaca5
|
improve lowlevel unwrapping
|
2022-07-08 22:13:13 +02:00 |
|
Folkert
|
972d652d5d
|
Merge remote-tracking branch 'origin/trunk' into list-unsafe-append
|
2022-07-08 13:57:09 +02:00 |
|
Ayaz
|
856b38a958
|
Merge pull request #3319 from rtfeldman/remove-old-expect-logic
remove old expect logic
|
2022-07-07 21:21:36 -05:00 |
|
Folkert
|
56c9787e8f
|
List.appendUnsafe and List.reserve
|
2022-07-07 22:40:28 +02:00 |
|
Folkert
|
c5ac4a2984
|
fix reallocation setting both length and capacity
|
2022-07-06 23:56:04 +02:00 |
|
Folkert
|
36b42fb62b
|
use existing capacity in Str.concat if possible
|
2022-07-06 17:59:48 +02:00 |
|
Folkert
|
f05274faef
|
Merge remote-tracking branch 'origin/trunk' into remove-old-expect-logic
|
2022-07-06 13:03:41 +02:00 |
|
Folkert
|
52605fcca9
|
simplify string splitting LLVM codegen
|
2022-07-06 01:12:03 +02:00 |
|
Folkert de Vries
|
93dbda9ac5
|
Merge pull request #3399 from rtfeldman/pure-roc-map-with-index
Pure Roc `List.mapWithIndex`
|
2022-07-06 00:25:46 +02:00 |
|
Folkert
|
6d7c329698
|
Str.walkScalars
|
2022-07-04 18:01:19 +02:00 |
|
Folkert
|
1de9270ecf
|
Merge remote-tracking branch 'origin/trunk' into str-walk
|
2022-07-04 16:30:07 +02:00 |
|
Folkert
|
9c41a4d442
|
str.appendScalar
|
2022-07-04 16:27:04 +02:00 |
|
Brian Carroll
|
40231535fa
|
builtins: Delete Zig implementation of List.mapWithIndex
|
2022-07-04 15:14:32 +01:00 |
|
Folkert
|
ab721dd3c1
|
Str.reserve
|
2022-07-04 14:57:20 +02:00 |
|
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 |
|