1  | sS substringWithEllipsis(S s, int x, int y) {
 | 
2  | S sub = substring(s, x, y);  | 
3  | if (x > 0) sub = "..." + sub;  | 
4  | if (y < l(s)) sub += "...";  | 
5  | ret sub;  | 
6  | }  | 
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: | 345 / 409 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |