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

3
LINES

< > BotCompany Repo | #1036130 // escapeSpaces - escape spaces with backslashes

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

Libraryless. Click here for Pure Java version (153L/1K).

sS escapeSpaces(S s) {
  ret replace(s, " ", "\\ ");
}

download  show line numbers  debug dex  old transpilations   

Travelled to 2 computer(s): elmgxqgtpvxh, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1036130
Snippet name: escapeSpaces - escape spaces with backslashes
Eternal ID of this version: #1036130/1
Text MD5: 4e36403ce37c10a2c0d13860fbf30bc6
Transpilation MD5: 893e914a058e29de3b36378bf758f5f0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-09-26 01:58:28
Source code size: 56 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 50 / 77
Referenced in: [show references]