1 | sS charIteratorToString_max(CharacterIterator it, int max) {
|
2 | if (it == null) null; |
3 | new StringBuilder buf; |
4 | while (max-- > 0 && it.hasNext()) |
5 | buf.append(it.next()); |
6 | ret str(buf); |
7 | } |
8 | |
9 | sS charIteratorToString_max(int max, CharacterIterator it) { |
10 | ret charIteratorToString_max(it, max); |
11 | } |
Began life as a copy of #1029463
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: | #1029468 |
| Snippet name: | charIteratorToString_max |
| Eternal ID of this version: | #1029468/3 |
| Text MD5: | 8843c11f6f1d79175b43a4bc9097a2b5 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-08-13 14:46:01 |
| Source code size: | 301 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 402 / 460 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |