Source File
merge.go
Belonging Package
golang.org/x/text/unicode/rangetable
package rangetable
import (
)
func ( ...*unicode.RangeTable) *unicode.RangeTable {
:= &unicode.RangeTable{}
if len() == 0 {
return
}
:= tablesIter(make([]tableIndex, len()))
for , := range {
[] = tableIndex{, 0, atEnd}
if len(.R16) > 0 {
[].next = rune(.R16[0].Lo)
}
}
if := .next16(); .Stride != 0 {
for {
:= .next16()
if .Stride == 0 {
.R16 = append(.R16, )
break
}
:= .Lo - .Hi
.Hi = .Lo
.Stride =
.Lo = .Lo + .Stride
if .Lo > .Hi {
continue
}
}
.R16 = append(.R16, )
=
}
}
for , := range {
[] = tableIndex{, 0, atEnd}
if len(.R32) > 0 {
[].next = rune(.R32[0].Lo)
}
}
if := .next32(); .Stride != 0 {
for {
:= .next32()
if .Stride == 0 {
.R32 = append(.R32, )
break
}
:= .Lo - .Hi
func ( []tableIndex) {
for := range {
for := ; > 0 && [-1].next > [].next; -- {
[], [-1] = [-1], []
}
}
}
for := range {
for := range {
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |