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

7
LINES

< > BotCompany Repo | #1001378 // countBotsNamed

JavaX fragment (include)

static long countBotsNamed(S searchPattern) {
  long count = 0;
  for (ProgramScan.Program p : quickBotScan())
    if (indexOfIgnoreCase(p.helloString, searchPattern) == 0)
      ++count;
  return count;
}

Author comment

Began life as a copy of #1001303

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: #1001378
Snippet name: countBotsNamed
Eternal ID of this version: #1001378/4
Text MD5: 9b83ab8c507a7231c1fca0cfe08598f4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-03 15:08:58
Source code size: 211 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 591 / 825
Version history: 3 change(s)
Referenced in: [show references]