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

9
LINES

< > BotCompany Repo | #1023514 // wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used)

JavaX fragment (include)

1  
static WordTokRule wordTokReplacerRuleOnXY(S sentence, S replaced) {
2  
  ret wordTokReplacerRule(sentence, "X Y", replaced);
3  
}
4  
5  
static WordTokRule wordTokReplacerRuleOnXY(S s) {
6  
  PairS p = splitAtDoubleArrow_pair(s);
7  
  if (p == null) { print("No arrow: " + s); null; }
8  
  ret wordTokReplacerRuleOnXY(p.a, p.b);
9  
}

Author comment

Began life as a copy of #1023505

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023514
Snippet name: wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used)
Eternal ID of this version: #1023514/3
Text MD5: a72bafb6fa516bdeba8fc0fce23208b6
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-27 13:03:09
Source code size: 318 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 272 / 295
Version history: 2 change(s)
Referenced in: [show references]