classes-Com-Tecnick-Unicode-Bidi-StepX

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\StepX

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

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
SuppressWarnings

(PHPMD.CyclomaticComplexity)

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

Return values
mixed
 

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