static L<S> javaTokNPunctuationWithBrackets_plusAsterisk(S s) { L<S> tok = javaTokWithBrackets(s); for (int i = 1; i < l(tok); i += 2) { int j = i; S t; while (j < l(tok) && l(t = tok.get(j)) == 1 && !Character.isLetterOrDigit(t.charAt(0)) && t.charAt(0) != '*') j += 2; if (j > i) // j points to next C token after mergeable stuff replaceSubList(tok, i-1, j, ll(joinSubList(tok, i-1, j))); } ret tok; }
Began life as a copy of #1021069
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025700 |
Snippet name: | javaTokNPunctuationWithBrackets_plusAsterisk |
Eternal ID of this version: | #1025700/1 |
Text MD5: | b7fe67b2340ce00ec0dd2e57237b50ff |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-10-13 23:38:47 |
Source code size: | 473 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 227 / 263 |
Referenced in: | [show references] |