Standard library / unicode
unicode.Range16
An inclusive code-point range with uint16 endpoints and positive stride. RangeTable.R16 must remain sorted and non-overlapping. Expected stdout: 'true false\n'.
Formal Syntax & Structure
go syntaxgo
type Range16 struct { Lo, Hi, Stride uint16 }Working Example
Example Snippetgo
package main
import ( "fmt" "unicode")
func main() { t := &unicode.RangeTable{R16: []unicode.Range16{{Lo: 65, Hi: 69, Stride: 2}}, LatinOffset: 1} fmt.Println(unicode.Is(t, 'C'), unicode.Is(t, 'B'))}