(c: number, sb: StringBuilder)
| 110 | } |
| 111 | |
| 112 | private encodeChar(c: number, sb: StringBuilder) { |
| 113 | if (c >= ' '.charCodeAt(0) && c <= '?'.charCodeAt(0)) { |
| 114 | sb.append(c); |
| 115 | } else if (c >= '@'.charCodeAt(0) && c <= '^'.charCodeAt(0)) { |
| 116 | sb.append(StringUtils.getCharAt(c - 64)); |
| 117 | } else { |
| 118 | HighLevelEncoder.illegalCharacter(StringUtils.getCharAt(c)); |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | private encodeToCodewords(sb: string): string { |
| 123 | const len = sb.length; |
no test coverage detected