1 // Copyright 2013 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 import "golang.org/x/text/internal/colltab"
11 func getTable(t tableIndex) *colltab.Table {
12 return &colltab.Table{
14 Index0: mainLookup[:][blockSize*t.lookupOffset:],
15 Values0: mainValues[:][blockSize*t.valuesOffset:],
17 Values: mainValues[:],
19 ExpandElem: mainExpandElem[:],
20 ContractTries: colltab.ContractTrieSet(mainCTEntries[:]),
21 ContractElem: mainContractElem[:],
27 // tableIndex holds information for constructing a table
28 // for a certain locale based on the main table.
29 type tableIndex struct {