** Decoding char for LOWER_SPECIAL Encoding Algorithm */
(charValue byte)
| 134 | |
| 135 | /** Decoding char for LOWER_SPECIAL Encoding Algorithm */ |
| 136 | func (d *Decoder) decodeLowerSpecialChar(charValue byte) (val byte, err error) { |
| 137 | if charValue <= 25 { |
| 138 | val = 'a' + charValue |
| 139 | } else if charValue == 26 { |
| 140 | val = '.' |
| 141 | } else if charValue == 27 { |
| 142 | val = '_' |
| 143 | } else if charValue == 28 { |
| 144 | val = '$' |
| 145 | } else if charValue == 29 { |
| 146 | val = '|' |
| 147 | } else { |
| 148 | err = fmt.Errorf("Invalid character value for LOWER_SPECIAL: %v\n", charValue) |
| 149 | } |
| 150 | return |
| 151 | } |
| 152 | |
| 153 | /** Decoding char for LOWER_UPPER_DIGIT_SPECIAL Encoding Algorithm. */ |
| 154 | func (d *Decoder) decodeLowerUpperDigitSpecialChar(charValue byte) (val byte, err error) { |