Documentation ¶
Overview ¶
Package bidirule implements the Bidi Rule defined by RFC 5893.
This package is under development. The API may change without notice and without preserving backward compatibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ErrInvalid indicates a label is invalid according to the Bidi Rule.
Functions ¶
func 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.
Types ¶
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
Transformer implements transform.Transform.
func New ¶
func New() *Transformer
New returns a Transformer that verifies that input adheres to the Bidi Rule.
Click to show internal directories.
Click to hide internal directories.