Source File
iterator.go
Belonging Package
github.com/clipperhouse/uax29/v2/graphemes
package graphemesimporttype Iterator[ iterators.Stringish] struct {*iterators.Iterator[]}var (splitFuncString = splitFunc[string]splitFuncBytes = splitFunc[[]byte])// FromString returns an iterator for the grapheme clusters in the input string.// Iterate while Next() is true, and access the grapheme via Value().func ( string) Iterator[string] {return Iterator[string]{iterators.New(splitFuncString, ),}}// FromBytes returns an iterator for the grapheme clusters in the input bytes.// Iterate while Next() is true, and access the grapheme via Value().func ( []byte) Iterator[[]byte] {return Iterator[[]byte]{iterators.New(splitFuncBytes, ),}}
![]() |
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. |