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

9
LINES

< > BotCompany Repo | #1031542 // tok_addRandomIDCommentsAroundAllTokens

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

Libraryless. Click here for Pure Java version (3027L/18K).

1  
static LS tok_addRandomIDCommentsAroundAllTokens(LS tok) {
2  
  for (int i = 0; i < l(tok); i += 2)
3  
    tokAppend(tok, i, "/*" + aGlobalID() + "*/");
4  
  ret tok;
5  
}
6  
7  
sS tok_addRandomIDCommentsAroundAllTokens(S src) {
8  
  ret join(tok_addRandomIDCommentsAroundAllTokens(javaTok(src)));
9  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 5 computer(s): bhatertpkbcr, ekrmjmnbrukm, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031542
Snippet name: tok_addRandomIDCommentsAroundAllTokens
Eternal ID of this version: #1031542/2
Text MD5: 6e2dfcae08747c15e03d344a81c30693
Transpilation MD5: cf83d31f67289e668654b7df18ff52cb
Author: stefan
Category: javax / transpiling
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-21 16:12:54
Source code size: 287 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 218
Version history: 1 change(s)
Referenced in: [show references]