1 | static S tok_packageName(L<S> tok) { |
2 | int i = jfind(tok, "package"); |
3 | if (i < 0) ret ""; |
4 | i += 2; |
5 | int j = jfind(tok, i, ";"); |
6 | if (j < 0) ret ""; |
7 | ret join(codeTokensOnly(subList(tok, i-1, j))); |
8 | } |
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: | 192 / 191 |
Referenced in: | [show references] |