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

12
LINES

< > BotCompany Repo | #1007698 // aggressivelyCollectPossibleGlobalIDs

JavaX fragment (include)

static Set<S> aggressivelyCollectPossibleGlobalIDs(S s) {
  new LinkedHashSet<S> ids;
  if (s == null) ret ids;
  for i over s: {
    int j = i;
    while (j < l(s) && Character.isLowerCase(s.charAt(j))) ++j;
    if (j-i == 16)
      ids.add(substring(s, i, j));
    i = j;
  }
  ret ids;
}

Author comment

Began life as a copy of #1007442

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: #1007698
Snippet name: aggressivelyCollectPossibleGlobalIDs
Eternal ID of this version: #1007698/7
Text MD5: aa624fa5a6fabe9b358c7d14278fb8f8
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-02 17:19:40
Source code size: 301 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 617 / 598
Version history: 6 change(s)
Referenced in: [show references]