1 | static L<S> javaTokNPunctuationWithBrackets_plusAsterisk(S s) { |
2 | L<S> tok = javaTokWithBrackets(s); |
3 | for (int i = 1; i < l(tok); i += 2) { |
4 | int j = i; |
5 | S t; |
6 | while (j < l(tok) && l(t = tok.get(j)) == 1 |
7 | && !Character.isLetterOrDigit(t.charAt(0)) |
8 | && t.charAt(0) != '*') |
9 | j += 2; |
10 | if (j > i) |
11 | // j points to next C token after mergeable stuff |
12 | replaceSubList(tok, i-1, j, ll(joinSubList(tok, i-1, j))); |
13 | } |
14 | ret tok; |
15 | } |
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: | 228 / 264 |
Referenced in: | [show references] |