Uses 11335K of libraries. Click here for Pure Java version (4342L/27K).
1 | sS lcStream_textWithBrackets(LCStreamingCompressor lc) {
|
2 | new StringBuilder buf; |
3 | lcStream_textWithBrackets_step(lc, buf, lc.chain.toList()); |
4 | ret str(buf); |
5 | } |
6 | |
7 | svoid lcStream_textWithBrackets_step(LCStreamingCompressor lc, StringBuilder buf, L<Int> chunks) {
|
8 | for (int idx : chunks) {
|
9 | LCStreamingCompressor.Chunk c = lc.chunks.get(idx); |
10 | if (c cast LCStreamingCompressor.CPair) {
|
11 | buf.append("(");
|
12 | lcStream_textWithBrackets_step(lc, buf, ll(c.i1, c.i2)); |
13 | buf.append(")");
|
14 | } else |
15 | buf.append(((LCStreamingCompressor.CPrim) c).c); |
16 | } |
17 | } |
Began life as a copy of #1028482
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: | #1029111 |
| Snippet name: | lcStream_textWithBrackets |
| Eternal ID of this version: | #1029111/6 |
| Text MD5: | 654aff68d06cc6677d5d66d77472b927 |
| Transpilation MD5: | 155bcc9aef310a41bc336f85f6de7422 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-07-19 23:30:47 |
| Source code size: | 593 bytes / 17 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 379 / 501 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |