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

7
LINES

< > BotCompany Repo | #1008954 - tok_singleQuoteIdentifiersToStringConstants

JavaX fragment (include)

static void tok_singleQuoteIdentifiersToStringConstants(L<S> tok) {
  for (int i = 1; i < l(tok); i += 2) {
    S t = tok.get(i);
    if (isSingleQuoteIdentifier(t))
      tok.set(i, quote(substring(t, 1)));
  }
}

download  show line numbers  debug dex   

Travelled to 9 computer(s): aoiabmzegqzx, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1008954
Snippet name: tok_singleQuoteIdentifiersToStringConstants
Eternal ID of this version: #1008954/1
Text MD5: 3c8e29e437550585d6d44e2eab206c5c
Author: stefan
Category: javax / parsing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-06-20 01:03:46
Source code size: 219 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 242 / 270
Referenced in: [show references]

Formerly at http://tinybrain.de/1008954 & http://1008954.tinybrain.de