1 | static PairS pairFromUglyString(S s) { |
2 | if (empty(s)) null; |
3 | int i = indexOf(s, '|'); |
4 | int lA = parseInt(takeFirst(s, i)); |
5 | ret pair(substring(s, i+1, i+1+lA), substring(s, i+1+lA+1)); |
6 | } |
Began life as a copy of #1024244
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024245 |
Snippet name: | pairFromUglyString - see pairToUglyStringForCIComparison |
Eternal ID of this version: | #1024245/1 |
Text MD5: | 4167fad951558b58403c0658df226967 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-28 17:30:51 |
Source code size: | 195 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 196 / 242 |
Referenced in: | [show references] |