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

16
LINES

< > BotCompany Repo | #1015225 // aggressivelyCollectPossibleMD5s

JavaX fragment (include)

1  
static Set<S> aggressivelyCollectPossibleMD5s(S s) {
2  
  new HashSet<S> ids;
3  
  aggressivelyCollectPossibleMD5s(s, ids);
4  
  ret ids;
5  
}
6  
7  
static void aggressivelyCollectPossibleMD5s(S s, Set<S> out) {
8  
  if (s == null) ret;
9  
  for i over s: {
10  
    int j = i;
11  
    while (j < l(s) && isLowerHexChar(s.charAt(j))) ++j;
12  
    if (j-i == 32)
13  
      addIfPossibleMD5(out, substring(s, i, j));
14  
    i = j;
15  
  }
16  
}

Author comment

Began life as a copy of #1007698

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: #1015225
Snippet name: aggressivelyCollectPossibleMD5s
Eternal ID of this version: #1015225/5
Text MD5: b6a71fba1d262c4384333bbcd18f47ca
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-10 21:47:54
Source code size: 406 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 436 / 480
Version history: 4 change(s)
Referenced in: [show references]