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

10
LINES

< > BotCompany Repo | #1023763 // wordTokReplacerRule_starVars_fromPair_plusSeparatedInOut

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4314L/26K).

static WordTokReplacer wordTokReplacerRule_starVars_fromPair_plusSeparatedInOut(PairS p) {
  if (p == null) null;
  LS lA = tok_splitAtPlus(p.a);
  LS out = tok_splitAtPlus(p.b);
  if (l(lA) == 1)
    ret wordTokReplacerRuleOnStarVars(p.a, out);
  if (l(lA) == 2)
    ret wordTokReplacerRuleWithSecondInOnStarVars(first(lA), second(lA), out);
  fail("Too many inputs: " + lA);
}

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: #1023763
Snippet name: wordTokReplacerRule_starVars_fromPair_plusSeparatedInOut
Eternal ID of this version: #1023763/6
Text MD5: af14425a828e09319e386450020e1c4c
Transpilation MD5: 1559cb35b3e26d7a7f8352b5d30fdba3
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-08 22:55:19
Source code size: 387 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 124 / 185
Version history: 5 change(s)
Referenced in: [show references]