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

15
LINES

< > BotCompany Repo | #1021361 // javaTokNPunctuationWithBrackets - put words in C, punctuation + spacing in N, honor brackets

JavaX fragment (include)

scope javaTokNPunctuationWithBrackets.

static Map<S, LS> #cache = synchronizedMRUCache(1000);

static L<S> javaTokNPunctuationWithBrackets(S s) {
  LS tok = cache.get(s);
  if (tok == null) cache.put(s, tok = javaTokNPunctuationWithBrackets_uncached(s));
  ret tok;
}

static L<S> javaTokNPunctuationWithBrackets_uncached(S s) {
  ret tok_combineRoundOrCurlyBrackets_keep(javaTokNPunctuation_bracketsInC(s));
}

end scope

Author comment

Began life as a copy of #1017442

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1021361
Snippet name: javaTokNPunctuationWithBrackets - put words in C, punctuation + spacing in N, honor brackets
Eternal ID of this version: #1021361/7
Text MD5: 336a552cd03611391c63df584f49f98d
Author: stefan
Category: javax / tokenizing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-16 21:06:51
Source code size: 436 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 282 / 527
Version history: 6 change(s)
Referenced in: [show references]