Libraryless. Click here for Pure Java version (2480L/16K).
1 | sS substringFromCharArray(char[] s, int x) { |
2 | ret substringFromCharArray(s, x, l(s)); |
3 | } |
4 | |
5 | sS substringFromCharArray(char[] s, int x, int y) { |
6 | if (s == null) null; |
7 | if (x < 0) x = 0; |
8 | if (x >= s.length) ret ""; |
9 | if (y < x) y = x; |
10 | if (y > s.length) y = s.length; |
11 | ret new S(s, x, y-x); |
12 | } |
Began life as a copy of #1002637
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: | #1029174 |
Snippet name: | substringFromCharArray |
Eternal ID of this version: | #1029174/1 |
Text MD5: | 55837c9d7c8e2ae259ce413910b0d0bf |
Transpilation MD5: | a5c2007efe55cc4f7025cd30221946c6 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-23 20:16:36 |
Source code size: | 304 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 237 / 314 |
Referenced in: | [show references] |