Isaac Van Doren
|
d99c347998
|
rename Str.split
|
2024-11-15 21:12:23 -06:00 |
|
Luke Boswell
|
81f007940c
|
fix test_gen gen_str tests
|
2024-09-29 14:43:20 +10:00 |
|
Luke Boswell
|
4be6c5d4ce
|
implement Str.dropPrefix and Str.dropSuffix
|
2024-08-17 17:21:37 +10:00 |
|
Anton-4
|
c1d0c24194
|
fix expected type
Rust's u128 and Roc's U128 have different alignment. They can not be used interchangebly, that leads to segmentation faults. See also 434410692
|
2024-04-20 19:57:47 +02:00 |
|
Richard Feldman
|
37b154df4f
|
Remove Str.fromUtf8Range
Seamless slices make this obsolete!
|
2024-02-17 13:20:33 -05:00 |
|
Richard Feldman
|
5fe9c0d7a3
|
Remove obsolete wasm-specific test cfg
|
2024-02-13 12:58:42 -05:00 |
|
Richard Feldman
|
b2ce7e5fcf
|
Rearrange where usize -> u64 conversions happen
|
2024-02-13 12:50:40 -05:00 |
|
Richard Feldman
|
50ea255703
|
Fix some tests that were expecting usize over u64
|
2024-02-11 12:21:50 -05:00 |
|
Richard Feldman
|
3e27e18566
|
Merge remote-tracking branch 'origin/main' into remove-nat
|
2024-01-29 07:23:58 -05:00 |
|
Folkert
|
df3d04e92d
|
fix duplicate test that trips up llvm-wasm
|
2024-01-28 18:29:08 +01:00 |
|
Richard Feldman
|
632903bbde
|
Fix some tests
|
2024-01-26 16:00:33 -05:00 |
|
Richard Feldman
|
b48fa0698a
|
Remove scalars and graphemes from Str
|
2024-01-17 21:30:34 -05:00 |
|
Isaac Van Doren
|
886b855594
|
add Str.contains to builtins
|
2023-10-14 14:56:51 -05:00 |
|
Anton-4
|
5f878aee93
|
clippy
|
2023-09-26 15:08:30 +02:00 |
|
Hannes
|
97fa6758d0
|
Rename trimLeft to trimStart and trimRight to trimEnd
|
2023-06-19 13:17:59 +08:00 |
|
Folkert
|
dd3d0a188e
|
string is empty for dev backend
|
2023-04-23 18:16:08 +02:00 |
|
Folkert
|
fdffcc8b36
|
handle all comparison widths
|
2023-04-08 19:17:11 +02:00 |
|
Richard Feldman
|
c3c1b8d083
|
Add Str.walkUtf8
|
2023-03-29 21:23:13 -04:00 |
|
Brendan Hansknecht
|
48f17a8e2c
|
add Str.releaseExcessCapacity
|
2023-03-15 15:24:59 -07:00 |
|
Folkert
|
5b52cfe79b
|
disable str_append_scalar; it segfaults for unclear reasons
|
2023-02-18 23:18:48 +01:00 |
|
Folkert
|
03867fdc1f
|
str to num
|
2023-02-18 16:42:46 +01:00 |
|
Folkert
|
93fb1c73e6
|
str splits
|
2023-02-18 16:42:46 +01:00 |
|
Folkert
|
a3d5e7bee5
|
fully implement sign/zero extension
|
2023-02-18 16:42:46 +01:00 |
|
Folkert
|
4e38a4ce32
|
enable some utf8 conversion tests
|
2023-02-18 16:42:46 +01:00 |
|
Folkert
|
aa113f169c
|
string equality
|
2023-02-18 16:42:45 +01:00 |
|
Folkert
|
e48a604862
|
add Str.appendScalar
|
2023-02-18 16:42:43 +01:00 |
|
Folkert
|
92539fe3b0
|
Revert "implment 8bit logical operators"
This reverts commit 87c49679e1ac5bcfb710b6d432a9f503db3ee501.
|
2023-02-18 16:42:42 +01:00 |
|
Folkert
|
f6fbfa002b
|
implment 8bit logical operators
|
2023-02-18 16:42:42 +01:00 |
|
Folkert
|
4afeb1d67a
|
store big strings on the heap; enable a lot more string tests
|
2023-02-18 16:42:42 +01:00 |
|
Folkert
|
38b66765ab
|
enable more string tests
|
2023-02-18 16:42:41 +01:00 |
|
Folkert
|
6a84d6ee83
|
centralize stack movement
|
2023-02-18 16:42:41 +01:00 |
|
Folkert
|
eb48f01f63
|
Str.startsWith, str.endsWith and friends
|
2023-02-11 00:51:04 +01:00 |
|
Folkert
|
8421824e31
|
WIP
|
2023-02-10 20:19:49 +01:00 |
|
Folkert
|
f32d31341a
|
add basic functionality of Str.split
|
2023-02-10 20:19:49 +01:00 |
|
Richard Feldman
|
b5caddcb77
|
Merge pull request #4973 from roc-lang/fix-string-split
fix string split on overlapping delimiters
|
2023-01-27 19:34:07 -05:00 |
|
Folkert
|
d52c037cba
|
fix string split on overlapping delimiters
|
2023-01-27 17:35:10 +01:00 |
|
Folkert
|
a77f137a9d
|
fix bug in Str.trim
|
2023-01-26 22:52:14 +01:00 |
|
Folkert
|
acf22ebf7e
|
fix 32-bit wasm to num conversion
|
2022-12-20 16:34:24 +01:00 |
|
Ayaz Hafiz
|
a68c63f1d1
|
Correctly destructure patterns that are assigned to a thunk'd value
Closes #4309
|
2022-10-12 09:23:48 -05:00 |
|
Brendan Hansknecht
|
ac33fd3237
|
fix wasm test
|
2022-10-10 23:18:06 -07:00 |
|
Prajwal S N
|
aef15ac1e8
|
Merge branch 'main' into str-withprefix
|
2022-10-09 15:53:16 +05:30 |
|
Prajwal S N
|
d6526fa425
|
builtin(str): add withPrefix
Closes #4142
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
|
2022-10-08 12:52:10 +05:30 |
|
Prajwal S N
|
9013e4ce11
|
builtin(str): implement withCapacity
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
|
2022-10-08 00:24:46 +05:30 |
|
kilianv
|
273907319d
|
Add tests for Str.splitLast
There was only one test, which didn't cover the bug I fixed in Str.splitLast. I
added the tests to make sure the bug will be caught in the future.
|
2022-09-01 17:03:26 +02:00 |
|
kilianv
|
80c8c80082
|
Add tests to splitFirst function
Bugfix is coming up. The extra tests should capture the fix. Right now
not all tests pass.
|
2022-09-01 16:43:13 +02:00 |
|
Folkert
|
d0f1500dad
|
implement when on multiple string patterns
|
2022-07-29 12:13:21 +02:00 |
|
Folkert
|
91a11a70af
|
fix str_walk_utf8_with_index
|
2022-07-24 14:04:41 +02:00 |
|
Folkert
|
60b7f2cf94
|
additional 32-bit string layout tests
|
2022-07-24 13:38:11 +02:00 |
|
Ayaz Hafiz
|
032a8a892b
|
Use correct callconv for Str.toNum
|
2022-07-10 13:42:38 -04:00 |
|
Folkert
|
6d7c329698
|
Str.walkScalars
|
2022-07-04 18:01:19 +02:00 |
|