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

9
LINES

< > BotCompany Repo | #1021242 // parseColonPropertyPairs

JavaX fragment (include)

static LPair<S> parseColonPropertyPairs(S text) {
  new LPair<S> l;
  for (S s : tlft(text)) {
    int i = indexOf(s, ':');
    if (i > 0)
      addPair(l, trimSubstring(s, 0, i), trimSubstring(s, i+1));
  }
  ret l;
}

Author comment

Began life as a copy of #1020412

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021242
Snippet name: parseColonPropertyPairs
Eternal ID of this version: #1021242/1
Text MD5: 9475c7afd6f0e2f5dfd890fc48a3f038
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-04 02:17:19
Source code size: 226 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 322 / 371
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1025544 - parseColonProperty
#1027385 - parseColonPropertyCIMultiMap
#1027411 - parseColonPropertyPairs_honorBrackets