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

17
LINES

< > BotCompany Repo | #1021951 - javaTokForJFind_array - code tokens as array

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

Libraryless. Click here for Pure Java version (2666L/17K).

scope javaTokForJFind_array.

ifdef javaTokForJFind_array_simpleCache
  static HashMap<S, S[]> #cache = new HashMap;
endifdef
ifndef javaTokForJFind_array_simpleCache
  static Map<S, S[]> #cache = synchronizedMRUCache(1000);
endifndef

static S[] javaTokForJFind_array(S s) {
  S[] tok = cache.get(s);
  if (tok == null)
    cache.put(s, tok = codeTokensAsStringArray(jfind_preprocess(javaTok(s)));
  ret tok;
}

end scope

Author comment

Began life as a copy of #1021948

download  show line numbers  debug dex   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1021951
Snippet name: javaTokForJFind_array - code tokens as array
Eternal ID of this version: #1021951/2
Text MD5: abd82189dd3d86838d28cbf1554ec651
Transpilation MD5: d90ba1bdd64967e30e894f476c09ff8a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-08 01:12:54
Source code size: 438 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 92 / 118
Version history: 1 change(s)
Referenced in: [show references]

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