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).

1  
!7
2  
3  
module SfC > DynObjectTable<S> {
4  
  S stringToSearch = "ai1.space";
5  
  bool caseInsensitive = true;
6  
  
7  
  start {
8  
    thread {
9  
      clear();
10  
      LS l = dm_dynModulesOnServer_ids();
11  
      for (S id : l) {
12  
        S code = getServerTranspiled2(id);
13  
        if (caseInsensitive ? cic(code, stringToSearch)
14  
          : contains(code, stringToSearch))
15  
          add(snippetWithTitle(id));
16  
      }
17  
      print("Done searching for " + quote(stringToSearch) + ", checked " + n2(l, "module") + ".");
18  
    }
19  
  }
20  
}

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