Class StiBidirectionalConvert2

Hierarchy

  • StiBidirectionalConvert2

Index

Properties

Static MAX_DEPTH

MAX_DEPTH: number = 125

Static MAX_NESTED_BRACKET_PAIRS

MAX_NESTED_BRACKET_PAIRS: number = 63

Static charCode07

charCode07: string = String.fromCharCode(7)

Static leftBracketsList

leftBracketsList: string = "([{༺༼᚛⁅⁽₍⌈⌊〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨〈《「『【〔〖〘〚﹙﹛﹝([{⦅「"

Static rightBracketsList

rightBracketsList: string = ")]}༻༽᚜⁆⁾₎⌉⌋〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛﹚﹜﹞)]}⦆」"

Methods

Static classifyCharacters

  • classifyCharacters(text: string, refTypesList: object): void
  • Parameters

    • text: string
    • refTypesList: object
      • ref: number[]

    Returns void

Static computeReorderingIndexes

  • computeReorderingIndexes(levels: number[]): number[]
  • Parameters

    • levels: number[]

    Returns number[]

Static convertArabicHebrew

  • convertArabicHebrew(inputSB: string): string
  • Parameters

    • inputSB: string

    Returns string

Static convertString

  • convertString(input: string, rightToLeft: boolean, modePdf?: boolean): string
  • Parameters

    • input: string
    • rightToLeft: boolean
    • Default value modePdf: boolean = true

    Returns string

Static getExplicitEmbeddingLevels

  • getExplicitEmbeddingLevels(level: number, types: number[], refLevels: object, matchingPDI: number[]): void
  • Parameters

    • level: number
    • types: number[]
    • refLevels: object
      • ref: number[]
    • matchingPDI: number[]

    Returns void

Static getIsolatingRunSequences

  • getIsolatingRunSequences(pLevel: number, types: number[], levels: number[], levelRuns: number[][], matchingIsolateInitiator: number[], matchingPDI: number[], runCharsArray: number[]): IsolatingRunSequence[]
  • Parameters

    • pLevel: number
    • types: number[]
    • levels: number[]
    • levelRuns: number[][]
    • matchingIsolateInitiator: number[]
    • matchingPDI: number[]
    • runCharsArray: number[]

    Returns IsolatingRunSequence[]

Static getLevelRuns

  • getLevelRuns(levels: number[]): number[][]
  • Parameters

    • levels: number[]

    Returns number[][]

Static getMatchingPDI

  • getMatchingPDI(types: number[], outMatchingPDI: object, outMatchingIsolateInitiator: object): void
  • Parameters

    • types: number[]
    • outMatchingPDI: object
      • ref: number[]
    • outMatchingIsolateInitiator: object
      • ref: number[]

    Returns void

Static getMultiLineReordered

  • getMultiLineReordered(levels: number[], lineBreaks: number[]): number[]
  • Parameters

    • levels: number[]
    • lineBreaks: number[]

    Returns number[]

Static getOrderedString

  • getOrderedString(input: string, newIndexes: number[], levels: number[]): string
  • Parameters

    • input: string
    • newIndexes: number[]
    • levels: number[]

    Returns string

Static getParagraphEmbeddingLevel

  • getParagraphEmbeddingLevel(types: number[], matchingPDI: number[], si?: number, ei?: number): number
  • Parameters

    • types: number[]
    • matchingPDI: number[]
    • Default value si: number = -1
    • Default value ei: number = -1

    Returns number

Static getReorderedIndexes

  • getReorderedIndexes(level: number, typesList: number[], levelsList: number[], lineBreaks: number[], refLevels: object): number[]
  • Parameters

    • level: number
    • typesList: number[]
    • levelsList: number[]
    • lineBreaks: number[]
    • refLevels: object
      • ref: number[]

    Returns number[]

Static getRunForCharacter

  • getRunForCharacter(levelRuns: number[][], length: number): number[]
  • Parameters

    • levelRuns: number[][]
    • length: number

    Returns number[]

Static getTextLevels

  • getTextLevels(paragraphEmbeddingLevel: number, typesList: number[], levelsList: number[], lineBreaks: number[]): number[]
  • Parameters

    • paragraphEmbeddingLevel: number
    • typesList: number[]
    • levelsList: number[]
    • lineBreaks: number[]

    Returns number[]

Static getTypeForLevel

Static isBracketTypeClose

  • isBracketTypeClose(ch: string): boolean
  • Parameters

    • ch: string

    Returns boolean

Static isBracketTypeOpen

  • isBracketTypeOpen(ch: string): boolean
  • Parameters

    • ch: string

    Returns boolean

Static isOdd

  • isOdd(n: number): boolean
  • Parameters

    • n: number

    Returns boolean

Static leastGreaterEven

  • leastGreaterEven(l: number): number
  • Parameters

    • l: number

    Returns number

Static leastGreaterOdd

  • leastGreaterOdd(l: number): number
  • Parameters

    • l: number

    Returns number

Static logicalToVisual

  • logicalToVisual(input: string, rightToLeft: boolean, lineBreaks?: number[], parts?: string[]): string
  • Parameters

    • input: string
    • rightToLeft: boolean
    • Default value lineBreaks: number[] = null
    • Default value parts: string[] = null

    Returns string

Static removeX9Characters

  • removeX9Characters(refBuffer: object): void
  • Parameters

    • refBuffer: object
      • ref: number[]

    Returns void

Static setLevels

  • setLevels(refLevels: object, newLevel: number): void
  • Parameters

    • refLevels: object
      • ref: number[]
    • newLevel: number

    Returns void

Generated using TypeDoc