Standard library / unicode

unicode.RangeTable

Represents a set of code points using sorted non-overlapping R16 and R32 ranges and a LatinOffset optimization. Treat exported tables as read-only. Expected stdout: 'true false\n'.

Formal Syntax & Structure

go syntaxgo
type RangeTable struct { R16 []Range16; R32 []Range32; LatinOffset int }

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(unicode.Is(unicode.Arabic, 'س'), unicode.Is(unicode.Arabic, 'A'))}
Go Reference