Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

10
LINES

< > BotCompany Repo | #1006262 // ocr_unescape

JavaX fragment (include)

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);
}

Author comment

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: 532 / 550
Referenced in: [show references]