1 | static IterableIterator<S> scanLog_iterator_allowNonQuoted(S progID, S fileName) { |
2 | ret scanLog_iterator_allowNonQuoted(getProgramFile(progID, fileName)); |
3 | } |
4 | |
5 | static IterableIterator<S> scanLog_iterator_allowNonQuoted(S fileName) { |
6 | ret scanLog_iterator_allowNonQuoted(getProgramFile(fileName)); |
7 | } |
8 | |
9 | static IterableIterator<S> scanLog_iterator(File file) { |
10 | // TODO: opens all at once |
11 | final Iterator<S> it = chainIterators(map linesFromFile( |
12 | concatLists(earlierPartsOfLogFile(file), ll(file)))); |
13 | ret iteratorFromFunction(func -> S { |
14 | while (it.hasNext()) { |
15 | S s = it.next(); |
16 | if (isProperlyQuoted(s)) |
17 | ret unquote(s); |
18 | else if (nempty(s)) |
19 | ret s; |
20 | } |
21 | null; |
22 | }); |
23 | } |
Began life as a copy of #1011458
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: | #1011918 |
Snippet name: | scanLog_iterator_allowNonQuoted |
Eternal ID of this version: | #1011918/1 |
Text MD5: | 5a47aa8fdab835e00c39c58923f9f773 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-11-10 02:17:32 |
Source code size: | 733 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 398 / 444 |
Referenced in: | [show references] |