sbool findDollarValue_debug; static Double findDollarValue(S s) { if (s == null) null; s = s.replace("$", "$ "); L<S> tok = javaTok(s); if (findDollarValue_debug) printStruct("fdv: " + tok); int i = jfind(tok, "$<int>.<int>"); if (i >= 0) ret parseDouble(tok.get(i+2) + "." + tok.get(i+6)); i = jfind(tok, "$<int>"); if (i >= 0) ret parseDouble(tok.get(i+2)); null; }
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008371 |
Snippet name: | findDollarValue |
Eternal ID of this version: | #1008371/4 |
Text MD5: | 922a0615fbf525183194f7290562083e |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-09 23:35:57 |
Source code size: | 398 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 366 / 412 |
Version history: | 3 change(s) |
Referenced in: | [show references] |