1 | static SS ctxLoadRegexpMacros(S botID) { |
2 | new SS out; |
3 | File f = loadLibrary(botID); |
4 | L<S> names = endingWithIC("/cm.pattern", listFilesInZip(f)); |
5 | for (S name : names) { |
6 | L<S> lines = toLinesFullTrim(loadTextFileFromZip(f, name)); |
7 | for i, S s over lines: { |
8 | int idx = s.indexOf("="); |
9 | if (idx >= 0) |
10 | out.put(trimSubstring(s, 0, idx), trimSubstring(s, idx+1)); |
11 | } |
12 | } |
13 | ret out; |
14 | } |
Began life as a copy of #1008838
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: | #1008849 |
Snippet name: | ctxLoadRegexpMacros |
Eternal ID of this version: | #1008849/3 |
Text MD5: | 7a3d2e72363f6faa2988c1db33d621ad |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-12 18:54:18 |
Source code size: | 422 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 475 / 539 |
Version history: | 2 change(s) |
Referenced in: | [show references] |