Com\Tecnick\Unicode\Bidi\StepL
Tags
Table of Contents
- $chardata : array<string|int, mixed>
- Array of characters data to return
- $maxlevel : int
- Maximul level
- $numchars : int
- Number of characters in $this->chardata
- $pel : int
- Paragraph embedding level
- __construct() : mixed
- L steps
- getChrData() : array<string|int, mixed>
- Returns the processed array
- processL1() : mixed
- L1. On each line, reset the embedding level of the following characters to the paragraph embedding level: 1. Segment separators, 2. Paragraph separators, 3. Any sequence of whitespace characters and/or isolate formatting characters (FSI, LRI, RLI, and PDI) preceding a segment separator or paragraph separator, and 4. Any sequence of whitespace characters and/or isolate formatting characters (FSI, LRI, RLI, and PDI) at the end of the line.
- processL1b() : mixed
- Internal L1 step
- processL2() : mixed
- L2. From the highest level found in the text to the lowest odd level on each line, including intermediate levels not actually present in the text, reverse any contiguous sequence of characters that are at that level or higher.
Properties
$chardata
Array of characters data to return
protected array<string|int,
mixed> $chardata = array()
$maxlevel
Maximul level
protected int $maxlevel = 0
$numchars
Number of characters in $this->chardata
protected int $numchars = 0
$pel
Paragraph embedding level
protected int $pel = 0
Methods
__construct()
L steps
public __construct(array<string|int,
mixed> $chardata,
int $pel,
int $maxlevel)
: mixed
Parameters
- $chardata : array<string|int, mixed>
-
Array of characters data
- $pel : int
-
Paragraph embedding level
- $maxlevel : int
-
Maximum level
Return values
mixed —getChrData()
Returns the processed array
public getChrData()
: array<string|int,
mixed>
Return values
array<string|int, mixed> —processL1()
L1. On each line, reset the embedding level of the following characters to the paragraph embedding level: 1. Segment separators, 2. Paragraph separators, 3. Any sequence of whitespace characters and/or isolate formatting characters (FSI, LRI, RLI, and PDI) preceding a segment separator or paragraph separator, and 4. Any sequence of whitespace characters and/or isolate formatting characters (FSI, LRI, RLI, and PDI) at the end of the line.
protected processL1()
: mixed
Return values
mixed —processL1b()
Internal L1 step
protected processL1b(int $idx,
int $jdx)
: mixed
Parameters
- $idx : int
-
Main character index
- $jdx : int
-
Current index
Return values
mixed —processL2()
L2. From the highest level found in the text to the lowest odd level on each line, including intermediate levels not actually present in the text, reverse any contiguous sequence of characters that are at that level or higher.
protected processL2()
: mixed
This rule reverses a progressively larger series of substrings.