Libraryless. Click here for Pure Java version (2499L/16K).
1 | sS readLineIgnoreCR(Reader reader, StringBuilder buf default null) ctex { |
2 | int ch; |
3 | if (buf == null) buf = new StringBuilder; else buf.setLength(0); |
4 | while ((ch = reader.read()) >= 0) { |
5 | if (ch == '\n') break; |
6 | buf.append((char) ch); |
7 | } |
8 | ret str(buf); |
9 | } |
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: | #1028790 |
Snippet name: | readLineIgnoreCR |
Eternal ID of this version: | #1028790/3 |
Text MD5: | 6e6176d5bdc6dabf63e0aba4307d7598 |
Transpilation MD5: | ea1639e4288854724fb5427682cafa94 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-08-06 14:42:06 |
Source code size: | 272 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 219 / 327 |
Version history: | 2 change(s) |
Referenced in: | [show references] |