classes-Com-Tecnick-Unicode-Bidi-StepL

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Com\Tecnick\Unicode\Bidi\StepL

Tags
since
2015-07-13
category

Library

author

Nicola Asuni info@tecnick.com

copyright

2011-2015 Nicola Asuni - Tecnick.com LTD

license

http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)

link
https://github.com/tecnickcom/tc-lib-unicode

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.

Return values
mixed
 

© 2004-2023 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy