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

12
LINES

< > BotCompany Repo | #1007698 // aggressivelyCollectPossibleGlobalIDs

JavaX fragment (include)

1  
static Set<S> aggressivelyCollectPossibleGlobalIDs(S s) {
2  
  new LinkedHashSet<S> ids;
3  
  if (s == null) ret ids;
4  
  for i over s: {
5  
    int j = i;
6  
    while (j < l(s) && Character.isLowerCase(s.charAt(j))) ++j;
7  
    if (j-i == 16)
8  
      ids.add(substring(s, i, j));
9  
    i = j;
10  
  }
11  
  ret ids;
12  
}

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: 618 / 599
Version history: 6 change(s)
Referenced in: [show references]