Unicode Bidirectional Algorithm for MoonBit
moon add tonyfettes/bidipub(all) suberror BidiError {
InvalidIsolate(String)
StackOverflow
}pub(all) enum BidiClass {
L
R
AL
EN
ES
ET
AN
CS
NSM
BN
B
S
WS
ON
LRE
LRO
RLE
RLO
PDF
LRI
RLI
FSI
PDI
} derive(Eq)fn get_mirrored(c : Char, level : Int) -> Char#deprecated("Use process(text, direction=LTR or RTL) instead")
fn process_with_base_level(text : String, base_level : Int) -> BidiParagraph#deprecated("Use process(text, direction=direction) instead")
fn process_with_direction(text : String, direction : Direction) -> BidiParagraphfn requires_bidi(text : String) -> BoolUnicode Bidirectional Algorithm for MoonBit