mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
implement startsWith builtin using Zig
This commit is contained in:
parent
b615b0127c
commit
b36c2bf499
5 changed files with 130 additions and 113 deletions
|
@ -15,6 +15,7 @@ const str = @import("str.zig");
|
|||
comptime { exportStrFn(str.strSplitInPlace, "str_split_in_place"); }
|
||||
comptime { exportStrFn(str.countSegments, "count_segments"); }
|
||||
comptime { exportStrFn(str.countGraphemeClusters, "count_grapheme_clusters"); }
|
||||
comptime { exportStrFn(str.startsWith, "starts_with"); }
|
||||
|
||||
// Export helpers - Must be run inside a comptime
|
||||
fn exportBuiltinFn(comptime fn_target: anytype, comptime fn_name: []const u8) void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue