1 | static PairS splitAtLastSlash(S s) { |
2 | int i = lastIndexOf(s, '/'); |
3 | ret i < 0 ? null : pair(substring(s, 0, i), substring(s, i+1)); |
4 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021064 |
Snippet name: | splitAtLastSlash |
Eternal ID of this version: | #1021064/1 |
Text MD5: | 91abd1c9fff14bec82da6aee948eb947 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-01-20 14:40:17 |
Source code size: | 138 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 293 / 319 |
Referenced in: | [show references] |