StepX

X steps of the Bidirectional Algorithm: explicit levels and directions (X1 to X9).

Namespace: Com\Tecnick\Unicode\Bidi

class StepX

Source: src/Bidi/StepX.php:47

X steps of the Bidirectional Algorithm: explicit levels and directions (X1 to X9).

Types

DssData

array{
    'ord': int,
    'cel': int,
    'dos': string,
    'dis': bool,
}

Constants

MAX_DEPTH

Maximum embedding level

public const MAX_DEPTH = 125

Source: src/Bidi/StepX.php:52

Methods

__construct()

X Steps for Bidirectional algorithm Explicit Levels and Directions

public __construct(int[] $ordarr, int $pel)

Parameters:

  • $ordarr (int[]): Array of UTF-8 codepoints
  • $pel (int): Paragraph embedding level

Source: src/Bidi/StepX.php:90

getChrData()

Returns the processed array

public getChrData(): array<int,CharData>

Returns: array<int,CharData>

Source: src/Bidi/StepX.php:120