static S ocr_unescape(S s) { new StringBuilder buf; for i over s: { if (s.charAt(i) == '\\' && i+1 < l(s)) { // parse escaped character ++i; } buf.append(s.charAt(i)); } ret str(buf); }
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: | 533 / 551 |
Referenced in: | #1006353 - ocr_removeNonsenseEscapes #1006654 - Standard functions list 2 (LIVE, continuation of #761) |