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

20
LINES

< > BotCompany Repo | #1020969 // Search for certain strings in all transpiled modules

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Libraryless. Click here for Pure Java version (15569L/110K).

!7

module SfC > DynObjectTable<S> {
  S stringToSearch = "ai1.space";
  bool caseInsensitive = true;
  
  start {
    thread {
      clear();
      LS l = dm_dynModulesOnServer_ids();
      for (S id : l) {
        S code = getServerTranspiled2(id);
        if (caseInsensitive ? cic(code, stringToSearch)
          : contains(code, stringToSearch))
          add(snippetWithTitle(id));
      }
      print("Done searching for " + quote(stringToSearch) + ", checked " + n2(l, "module") + ".");
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020969
Snippet name: Search for certain strings in all transpiled modules
Eternal ID of this version: #1020969/5
Text MD5: 2b9cc9a48a2bb5fa77412e4aefbf7b73
Transpilation MD5: 7e17d907d7ef88a466d92361bcc215a4
Author: stefan
Category:
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-15 16:16:20
Source code size: 525 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 387
Version history: 4 change(s)
Referenced in: [show references]