1 | // covers the common cases |
2 | static S getBotNameFromSnippet(S programID) ctex { |
3 | S src = loadSnippet(programID); |
4 | L<S> tok = javaTok(src); |
5 | S[] m; |
6 | for (S pat : litlist( |
7 | "new Android3(*", |
8 | "makeAndroid(*", "makeAndroid3(*", "makeSilentAndroid(*", |
9 | "addToMultiPort(*")) { |
10 | m = find2(javaTok(pat), tok); |
11 | if (m != null && isQuoted(m[0])) ret unquote(m[0]); |
12 | } |
13 | ret null; |
14 | } |
Began life as a copy of #1001395
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: | #1001762 |
Snippet name: | getBotNameFromSnippet |
Eternal ID of this version: | #1001762/1 |
Text MD5: | 5a61e7c2e88b3b89672b144bb8dd9060 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-11-13 17:46:15 |
Source code size: | 431 bytes / 14 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 686 / 2231 |
Referenced in: | [show references] |