Source File
reader.go
Belonging Package
github.com/clipperhouse/uax29/v2/graphemes
// Package graphemes implements Unicode grapheme cluster boundaries: https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundariespackage graphemesimport ()type Scanner struct {*bufio.Scanner}// FromReader returns a Scanner, to split graphemes per// https://unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries.//// It embeds a [bufio.Scanner], so you can use its methods.//// Iterate through graphemes by calling Scan() until false, then check Err().func ( io.Reader) *Scanner {:= bufio.NewScanner().Split(SplitFunc)return &Scanner{Scanner: ,}}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |