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

16
LINES

< > BotCompany Repo | #1015225 // aggressivelyCollectPossibleMD5s

JavaX fragment (include)

static Set<S> aggressivelyCollectPossibleMD5s(S s) {
  new HashSet<S> ids;
  aggressivelyCollectPossibleMD5s(s, ids);
  ret ids;
}

static void aggressivelyCollectPossibleMD5s(S s, Set<S> out) {
  if (s == null) ret;
  for i over s: {
    int j = i;
    while (j < l(s) && isLowerHexChar(s.charAt(j))) ++j;
    if (j-i == 32)
      addIfPossibleMD5(out, substring(s, i, j));
    i = j;
  }
}

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: 434 / 477
Version history: 4 change(s)
Referenced in: [show references]