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) boolParameters & Attributes
| Name | Type | Description |
|---|---|---|
| rangeTab | *RangeTable | Unicode range table to test. |
| r | rune | Unicode 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, 'س'))}