1 | // vars to "*" |
2 | static S upperCaseVarsToStars(S s, L<S> vars_out) { |
3 | L<S> tok = javaTok(s); |
4 | for (int i = 1; i < l(tok); i += 2) { |
5 | S t = tok.get(i); |
6 | if (startsWithUpperCase(t)) { |
7 | listAdd(vars_out, t); |
8 | tok.set(i, "*"); |
9 | } |
10 | } |
11 | ret join(tok); |
12 | } |
13 | |
14 | static S upperCaseVarsToStars(S s) { |
15 | ret upperCaseVarsToStars(s, null); |
16 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004290 |
Snippet name: | upperCaseVarsToStars |
Eternal ID of this version: | #1004290/4 |
Text MD5: | 8f63a0d6efcb2a7731f29063a90fa892 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-12-21 02:57:54 |
Source code size: | 359 bytes / 16 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 560 / 558 |
Version history: | 3 change(s) |
Referenced in: | [show references] |