1 | // returns: (properties, first line not parsed) |
2 | static Pair<SS, Int> ctxParseProperties(L<S> lines, int lineIndex) { |
3 | SS properties = litorderedmap(); |
4 | int i; |
5 | for (i = lineIndex; i < l(lines); i++) { |
6 | L<S> tok2 = javaTok(lines.get(i)); |
7 | if (l(tok2) == 1) continue; |
8 | if (eqGet(tok2, 1, "[") && eqGet(tok2, 5, "]") |
9 | && eqGet(tok2, 7, "=")) |
10 | properties.put(tok2.get(3), unquoteCtx(trim(join(subList(tok2, 9))))); |
11 | else break; |
12 | } |
13 | ret pair(properties, i); |
14 | } |
Began life as a copy of #1008881
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: | #1008925 |
Snippet name: | ctxParseProperties |
Eternal ID of this version: | #1008925/4 |
Text MD5: | 72de7173b8d67b633c71ab8c1eb57bb6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-06-18 20:11:20 |
Source code size: | 494 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 429 / 495 |
Version history: | 3 change(s) |
Referenced in: | [show references] |