package bidi
Import Path
vendor/golang.org/x/text/unicode/bidi (on golang.org and go.dev)
Dependency Relation
imports 5 packages, and imported by 2 packages
Involved Source Files
d-> bidi.go
bracket.go
core.go
prop.go
tables12.0.0.go
trieval.go
Exported Type Names
Exported Values
const
AL Class = 13 // ArabicLetter
func
AppendReverse(out, in []
byte) []
byte
AppendReverse reverses the order of characters of in, appends them to out,
and returns the result. Modifiers will still follow the runes they modify.
Brackets are replaced with their counterparts.
const
B Class = 7 // ParagraphSeparator
const
BN Class = 11 // BoundaryNeutral
const
CS Class = 6 // CommonSeparator
func
DefaultDirection(d
Direction)
Option
DefaultDirection sets the default direction for a Paragraph. The direction is
overridden if the text contains directional characters.
const
EN Class = 2 // EuropeanNumber
const
ES Class = 3 // EuropeanSeparator
const
ET Class = 4 // EuropeanTerminator
const
FSI Class = 23 // FirstStrongIsolate
const
L Class = 0 // LeftToRight
const
LeftToRight Direction = 0
LeftToRight indicates the text contains no right-to-left characters and
that either there are some left-to-right characters or the option
DefaultDirection(LeftToRight) was passed.
func
Lookup(s []
byte) (p
Properties, sz
int)
Lookup returns properties for the first rune in s and the width in bytes of
its encoding. The size will be 0 if s does not hold enough bytes to complete
the encoding.
func
LookupString(s
string) (p
Properties, sz
int)
LookupString returns properties for the first rune in s and the width in
bytes of its encoding. The size will be 0 if s does not hold enough bytes to
complete the encoding.
const
LRE Class = 18 // LeftToRightEmbedding
const
LRI Class = 21 // LeftToRightIsolate
const
LRO Class = 16 // LeftToRightOverride
const
Mixed Direction = 2
Mixed indicates text contains both left-to-right and right-to-left
characters.
const
Neutral Direction = 3
Neutral means that text contains no left-to-right and right-to-left
characters and that no default direction has been set.
const
ON Class = 10 // OtherNeutral
const
PDF Class = 20 // PopDirectionalFormat
const
PDI Class = 24 // PopDirectionalIsolate
const
R Class = 1 // RightToLeft
func
ReverseString(s
string)
string
ReverseString reverses the order of characters in s and returns a new string.
Modifiers will still follow the runes they modify. Brackets are replaced with
their counterparts.
const
RightToLeft Direction = 1
RightToLeft indicates the text contains no left-to-right characters and
that either there are some right-to-left characters or the option
DefaultDirection(RightToLeft) was passed.
const
RLE Class = 19 // RightToLeftEmbedding
const
RLI Class = 22 // RightToLeftIsolate
const
RLO Class = 17 // RightToLeftOverride
const
S Class = 8 // SegmentSeparator
const
UnicodeVersion = "12.0.0"
UnicodeVersion is the Unicode version from which the tables in this package are derived.