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

12
LINES

< > BotCompany Repo | #1020409 // parseEqualsProperties

JavaX fragment (include)

static SS parseEqualsProperties(S text) {
  ret parseEqualsProperties(text, new HashMap);
}

static SS parseEqualsProperties(S text, SS map) {
  for (S s : tlft(text)) {
    int i = indexOf(s, '=');
    if (i > 0)
      map.put(trimSubstring(s, 0, i), trimSubstring(s, i+1));
  }
  ret map;
}

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