Standard library / unicode

unicode.IsMark()

Tests Unicode mark category M, including combining marks. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
func IsMark(r rune) bool

Parameters & Attributes

NameTypeDescription
rruneUnicode code point.

Return Value

bool

Tests Unicode mark category M, including combining marks.

Working Example

Example Snippetgo
package main
import (  "fmt"  "unicode")
func main() {  fmt.Println(unicode.IsMark('\u0301'))}
Go Reference