classes-Com-Tecnick-Unicode-Bidi-StepXten

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

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
$ilrs  : array<string|int, mixed>
Array of Isolated Level Run sequences
$numchars  : int
Number of characters
$numrunseq  : int
Number of Level Run sequences
$pel  : int
Paragraph Embedding Level
$runseq  : array<string|int, mixed>
Array of Level Run sequences
__construct()  : mixed
X Steps for Bidirectional algorithm
getIsolatedLevelRunSequences()  : array<string|int, mixed>
Get the Isolated Run Sequences
getEmbeddedDirection()  : string
Get the embedded direction (L or R)
isIsolateInitiator()  : bool
returns true if the input char is an Isolate Initiator
setIsolatedLevelRunSequences()  : array<string|int, mixed>
Set level Isolated Level Run Sequences
setLevelRunSequences()  : mixed
Set Level Run Sequences
setStartEndOfSequence()  : mixed
Determine the start-of-sequence (sos) and end-of-sequence (eos) types, either L or R, for each isolating run sequence.

Properties

$chardata

Array of characters data to return

protected array<string|int, mixed> $chardata = array()

$ilrs

Array of Isolated Level Run sequences

protected array<string|int, mixed> $ilrs = array()

$numchars

Number of characters

protected int $numchars = 0

$numrunseq

Number of Level Run sequences

protected int $numrunseq = 0

$pel

Paragraph Embedding Level

protected int $pel = 0

$runseq

Array of Level Run sequences

protected array<string|int, mixed> $runseq = array()

Methods

__construct()

X Steps for Bidirectional algorithm

public __construct(array<string|int, mixed> $chardata, int $pel) : mixed
Parameters
$chardata : array<string|int, mixed>

Array of UTF-8 codepoints

$pel : int

Paragraph Embedding Level

Return values
mixed

getIsolatedLevelRunSequences()

Get the Isolated Run Sequences

public getIsolatedLevelRunSequences() : array<string|int, mixed>
Return values
array<string|int, mixed>

getEmbeddedDirection()

Get the embedded direction (L or R)

protected getEmbeddedDirection(int $level) : string
Parameters
$level : int
Return values
string

isIsolateInitiator()

returns true if the input char is an Isolate Initiator

protected isIsolateInitiator(mixed $ord) : bool
Parameters
$ord : mixed
Return values
bool

setIsolatedLevelRunSequences()

Set level Isolated Level Run Sequences

protected setIsolatedLevelRunSequences() : array<string|int, mixed>
Return values
array<string|int, mixed>

setLevelRunSequences()

Set Level Run Sequences

protected setLevelRunSequences() : mixed
Return values
mixed

setStartEndOfSequence()

Determine the start-of-sequence (sos) and end-of-sequence (eos) types, either L or R, for each isolating run sequence.

protected setStartEndOfSequence() : mixed
Return values
mixed
 

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