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

7
LINES

< > BotCompany Repo | #1032955 // tok_escapeAsterisk - * to \*

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

Libraryless. Click here for Pure Java version (4072L/23K).

static LS tok_escapeAsterisk(LS tok) {
  ret replace(tok, "*", "\\*");
}

sS tok_escapeAsterisk(S s) {
  ret join(tok_escapeAsterisk(javaTok(s));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1032955
Snippet name: tok_escapeAsterisk - * to \*
Eternal ID of this version: #1032955/2
Text MD5: 24c9987b1a04310e367eab60bf1ab6ac
Transpilation MD5: 86a2a51b31b0f7db37e86282db8363e0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-11 05:48:52
Source code size: 153 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 226
Version history: 1 change(s)
Referenced in: [show references]