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

9
LINES

< > BotCompany Repo | #1031774 // tok_whitespaceContainsJavaComments

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

Libraryless. Click here for Pure Java version (2787L/17K).

sbool tok_whitespaceContainsJavaComments(S s) {
  int l = l(s)-1;
  for j to l:
    if (s.charAt(j) == '/') {
      char d = s.charAt(j+1);
      if (d == '*' || d == '/') true;
    }
  false;
}

Author comment

Began life as a copy of #1008628

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031774
Snippet name: tok_whitespaceContainsJavaComments
Eternal ID of this version: #1031774/4
Text MD5: 36bd2db7ad89e752b4082d0d06723e8d
Transpilation MD5: ce3b271595dd4783795135b206f49c55
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-29 14:46:43
Source code size: 202 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 85 / 148
Version history: 3 change(s)
Referenced in: [show references]