icu4x
    Preparing search index...

    Class BidiInfo

    An object containing bidi information for a given string, produced by for_text() on Bidi

    See the Rust documentation for BidiInfo for more information.

    Index

    Constructors

    Accessors

    • get ffiValue(): number

      Returns number

    • get paragraphCount(): number

      The number of paragraphs contained here

      Returns number

    • get size(): number

      The number of bytes in this full text

      Returns number

    Methods

    • Get the BIDI level at a particular byte index in the full text. This integer is conceptually a unicode_bidi::Level, and can be further inspected using the static methods on Bidi.

      Returns 0 (equivalent to Level::ltr()) on error

      Parameters

      • pos: number

      Returns number

    • Get the nth paragraph, returning None if out of bounds

      Parameters

      • n: number

      Returns BidiParagraph