Jan Van Bruggen
|
96724e73aa
|
Add empty-delimiter handling for Str.split
|
2021-12-18 00:53:17 -07:00 |
|
Brian Carroll
|
77d73f35eb
|
Merge branch 'trunk' of github.com:rtfeldman/roc into faster-str-eq
|
2021-12-17 13:47:25 +00:00 |
|
Brian Carroll
|
a481e34f31
|
Zig builtins: set small string flag on empty string
|
2021-12-16 19:04:36 +00:00 |
|
Brian Carroll
|
ad8fa483d2
|
Make Str equality faster
|
2021-12-16 11:45:54 +00:00 |
|
Brian Carroll
|
3c74acafa4
|
More precise alignCast (allow for 32-bit targets)
|
2021-12-16 11:45:54 +00:00 |
|
Brian Carroll
|
457041a314
|
Slightly optimize Str.isEmpty
|
2021-12-16 11:45:54 +00:00 |
|
Brian Carroll
|
bbf04b8752
|
Add more Zig tests for Str.eq
|
2021-12-15 11:27:13 +00:00 |
|
Theo Felippe
|
ed3ce2962c
|
removed unused const
|
2021-11-13 18:09:18 +00:00 |
|
Theo Felippe
|
8d7c252fce
|
implemented Str.trimRight
|
2021-11-13 18:02:58 +00:00 |
|
Michael Downey
|
151c92bb48
|
adding tests and changing trimLeft to pass long unique test
|
2021-11-09 18:16:32 -05:00 |
|
Michael Downey
|
9d1038cd9b
|
zig fmt'd str.zig
|
2021-11-09 14:51:07 -05:00 |
|
Michael Downey
|
e845f48247
|
fixed tests
|
2021-11-09 14:47:32 -05:00 |
|
Michael Downey
|
1bc278d962
|
initial commit of Str.trimLeft
|
2021-11-09 14:25:24 -05:00 |
|
Folkert de Vries
|
c0c2c1341c
|
Merge branch 'trunk' into fix-str-from-int
|
2021-11-07 00:00:21 +01:00 |
|
Kevin Sjöberg
|
f6d055dc62
|
Correct minor spelling mistakes
|
2021-11-06 15:29:08 +01:00 |
|
Kevin Sjöberg
|
491a480371
|
Implement Str.fromInt for any integer type
|
2021-11-06 14:55:27 +01:00 |
|
Dan Gieschen Knutson
|
02117ba512
|
Merge branch 'trunk' into str_trim
|
2021-10-27 18:01:29 -05:00 |
|
Dan Knutson
|
bf29639d87
|
deinit a string that has been trimmed to nothing
|
2021-10-27 17:58:30 -05:00 |
|
Locria Cyber
|
791c46fe0d
|
Remove deprecated zig features
|
2021-10-26 20:21:55 -04:00 |
|
Dan Knutson
|
12d35ba9f1
|
work around all test strings being static
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
bf1b597369
|
use nullable index for reverse iterator
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
6f49f355dd
|
clean up conditionals, use RocStr.init
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
1de0e5d99b
|
make test fail for missed small string conversion
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
e1b9699272
|
remove TODO tags
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
ab060a95b8
|
add TODO for incorrect unique Roc tests
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
ca48d17dbc
|
add Roc-level shared case tests
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
188de22d8d
|
explain back iterator
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
e21fa3cb0a
|
add zig test cases
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
6f7a26895a
|
handle small strings correctly
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
13fd72f3d8
|
thrashing
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
46365da73a
|
add failing tests
* SIGSEGV for non-empty strings
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
e7523ad41d
|
add Roc wiring
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
c8287032b6
|
use reverse utf8 iterator for trailing whitespace
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
8bf252a56e
|
use mutation for the unique case
|
2021-10-25 20:22:37 -05:00 |
|
Dan Knutson
|
024a902579
|
add a slow zig impl
|
2021-10-25 20:22:37 -05:00 |
|
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 |
|