1 | sclass CharRange {
|
2 | char start, end; |
3 | |
4 | *() {}
|
5 | *(char *start, char *end) {}
|
6 | *(CharRange r) { start = r.start; end = r.end; }
|
7 | |
8 | [stdEq] |
9 | |
10 | final int length() { ret end-start+1; }
|
11 | |
12 | sS _fieldOrder = "start end"; |
13 | |
14 | toString { ret "[" + start + ";" + end + "]"; }
|
15 | } |
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: | 431 / 670 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |