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

8
LINES

< > BotCompany Repo | #1022056 // gazelle_copyRuleWithNewFirstIn

JavaX fragment (include)

1  
sS gazelle_copyRuleWithNewFirstIn(S ruleID, S newFirstIn) {
2  
  PairS p = dm_textAndCommentOfRule(ruleID);
3  
  if (p == null) null;
4  
  S newText = gazelle_replaceFirstInOfRuleText(p.a, newFirstIn);
5  
  if (newText == null) null;
6  
  gazelle_addRuleWithComment(newText, p.b);
7  
  ret dm_gazelle_addRuleWithComment_msg!;
8  
}

Author comment

Began life as a copy of #1022045

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: #1022056
Snippet name: gazelle_copyRuleWithNewFirstIn
Eternal ID of this version: #1022056/3
Text MD5: f06e5c25193c4d7361c929cb61f788b6
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-06 08:08:50
Source code size: 316 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 236 / 263
Version history: 2 change(s)
Referenced in: [show references]