Download Jar. Libraryless. Click here for Pure Java version (5415L/31K).
1 | !7 |
2 | |
3 | sS snippetID = #1010745; |
4 | static long newTranslatorID = 759; |
5 | |
6 | p { |
7 | S text = loadSnippet(snippetID); |
8 | L<S> tok = javaTok(text); |
9 | if (jfind(tok, "!<int>") != 1) ret with print("No translator found"); |
10 | long translatorID = parseLong(tok.get(3)); |
11 | if (translatorID == newTranslatorID) ret with print("Already has translator " + newTranslatorID); |
12 | tok.set(3, str(newTranslatorID)); |
13 | editSnippetVerbose(snippetID, join(tok)); |
14 | } |
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: | #1011237 |
Snippet name: | Change translator on top of snippet |
Eternal ID of this version: | #1011237/6 |
Text MD5: | 2cc1a7cf3632caf02e055a72fd2f6404 |
Transpilation MD5: | 64f7a97b6c91705e199e224c1ef8c958 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-10-19 22:21:30 |
Source code size: | 443 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 566 / 1243 |
Version history: | 5 change(s) |
Referenced in: | [show references] |