From 6e2cb00008cbf09e556b00f87603797fcaa47e09 Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Mon, 16 Apr 2018 05:37:14 -0700 Subject: Depenancy upgrades and movign to dep. (#8630) --- vendor/golang.org/x/text/unicode/runenames/bits.go | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 vendor/golang.org/x/text/unicode/runenames/bits.go (limited to 'vendor/golang.org/x/text/unicode/runenames/bits.go') diff --git a/vendor/golang.org/x/text/unicode/runenames/bits.go b/vendor/golang.org/x/text/unicode/runenames/bits.go deleted file mode 100644 index 48cc2c05c..000000000 --- a/vendor/golang.org/x/text/unicode/runenames/bits.go +++ /dev/null @@ -1,59 +0,0 @@ -// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. - -package runenames - -// This file contains code common to gen.go and the package code. - -// The mapping from rune to string (i.e. offset and length in the data string) -// is encoded as a two level table. The first level maps from contiguous rune -// ranges [runeOffset, runeOffset+runeLength) to entries. Entries are either -// direct (for repeated names such as "") or indirect (for runs -// of unique names such as "SPACE", "EXCLAMATION MARK", "QUOTATION MARK", ...). -// -// Each first level table element is 64 bits. The runeOffset (21 bits) and -// runeLength (16 bits) take the 37 high bits. The entry takes the 27 low bits, -// with directness encoded in the least significant bit. -// -// A direct entry encodes a dataOffset (18 bits) and dataLength (8 bits) in the -// data string. 18 bits is too short to encode the entire data string's length, -// but the data string's contents are arranged so that all of the few direct -// entries' offsets come before all of the many indirect entries' offsets. -// -// An indirect entry encodes a dataBase (10 bits) and a table1Offset (16 bits). -// The table1Offset is the start of a range in the second level table. The -// length of that range is the same as the runeLength. -// -// Each second level table element is 16 bits, an index into data, relative to -// a bias equal to (dataBase << dataBaseUnit). That (bias + index) is the -// (dataOffset + dataLength) in the data string. The dataOffset is implied by -// the previous table element (with the same implicit bias). - -const ( - bitsRuneOffset = 21 - bitsRuneLength = 16 - bitsDataOffset = 18 - bitsDataLength = 8 - bitsDirect = 1 - - bitsDataBase = 10 - bitsTable1Offset = 16 - - shiftRuneOffset = 0 + bitsDirect + bitsDataLength + bitsDataOffset + bitsRuneLength - shiftRuneLength = 0 + bitsDirect + bitsDataLength + bitsDataOffset - shiftDataOffset = 0 + bitsDirect + bitsDataLength - shiftDataLength = 0 + bitsDirect - shiftDirect = 0 - - shiftDataBase = 0 + bitsDirect + bitsTable1Offset - shiftTable1Offset = 0 + bitsDirect - - maskRuneLength = 1<