class-Com.Tecnick.Unicode.Bidi.StepN

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.

Class StepN

Com\Tecnick\Unicode\Bidi\StepN

Com\Tecnick\Unicode\Bidi\StepBase
Extended by Com\Tecnick\Unicode\Bidi\StepN
Namespace: Com\Tecnick\Unicode\Bidi
Package: Unicode
Category: Library
Copyright: 2011-2015 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2015-07-13
Link: https://github.com/tecnickcom/tc-lib-unicode
Located at Bidi/StepN.php
Methods summary
protected
# process( )

Process N steps Resolving Neutral and Isolate Formatting Types

protected
# getBracketPairs( $idx )

BD16. Find all bracket pairs

protected string
# getN0Type( string $type )

Return the normalized chat type for the N0 step Within this scope, bidirectional types EN and AN are treated as R.

protected
# processN0( )

N0. Process bracket pairs in an isolating run sequence sequentially in the logical order of the text positions of the opening paired brackets.

protected boolean
# processInsideBrackets( integer $open, integer $close, string $odir )

Inspect the bidirectional types of the characters enclosed within the bracket pair.

protected boolean
# setBracketsType( integer $open, integer $close, string $type )

Set the brackets type

protected
# processN1( integer $idx )

N1. A sequence of NIs takes the direction of the surrounding strong text if the text on both sides has the same direction. European and Arabic numbers act as if they were R in terms of their influence on NIs. The start-of-sequence (sos) and end-of-sequence (eos) types are used at isolating run sequence boundaries.

protected string
# processN1prev( integer & $bdx )

Get the next direction

protected string
# processN1next( integer & $jdx )

Get the next direction

protected integer
# getNextN1Char( integer $idx )

Return the index of the next valid char for N1

protected
# processN2( integer $idx )

N2. Any remaining NIs take the embedding direction.

Methods inherited from Com\Tecnick\Unicode\Bidi\StepBase
__construct(), getSequence(), processStep()
Properties summary
protected array $brackets

List or bracket pairs positions

# array()
protected array $bstack

Stack used to store bracket positions

# array()
Properties inherited from Com\Tecnick\Unicode\Bidi\StepBase
$seq
 

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