Com\Tecnick\Unicode\Bidi\StepX
Tags
Table of Contents
- MAX_DEPTH = 125
- Maximum embedding level
- $chardata : array<string|int, mixed>
- Array of characters data to return
- $dss : array<string|int, mixed>
- Directional Status Stack
- $oec : int
- Overflow Embedding Count
- $oic : int
- Overflow Isolate Count
- $ordarr : array<string|int, mixed>
- Array of UTF-8 codepoints
- $vic : int
- Valid Isolate Count
- __construct() : mixed
- X Steps for Bidirectional algorithm Explicit Levels and Directions
- getChrData() : array<string|int, mixed>
- Returns the processed array
- getLEven() : int
- Calculate the Least Even
- getLOdd() : int
- Calculate the Least Odd
- processChar() : mixed
- Process normal char (X6)
- processFsiCase() : mixed
- Process the PDF type character
- processPdfCase() : mixed
- Process the PDF type character
- processPdiCase() : mixed
- Process the PDI type character
- processX() : mixed
- Process X1
- processXcase() : mixed
- Process X1 case
- pushChar() : mixed
- Push a char on the stack
- setDss() : mixed
- Set temporary data (X2 to X5)
Constants
MAX_DEPTH
Maximum embedding level
public mixed MAX_DEPTH = 125
Properties
$chardata
Array of characters data to return
protected array<string|int,
mixed> $chardata = array()
$dss
Directional Status Stack
protected array<string|int,
mixed> $dss = array()
$oec
Overflow Embedding Count
protected int $oec = 0
$oic
Overflow Isolate Count
protected int $oic = 0
$ordarr
Array of UTF-8 codepoints
protected array<string|int,
mixed> $ordarr = array()
$vic
Valid Isolate Count
protected int $vic = 0
Methods
__construct()
X Steps for Bidirectional algorithm Explicit Levels and Directions
public __construct(array<string|int,
mixed> $ordarr,
int $pel)
: mixed
Parameters
- $ordarr : array<string|int, mixed>
-
Array of UTF-8 codepoints
- $pel : int
-
Paragraph embedding level
Return values
mixed —getChrData()
Returns the processed array
public getChrData()
: array<string|int,
mixed>
Return values
array<string|int, mixed> —getLEven()
Calculate the Least Even
protected getLEven(int $num)
: int
Parameters
- $num : int
-
Number to process
Return values
int —getLOdd()
Calculate the Least Odd
protected getLOdd(int $num)
: int
Parameters
- $num : int
-
Number to process
Return values
int —processChar()
Process normal char (X6)
protected processChar(int $pos,
int $ord,
array<string|int,
mixed> $edss)
: mixed
Parameters
- $pos : int
-
Original character position in the input string
- $ord : int
-
Char code
- $edss : array<string|int, mixed>
-
Last entry in the Directional Status Stack
Return values
mixed —processFsiCase()
Process the PDF type character
protected processFsiCase(int $pos,
array<string|int,
mixed> $edss)
: mixed
Parameters
- $pos : int
-
Original character position in the input string
- $edss : array<string|int, mixed>
-
Last entry in the Directional Status Stack
Return values
mixed —processPdfCase()
Process the PDF type character
protected processPdfCase(array<string|int,
mixed> $edss)
: mixed
Parameters
- $edss : array<string|int, mixed>
-
Last entry in the Directional Status Stack
Return values
mixed —processPdiCase()
Process the PDI type character
protected processPdiCase(int $pos,
int $ord,
array<string|int,
mixed> $edss)
: mixed
Parameters
- $pos : int
-
Original character position in the input string
- $ord : int
-
Char code
- $edss : array<string|int, mixed>
-
Last entry in the Directional Status Stack
Return values
mixed —processX()
Process X1
protected processX()
: mixed
Return values
mixed —processXcase()
Process X1 case
protected processXcase(int $pos,
int $ord)
: mixed
Parameters
- $pos : int
-
Original character position in the input string
- $ord : int
-
Char code
Tags
Return values
mixed —pushChar()
Push a char on the stack
protected pushChar(int $pos,
int $ord,
array<string|int,
mixed> $edss)
: mixed
Parameters
- $pos : int
-
Original character position in the input string
- $ord : int
-
Char code
- $edss : array<string|int, mixed>
-
Last entry in the Directional Status Stack
Return values
mixed —setDss()
Set temporary data (X2 to X5)
protected setDss(int $cel,
int $ord,
string $dos[,
bool $dis
= false
][,
string $isolate
= false
], int $ivic)
: mixed
Parameters
- $cel : int
-
Embedding Level
- $ord : int
-
Char code
- $dos : string
-
Directional override status
- $dis : bool = false
-
Directional isolate status
- $isolate : string = false
-
True if Isolate initiator
- $ivic : int
-
increment for the valid isolate count