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

9
LINES

< > BotCompany Repo | #1037248 // javaDropSlashStarComments

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

Libraryless. Click here for Pure Java version (10901L/61K).

1  
sS javaDropSlashStarComments(S s) {
2  
  ret join(javaDropSlashStarComments(javaTok(s)));
3  
}
4  
5  
static LS javaDropSlashStarComments(LS tok) {
6  
  for (int i = 0; i < l(tok); i += 2)
7  
    tok.set(i, tok_javaDropSlashStarCommentsFromWhitespace(tok.get(i)));
8  
  ret tok;
9  
}

Author comment

Began life as a copy of #1008627

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): mqqgnosmbjvj, wnsclhtenguj

No comments. add comment

Snippet ID: #1037248
Snippet name: javaDropSlashStarComments
Eternal ID of this version: #1037248/1
Text MD5: ce5869687c7f3045a8b7bf5f9c8418b4
Transpilation MD5: dc30c12c24360c51a3ddee8d49cc075a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-09-16 13:19:16
Source code size: 267 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 141 / 206
Referenced in: [show references]