1 | static S afterLastSlash(S s) { |
2 | if (s == null) null; |
3 | int i = s.lastIndexOf('/'); |
4 | ret i < 0 ? s : substring(s, i+1); |
5 | } |
Began life as a copy of #1007058
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009894 |
Snippet name: | afterLastSlash |
Eternal ID of this version: | #1009894/1 |
Text MD5: | f803b042cd36ce5e2b8ab4faf46f48f2 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-23 22:46:21 |
Source code size: | 126 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 486 / 557 |
Referenced in: | [show references] |