Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1024245 // pairFromUglyString - see pairToUglyStringForCIComparison

JavaX fragment (include)

static PairS pairFromUglyString(S s) {
  if (empty(s)) null;
  int i = indexOf(s, '|');
  int lA = parseInt(takeFirst(s, i));
  ret pair(substring(s, i+1, i+1+lA), substring(s, i+1+lA+1));
}

Author comment

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: 195 / 241
Referenced in: [show references]