package bidirule
Import Path
vendor/golang.org/x/text/secure/bidirule (on golang.org and go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Involved Source Files
d-> bidirule.go
bidirule10.0.0.go
Exported Type Names
type Transformer (struct)
Transformer implements transform.Transform.
(*T) Reset()
(*T) Span(src []byte, atEOF bool) (n int, err error)
(*T) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, err error)
*T : vendor/golang.org/x/text/transform.SpanningTransformer
*T : vendor/golang.org/x/text/transform.Transformer
func New() *Transformer
Exported Values
func Direction(b []byte) bidi.Direction
Direction reports the direction of the given label as defined by RFC 5893.
The Bidi Rule does not have to be applied to labels of the category
LeftToRight.
func DirectionString(s string) bidi.Direction
DirectionString reports the direction of the given label as defined by RFC
5893. The Bidi Rule does not have to be applied to labels of the category
LeftToRight.
var ErrInvalid error
ErrInvalid indicates a label is invalid according to the Bidi Rule.
func New() *Transformer
New returns a Transformer that verifies that input adheres to the Bidi Rule.
![]() |
The pages are generated with Golds v0.1.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project and developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |