(name []byte)
| 119 | } |
| 120 | |
| 121 | func prefix2(name []byte) uint16 { |
| 122 | if len(name) == 0 { |
| 123 | return 0 |
| 124 | } |
| 125 | hi := uint16(toLowerASCII(name[0])) << 8 |
| 126 | if len(name) < 2 { |
| 127 | return hi |
| 128 | } |
| 129 | return hi | uint16(toLowerASCII(name[1])) |
| 130 | } |
| 131 | |
| 132 | // scoreParams controls the weights for each scoring signal. |
| 133 | type scoreParams struct { |
no test coverage detected