BidiRun

public struct BidiRun

A bidi run represents a sequence of characters which have the same embedding level. The direction of run is considered right-to-left, if its embedding level is odd.

  • The UTF-16 range of the run in source string.

    Declaration

    Swift

    public var codeUnitRange: Range<Int>
  • The embedding level of the run.

    Declaration

    Swift

    public var embeddingLevel: UInt8
  • The index to the first character of this run in source string.

    Declaration

    Swift

    public var startIndex: String.Index { get }
  • The index after the last character of this run in source string.

    Declaration

    Swift

    public var endIndex: String.Index { get }
  • A Boolean value that indicates whether the run is right-to-left.

    Declaration

    Swift

    public var isRightToLeft: Bool { get }