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

9
LINES

< > BotCompany Repo | #1008627 // javaDropAllComments

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

Libraryless. Click here for Pure Java version (1831L/12K).

static S javaDropAllComments(S s) {
  ret join(javaDropAllComments(javaTok(s)));
}

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

Author comment

Began life as a copy of #1003337

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008627
Snippet name: javaDropAllComments
Eternal ID of this version: #1008627/2
Text MD5: 0b112f98f56ec115cd970327c714defc
Transpilation MD5: 1c6efd458f949683069cb69f2e505c65
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-31 01:23:23
Source code size: 246 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 612
Version history: 1 change(s)
Referenced in: [show references]