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

6
LINES

< > BotCompany Repo | #1028476 // substringWithEllipsis

JavaX fragment (include)

sS substringWithEllipsis(S s, int x, int y) {
  S sub = substring(s, x, y);
  if (x > 0) sub = "..." + sub;
  if (y < l(s)) sub += "...";
  ret sub;
}

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: #1028476
Snippet name: substringWithEllipsis
Eternal ID of this version: #1028476/2
Text MD5: 9aa5dcc4a76833a75e7bd18b5ee4468f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-06-21 00:20:45
Source code size: 155 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 151 / 206
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)