Commit graph

183 commits

Author SHA1 Message Date
Anton-4
eee85fa45d
moved all crates into seperate folder + related path fixes 2022-07-01 17:37:43 +02:00
Richard Feldman
4eec34becf
Update to use new square brace formatting 2022-05-22 23:15:54 -04:00
Brian Carroll
9491d5fae9
Merge branch 'trunk' into update_zig_09 2022-04-15 21:17:25 +01:00
Jared Cone
cb3ea8641c
Fixed strFromIntHelp. std.math.minInt is 0 for unsigned types, so buffer size was being set to only 1. 2022-04-13 23:20:09 -07:00
Folkert
a69bf971f0
Merge remote-tracking branch 'origin/trunk' into update_zig_09 2022-04-06 15:38:15 +02:00
Folkert
1e397e950d
changes after review 2022-04-04 19:53:33 +02:00
Folkert
d49ee97216
use a nullable pointer to store the output of strSplitInPlace 2022-03-30 17:32:24 +02:00
Folkert
74f9443a3e
Revert "some zig functions need to accept arguments by-pointer now"
This reverts commit fcb34272da.
2022-03-25 10:45:45 +01:00
Folkert
4e3644a4c6
Revert "fix zig tests"
This reverts commit 89223c4032.
2022-03-25 10:45:31 +01:00
Folkert
89223c4032
fix zig tests 2022-03-13 20:03:06 +01:00
Folkert
fcb34272da
some zig functions need to accept arguments by-pointer now
because otherwise stores to alloca's disappear. Very odd
2022-03-13 00:07:32 +01:00
Brian Carroll
4878c701ae Fix Zig builtins for 32-bit targets 2022-03-10 23:26:58 +00:00
Folkert
19c46916d9
fix zig string tests
mostly, strings that were small before are now not, so I had to increase the string lengths
2022-03-09 19:25:51 +01:00
Folkert
82dddf4c3a
add capacity field to make tests compile 2022-03-09 19:21:11 +01:00
Folkert
177529bfb6
all string tests passing 2022-02-20 13:04:12 +01:00
Folkert
1c0d092c48
fix str_to_utf8 2022-02-20 01:10:09 +01:00
Folkert
2c4d0e71a6
fix string repeat tests 2022-02-20 00:47:07 +01:00
Folkert
dea6cfbc8f
various fixes 2022-02-20 00:20:50 +01:00
Folkert
3d7254726d
WIP 2022-02-18 23:33:24 +01:00
rvcas
923c5c7c28 fix(zig): resolve v0.9 compilation issues 2021-12-23 15:33:44 -05:00
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