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

12
LINES

< > BotCompany Repo | #1020409 // parseEqualsProperties

JavaX fragment (include)

1  
static SS parseEqualsProperties(S text) {
2  
  ret parseEqualsProperties(text, new HashMap);
3  
}
4  
5  
static SS parseEqualsProperties(S text, SS map) {
6  
  for (S s : tlft(text)) {
7  
    int i = indexOf(s, '=');
8  
    if (i > 0)
9  
      map.put(trimSubstring(s, 0, i), trimSubstring(s, i+1));
10  
  }
11  
  ret map;
12  
}

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: #1020409
Snippet name: parseEqualsProperties
Eternal ID of this version: #1020409/3
Text MD5: 933b3f77962154f1ccdfad1e2f5bbaa6
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-19 18:10:20
Source code size: 303 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 274 / 316
Version history: 2 change(s)
Referenced in: [show references]