Source File
language.go
Belonging Package
golang.org/x/text/internal/language/compact
package compact
import (
)
func ( language.Tag) ( Tag) {
if := .TypeForKey("rg"); len() == 6 && [2:] == "zzzz" {
if , := language.ParseRegion([:2]); == nil {
:=
.SetTag(.locale.Tag())
if := .Variants(); != "" {
for , := range strings.Split(, "-") {
.AddVariant()
}
}
for , := range .Extensions() {
.AddExt()
}
return
}
:=
:= .TypeForKey("va")
= language.Tag{LangID: , ScriptID: , RegionID: }
if != "" {
, _ = .SetTypeForKey("va", )
= true
}
= ==
} else {
= false
}
for , := range specialTags {
if == {
return ID( + len(coreTags)),
}
}
= false
}
}
if , := getCoreIndex(); {
return ,
}
= false
, := .Maximize()
if , := getCoreIndex(); {
return ,
}
}
if , := getCoreIndex(); {
return ,
}
}
return 0,
}
![]() |
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. |