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

11
LINES

< > BotCompany Repo | #1003802 // detectInterestingLines

JavaX fragment (include)

1  
sS detectInterestingLines_suffix = "<< detect";
2  
3  
static BitSet detectInterestingLines(L<S> log) {
4  
  new BitSet bs;
5  
  for (int i = 0; i < l(log); i++)
6  
    if (endsWith(log.get(i), detectInterestingLines_suffix)) {
7  
      bs.set(i);
8  
      log.set(i, dropSuffixAndTrim(detectInterestingLines_suffix, log.get(i)));
9  
    }
10  
  ret bs;
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1003802
Snippet name: detectInterestingLines
Eternal ID of this version: #1003802/1
Text MD5: 15e0e2644c3a4b0e9ca34aef3275b02b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 18:03:37
Source code size: 339 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 516 / 562
Referenced in: [show references]