1 | sS gazelle_replaceFirstInOfRuleText(S ruleText, S newIn) { |
2 | PairS p = splitAtDoubleArrow_pair(ruleText); |
3 | if (p == null) null; |
4 | LS ins = tok_splitAtPlusAtBeginningOfLine(p.a); |
5 | ins.set(0, newIn); |
6 | ret gazelle_constructRuleText(ins, p.b); |
7 | } |
Began life as a copy of #1022038
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1022044 |
Snippet name: | gazelle_replaceFirstInOfRuleText |
Eternal ID of this version: | #1022044/1 |
Text MD5: | f34ac3f8d2bedc0534425ac28ff1873c |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-05 23:25:15 |
Source code size: | 250 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 304 / 298 |
Referenced in: | [show references] |