Libraryless. Click here for Pure Java version (2325L/15K).
1 | sS tok_dropModifiers(S s) { |
2 | ret join(tok_dropModifiers(javaTok(s))); |
3 | } |
4 | |
5 | static LS tok_dropModifiers(LS tok) { |
6 | L<S> mod = getJavaModifiers(); |
7 | for (int i = 1; i < l(tok); i += 2) |
8 | if (mod.contains(tok.get(i))) |
9 | tok.set(i, ""); |
10 | ret tok; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026717 |
Snippet name: | tok_dropModifiers |
Eternal ID of this version: | #1026717/3 |
Text MD5: | 6b3e28d0831cd435fd78a2f58b6b141e |
Transpilation MD5: | a096f1bc50148b82c5032238cbce66f7 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-19 19:52:37 |
Source code size: | 261 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 197 / 285 |
Version history: | 2 change(s) |
Referenced in: | [show references] |