Mojibake.Bidi.Paragraph (Mojibake v0.8.0)

Copy Markdown View Source

A paragraph resolved by Mojibake.Bidi.resolve/2.

  • text - the text of the paragraph
  • direction - the paragraph direction, :ltr or :rtl
  • level - the paragraph embedding level, 0 for left to right and 1 for right to left
  • length - the number of characters of the paragraph, after rule X9 removed the controls

The resolved levels are held by the NIF and freed when the paragraph is garbage collected.

Summary

Types

t()

@type t() :: %Mojibake.Bidi.Paragraph{
  direction: :ltr | :rtl,
  length: non_neg_integer(),
  level: 0 | 1,
  ref: reference(),
  text: String.t()
}