(b byte)
| 171 | const upperhex = "0123456789ABCDEF" |
| 172 | |
| 173 | func shouldEscapeForEncodeURI(b byte) bool { |
| 174 | switch { |
| 175 | case b >= 'A' && b <= 'Z': |
| 176 | return false |
| 177 | case b >= 'a' && b <= 'z': |
| 178 | return false |
| 179 | case b >= '0' && b <= '9': |
| 180 | return false |
| 181 | } |
| 182 | |
| 183 | switch b { |
| 184 | case ';', '/', '?', ':', '@', '&', '=', '+', '$', ',', '#', '-', '_', '.', '!', '~', '*', '\'', '(', ')': |
| 185 | return false |
| 186 | default: |
| 187 | return true |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | func getByteOrderMarkLength(text string) int { |
| 192 | if len(text) >= 1 { |