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

12
LINES

< > BotCompany Repo | #1020412 // parseColonProperties

JavaX fragment (include)

static SS parseColonProperties(S text) {
  ret parseColonProperties(text, new LinkedHashMap);
}

static SS parseColonProperties(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;
}

Author comment

Began life as a copy of #1020409

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: #1020412
Snippet name: parseColonProperties
Eternal ID of this version: #1020412/2
Text MD5: ea28b67ff56e1a72c440c280412c2b2d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-04 01:39:39
Source code size: 306 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 293 / 329
Version history: 1 change(s)
Referenced in: [show references]