-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: native implementation of std.splitLimitR (#163)
* native implementation of std.splitLimitR * style: fix formatting --------- Co-authored-by: Yaroslav Bolyukin <[email protected]>
- Loading branch information
1 parent
c5b983e
commit f319c35
Showing
5 changed files
with
47 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
local str = 'ab::cd::ef'; | ||
{ | ||
split: std.split(str, '::'), | ||
splitlimit: std.splitLimit(str, '::', 1), | ||
splitlimitRNoLimit: std.splitLimit(str, '::', -1), | ||
splitlimitR: std.splitLimitR(str, '::', 1), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"split": [ | ||
"ab", | ||
"cd", | ||
"ef" | ||
], | ||
"splitlimit": [ | ||
"ab", | ||
"cd::ef" | ||
], | ||
"splitlimitR": [ | ||
"ab::cd", | ||
"ef" | ||
], | ||
"splitlimitRNoLimit": [ | ||
"ab", | ||
"cd", | ||
"ef" | ||
] | ||
} |