(digit int32)
| 194 | } |
| 195 | |
| 196 | func encodeDigit(digit int32) byte { |
| 197 | switch { |
| 198 | case 0 <= digit && digit < 26: |
| 199 | return byte(digit + 'a') |
| 200 | case 26 <= digit && digit < 36: |
| 201 | return byte(digit + ('0' - 26)) |
| 202 | } |
| 203 | panic("idna: internal error in punycode encoding") |
| 204 | } |
| 205 | |
| 206 | // adapt is the bias adaptation function specified in section 6.1. |
| 207 | func adapt(delta, numPoints int32, firstTime bool) int32 { |
no outgoing calls
no test coverage detected
searching dependent graphs…