sclass CharRange { char start, end; *() {} *(char *start, char *end) {} *(CharRange r) { start = r.start; end = r.end; } [stdEq] final int length() { ret end-start+1; } sS _fieldOrder = "start end"; toString { ret "[" + start + ";" + end + "]"; } }
Began life as a copy of #1008631
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: | #1029555 |
Snippet name: | class CharRange - range of chars (start/end, usually inclusive) |
Eternal ID of this version: | #1029555/4 |
Text MD5: | 4810d2f71e20cc845318056953c5ee7e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-23 11:45:25 |
Source code size: | 291 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 205 / 438 |
Version history: | 3 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |