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

10
LINES

< > BotCompany Repo | #1027677 // dm_changeAllInstancesOfLibID

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2733L/17K).

1  
// returns list of changed modules
2  
static LS dm_changeAllInstancesOfLibID(S oldLibID, S newLibID) {
3  
  if (eq(oldLibID, newLibID)) ret emptyList();
4  
  LS l = splitAtSlash(newLibID);
5  
  if (l(l) != 2) fail("Not a valid lib ID: " + quote(newLibID));
6  
  LS list = dm_modulesWithLibID(oldLibID);
7  
  for (S mod : list)
8  
    dm_changeModuleLibID(mod, newLibID);
9  
  ret list;
10  
}

Author comment

Began life as a copy of #1027651

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027677
Snippet name: dm_changeAllInstancesOfLibID
Eternal ID of this version: #1027677/3
Text MD5: 472d95d9985f6988ae769c65ef0fb043
Transpilation MD5: ee286aa3b9e20e7acfdd66c71f4a5d98
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-30 00:57:14
Source code size: 372 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 164 / 238
Version history: 2 change(s)
Referenced in: [show references]