Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1001948 // scanLog - scan log made with logQuoted

JavaX fragment (include)

1  
static L<S> scanLog(S progID, S fileName) {
2  
  ret scanLog(getProgramFile(progID, fileName));
3  
}
4  
5  
static L<S> scanLog(S fileName) {
6  
  ret scanLog(getProgramFile(fileName));
7  
}
8  
9  
static L<S> scanLog(File file) {
10  
  new L<S> l;
11  
  for (File f : concatLists(earlierPartsOfLogFile(file), ll(file)))
12  
    for (S s : toLines(file))
13  
      if (isProperlyQuoted(s)) l.add(unquote(s));
14  
  ret l;
15  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1001948
Snippet name: scanLog - scan log made with logQuoted
Eternal ID of this version: #1001948/3
Text MD5: c6b518d63a829b69e082db28c910d99f
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-01 01:47:41
Source code size: 393 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 678 / 2298
Version history: 2 change(s)
Referenced in: [show references]