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

17
LINES

< > BotCompany Repo | #1008850 // trimSubstring - trim of substring

JavaX fragment (include)

1  
static S trimSubstring(S s, int x) {
2  
  ret trim(substring(s, x));
3  
}
4  
5  
static S trimSubstring(S s, int x, int y) {
6  
  ret trim(substring(s, x, y));
7  
}
8  
9  
ifclass IntRange
10  
static S trimSubstring(S s, IntRange r) {
11  
  ret trim(substring(s, r));
12  
}
13  
endif
14  
15  
static S trimSubstring(int x, S s) {
16  
  ret trimSubstring(s, x);
17  
}

Author comment

Began life as a copy of #1002637

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1008850
Snippet name: trimSubstring - trim of substring
Eternal ID of this version: #1008850/4
Text MD5: 581f06a6ada22c92e7fc94237b1ebe9d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-12-16 23:36:52
Source code size: 322 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 398 / 468
Version history: 3 change(s)
Referenced in: [show references]