(input string)
| 157 | } |
| 158 | |
| 159 | func (e *Encoder) ComputeEncoding(input string) Encoding { |
| 160 | allEncodings := []Encoding{LOWER_SPECIAL, LOWER_UPPER_DIGIT_SPECIAL, FIRST_TO_LOWER_SPECIAL, ALL_TO_LOWER_SPECIAL, UTF_8} |
| 161 | return e.ComputeEncodingWith(input, allEncodings) |
| 162 | } |
| 163 | |
| 164 | // EncodePackage encodes a package/namespace string using Java-compatible encodings. |
| 165 | // Java uses: UTF_8, ALL_TO_LOWER_SPECIAL, LOWER_UPPER_DIGIT_SPECIAL for packages. |
no test coverage detected