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

9
LINES

< > BotCompany Repo | #1006261 // ocr_glyphsToCode - see: ocr_parseGlyphs

JavaX fragment (include)

static S ocr_glyphsToCode(L<S> glyphs) {
  new StringBuilder buf;
  for (S g : glyphs)
    if (l(g) > 1 && !contains("\\[{", g.charAt(0)))
      buf.append("[").append(g).append("]");
    else
      buf.append(g);
  ret str(buf);
}

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: #1006261
Snippet name: ocr_glyphsToCode - see: ocr_parseGlyphs
Eternal ID of this version: #1006261/1
Text MD5: 5b1b0262d75262a8e217e46df5d0e03b
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 01:26:32
Source code size: 239 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 471 / 456
Referenced in: [show references]