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

8
LINES

< > BotCompany Repo | #1015984 // parseEqualParameters - tolerant parser e.g. for output of renderConcept

JavaX fragment (include)

1  
static SS parseEqualParameters(S s) {
2  
  new SS map;
3  
  L<S> tok = javaTokC(s);
4  
  for (int i = 0; i+2 < l(tok); i++)
5  
    if (eqGet(tok, i+1, "="))
6  
      map.put(unquote(tok.get(i)), unquote(tok.get(i += 2)));
7  
  ret map;
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015984
Snippet name: parseEqualParameters - tolerant parser e.g. for output of renderConcept
Eternal ID of this version: #1015984/2
Text MD5: fccabb6885c27ce99edc43c62107e5c3
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-02 17:56:36
Source code size: 226 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 468 / 448
Version history: 1 change(s)
Referenced in: [show references]