1 | sS dropTrailingNumberFromAngleBracketCategory(S s) { |
2 | if (!isAngleBracketed(s)) ret s; |
3 | int i = l(s)-1; |
4 | while (i > 1 && isDigit(s.charAt(i-1))) --i; |
5 | if (i == l(s)-1) ret s; |
6 | ret substring(s, 0, i) + ">"; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1017301 |
Snippet name: | dropTrailingNumberFromAngleBracketCategory |
Eternal ID of this version: | #1017301/1 |
Text MD5: | 52c75753f13667a1c0a804e56b5f267c |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-16 15:33:51 |
Source code size: | 218 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 316 / 354 |
Referenced in: | [show references] |