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


Extended by Com\Tecnick\Unicode\Bidi\StepN
Namespace: Com\Tecnick\Unicode\Bidi
Package: Unicode
Category: Library
Copyright: 2011-2015 Nicola Asuni - LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni
Since: 2015-07-13
Located at Bidi/StepN.php
Methods summary
# process( )

Process N steps Resolving Neutral and Isolate Formatting Types

# 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.

# 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

# 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

# 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

© 2004-2020 – Nicola Asuni - - All rights reserved.
about - disclaimer - privacy