Libraryless. Click here for Pure Java version (10956L/61K).
static LS tok_parseInnerArgsList(S s) { ret tok_parseInnerArgsList(javaTok(s)); } static LS tok_parseInnerArgsList(LS tok) { ret tok_parseInnerArgsList(tok, getBracketMap(tok)); } static LS tok_parseInnerArgsList(LS tok, Map<Int> bracketMap) { new LS args; int argStart = 1, i = 1; while (i < l(tok)-2) { Int j = bracketMap.get(i); if (j != null) continue with i = j+2; if (eqGetOneOf(tok, i, ",")) { if (i > argStart) args.add(trimJoinSubList(tok, argStart, i)); argStart = i+2; } i += 2; } if (i > argStart) args.add(trimJoinSubList(tok, argStart, i)); ret args; }
Began life as a copy of #1015569
download show line numbers debug dex old transpilations
Travelled to 2 computer(s): gjtlkbvenryc, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1038295 |
Snippet name: | tok_parseInnerArgsList |
Eternal ID of this version: | #1038295/3 |
Text MD5: | 550ef0c565a7433a3c334e123265b777 |
Transpilation MD5: | edf1c3b2813c929dbcd1e84d988709db |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2024-05-11 20:32:40 |
Source code size: | 640 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 108 / 137 |
Version history: | 2 change(s) |
Referenced in: | [show references] |