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

8
LINES

< > BotCompany Repo | #1022736 // tokReplace

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

Libraryless. Click here for Pure Java version (3812L/22K).

1  
svoid tokReplace(LS tok, int i, S t) {
2  
  put(tok, i, t);
3  
}
4  
5  
svoid tokReplace(LS tok, int i, int j, S s) {
6  
  clearAllTokens(tok, i+1, j);
7  
  tok.set(i, s);
8  
}

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: #1022736
Snippet name: tokReplace
Eternal ID of this version: #1022736/3
Text MD5: 9d2a2755841691958e05dcaead9dc721
Transpilation MD5: 43c8f8fd6c5f45da95aea5cd64c0b2fd
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-06 21:14:01
Source code size: 162 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 261 / 341
Version history: 2 change(s)
Referenced in: [show references]