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

7
LINES

< > BotCompany Repo | #1028371 - replaceCurlyBracedWithStars

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

Libraryless. Click here for Pure Java version (2849L/18K).

sS replaceCurlyBracedWithStars(S s) {
  ret join(replaceCurlyBracedWithStars(javaTokWithAllBrackets_cached(s)));
}

static LS replaceCurlyBracedWithStars(LS tok) {
  ret mapCodeTokens(t -> isCurlyBraced_simple(t) ? "*" : t, tok);
}

download  show line numbers  debug dex   

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

No comments. add comment

Snippet ID: #1028371
Snippet name: replaceCurlyBracedWithStars
Eternal ID of this version: #1028371/2
Text MD5: be874d715beb42e6c1e9dfcfb2c6e9d9
Transpilation MD5: 3beb339b5f9ed286457446d0e6ec3f8a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-14 16:52:02
Source code size: 237 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 18 / 42
Version history: 1 change(s)
Referenced in: [show references]

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