- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MayHaveVariants (0.15 sec)
-
src/cmd/vendor/golang.org/x/text/internal/language/compact/language.go
} // IsCompact reports whether this tag is fully defined in terms of ID. func (t *Tag) IsCompact() bool { return t.full == nil } // MayHaveVariants reports whether a tag may have variants. If it returns false // it is guaranteed the tag does not have variants. func (t Tag) MayHaveVariants() bool { return t.full != nil || int(t.language) >= len(coreTags) } // MayHaveExtensions reports whether a tag may have extensions. If it returns
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 7.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/language/language.go
} // Variants returns the variants specified explicitly for this language tag. // or nil if no variant was specified. func (t Tag) Variants() []Variant { if !compact.Tag(t).MayHaveVariants() { return nil } v := []Variant{} x, str := "", t.tag().Variants() for str != "" { x, str = nextToken(str) v = append(v, Variant{x}) } return v }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 18.9K bytes - Viewed (0)