...
1
2
3
4
5
6
7
8 package search
9
10 import "golang.org/x/text/internal/colltab"
11
12 const blockSize = 64
13
14 func getTable(t tableIndex) *colltab.Table {
15 return &colltab.Table{
16 Index: colltab.Trie{
17 Index0: mainLookup[:][blockSize*t.lookupOffset:],
18 Values0: mainValues[:][blockSize*t.valuesOffset:],
19 Index: mainLookup[:],
20 Values: mainValues[:],
21 },
22 ExpandElem: mainExpandElem[:],
23 ContractTries: colltab.ContractTrieSet(mainCTEntries[:]),
24 ContractElem: mainContractElem[:],
25 MaxContractLen: 18,
26 VariableTop: varTop,
27 }
28 }
29
30
31
32 type tableIndex struct {
33 lookupOffset uint32
34 valuesOffset uint32
35 }
36
View as plain text