Standard library / unicode

unicode.Is()

Reports whether r belongs to a specific range table. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func Is(rangeTab *RangeTable, r rune) bool

Parameters & Attributes

NameTypeDescription
rangeTab*RangeTableUnicode range table to test.
rruneUnicode code point.

Return Value

bool

Reports whether r belongs to a specific range table.

Working Example

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