blob: 125cc5647847eeac1ec5d2431de860cfe3b1c022 [file] [log] [blame]
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package language
import "golang.org/x/text/language/internal"
type compactID uint16
func getCoreIndex(t language.Tag) (id compactID, ok bool) {
x, ok := coreTags[language.GetCoreKey(t)]
return compactID(x), ok
}