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

13
LINES

< > BotCompany Repo | #1008393 // tok_splitAtComma_unquote

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

Libraryless. Click here for Pure Java version (10931L/60K).

static LS tok_splitAtComma_unquote(S s) {
  ret tok_splitAtComma_unquote(javaTok(s));
}
  
static LS tok_splitAtComma_unquote(LS tok) {
  new LS out;
  for i over tok: {
    int j = smartIndexOf(tok, ",", i);
    out.add(unquote(trimJoinSubList(tok, i, j)));
    i = j;
  }
  ret out;
}

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: #1008393
Snippet name: tok_splitAtComma_unquote
Eternal ID of this version: #1008393/5
Text MD5: ce44484791b7d130ed0dd3f7f543f819
Transpilation MD5: f266d04c6ecd61824c94203a5c439cbf
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2023-11-14 18:49:35
Source code size: 298 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 493 / 559
Version history: 4 change(s)
Referenced in: [show references]