1 | static S ocr_glyphsToCode(L<S> glyphs) {
|
2 | new StringBuilder buf; |
3 | for (S g : glyphs) |
4 | if (l(g) > 1 && !contains("\\[{", g.charAt(0)))
|
5 | buf.append("[").append(g).append("]");
|
6 | else |
7 | buf.append(g); |
8 | ret str(buf); |
9 | } |
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: | 706 / 711 |
| Referenced in: | [show references] |