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  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, 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: 228 / 337
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028605 - replaceCurlyBracedWith