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).

sS javaDropSlashStarComments(S s) {
  ret join(javaDropSlashStarComments(javaTok(s)));
}

static LS javaDropSlashStarComments(LS tok) {
  for (int i = 0; i < l(tok); i += 2)
    tok.set(i, tok_javaDropSlashStarCommentsFromWhitespace(tok.get(i)));
  ret tok;
}

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: 139 / 202
Referenced in: [show references]