1 | static ItIt<S> aggressivelyCollectLatinCharacterSequencesOfMaxLength(final int maxLength, final InputStream in) { |
2 | if (in == null) ret emptyItIt(); |
3 | ret iff_endOnNull(func -> S { |
4 | int c; |
5 | while (licensed() && (c = in.read()) >= 0) |
6 | if (isLatinChar((char) c)) { |
7 | new StringBuilder buf; |
8 | buf.append((char) c); |
9 | while (licensed() && l(buf) < maxLength && (c = in.read()) >= 0 |
10 | && isLatinChar((char) c)) |
11 | buf.append((char) c); |
12 | ret str(buf); |
13 | } |
14 | null; |
15 | }); |
16 | } |
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: | 328 / 362 |
Version history: | 6 change(s) |
Referenced in: | [show references] |