Source File
fold.go
Belonging Package
encoding/json
package json
import (
)
const (
caseMask = ^byte(0x20) // Mask to ignore case in ASCII.
kelvin = '\u212a'
smallLongEss = '\u017f'
)
= true
}
}
if {
return equalFoldRight
}
if {
return asciiEqualFold
}
return simpleLetterEqualFold
}
, := utf8.DecodeRune()
switch {
case 's', 'S':
if != smallLongEss {
return false
}
case 'k', 'K':
if != kelvin {
return false
}
default:
return false
}
= [:]
}
if len() > 0 {
return false
}
return true
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |