(input string)
| 102 | } |
| 103 | |
| 104 | func (e *Encoder) EncodeFirstToLowerSpecial(input string) ([]byte, error) { |
| 105 | // all chars in string are ASCII, so we can modify input[0] directly |
| 106 | chars := []byte(input) |
| 107 | chars[0] = chars[0] - 'A' + 'a' // chars[0] is sure to exist and is upper letter |
| 108 | return e.EncodeGeneric(chars, 5) |
| 109 | } |
| 110 | |
| 111 | func (e *Encoder) EncodeAllToLowerSpecial(input string) ([]byte, error) { |
| 112 | chars := make([]byte, len(input)+countUppers(input)) |
no test coverage detected