1 | static S ocr_unescape(S s) { |
2 | new StringBuilder buf; |
3 | for i over s: { |
4 | if (s.charAt(i) == '\\' && i+1 < l(s)) { // parse escaped character |
5 | ++i; |
6 | } |
7 | buf.append(s.charAt(i)); |
8 | } |
9 | ret str(buf); |
10 | } |
Began life as a copy of #1006260
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006262 |
Snippet name: | ocr_unescape |
Eternal ID of this version: | #1006262/1 |
Text MD5: | 0b552d01188f1f2f22dd86754fafb0ce |
Author: | stefan |
Category: | javax / ocr |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-26 00:59:43 |
Source code size: | 220 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 534 / 553 |
Referenced in: | [show references] |