static ItIt<S> aggressivelyCollectLatinCharacterSequencesOfMaxLength(final int maxLength, final InputStream in) { if (in == null) ret emptyItIt(); ret iff_endOnNull(func -> S { int c; while (licensed() && (c = in.read()) >= 0) if (isLatinChar((char) c)) { new StringBuilder buf; buf.append((char) c); while (licensed() && l(buf) < maxLength && (c = in.read()) >= 0 && isLatinChar((char) c)) buf.append((char) c); ret str(buf); } null; }); }
Began life as a copy of #1019728
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020426 |
| Snippet name: | aggressivelyCollectLatinCharacterSequencesOfMaxLength |
| Eternal ID of this version: | #1020426/7 |
| Text MD5: | ad891dc3374984e44552f09a6206c632 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-12-21 17:02:33 |
| Source code size: | 537 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 563 / 608 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |