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

8
LINES

< > BotCompany Repo | #1031315 // tok_packageName (old version)

JavaX fragment (include)

static S tok_packageName(L<S> tok) {
  int i = jfind(tok, "package");
  if (i < 0) ret "";
  i += 2;
  int j = jfind(tok, i, ";");
  if (j < 0) ret "";
  ret join(codeTokensOnly(subList(tok, i-1, j)));
}

Author comment

Began life as a copy of #1005024

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1031315
Snippet name: tok_packageName (old version)
Eternal ID of this version: #1031315/1
Text MD5: 7dd784f6e8dc540719648114bfbb4586
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-04 22:45:50
Source code size: 210 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 189
Referenced in: [show references]