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

12
LINES

< > BotCompany Repo | #1008364 // parseText2Tag

JavaX fragment (include)

1  
static SS parseText2Tag(S snippetID) {
2  
  SS map = new LinkedHashMap;
3  
  for (S s : toLinesFullTrim(loadSnippet(snippetID))) {
4  
    L<S> tok = javaTok(s);
5  
    S text = get(tok, 1);
6  
    if (isQuoted(text)) {
7  
      S tag = trimDropPrefixTrim(",", join(dropFirst(tok, 2)));
8  
      map.put(unquote(text), tag);
9  
    }
10  
  }
11  
  ret map;
12  
}

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: #1008364
Snippet name: parseText2Tag
Eternal ID of this version: #1008364/2
Text MD5: 5aa37beb32cb5338ce896fdf14577386
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-09 21:08:48
Source code size: 336 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 566 / 566
Version history: 1 change(s)
Referenced in: [show references]