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

10
LINES

< > BotCompany Repo | #1027369 // parseEqualsCommaProperties

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

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

// e.g. [[bla=1, blubb="blu"]]
static SS parseEqualsCommaProperties(S s) {
  SS map = litorderedmap();
  for (S t : tok_splitAtComma(s)) {
    PairS p = tok_splitAtEquals_pair(t);
    if (p != null)
      map.put(p.a, p.b);
  }
  ret map;
}

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: #1027369
Snippet name: parseEqualsCommaProperties
Eternal ID of this version: #1027369/1
Text MD5: a552a6d7389f68b5723f041d2737c6fb
Transpilation MD5: 941cdde3a6fa6603613ded36a95c3a7e
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-15 15:08:05
Source code size: 249 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 273
Referenced in: [show references]