class-Com.Tecnick.Unicode.Bidi

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 Bidi

Com\Tecnick\Unicode\Bidi

Namespace: Com\Tecnick\Unicode
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.php
Methods summary
public
# __construct( string $str = null, array $chrarr = null, array $ordarr = null, mixed $forcertl = false, boolean $shaping = true )

Reverse the RLT substrings using the Bidirectional Algorithm http://unicode.org/reports/tr9/

protected
# setInput( string $str = null, array $chrarr = null, array $ordarr = null, mixed $forcertl = false )

Set Input data

public array
# getOrdArray( )

Returns the processed array of UTF-8 codepoints

public array
# getChrArray( )

Returns the processed array of UTF-8 chars

public integer
# getNumChars( )

Returns the number of characters in the processed string

public string
# getString( )

Returns the processed string

public array
# getCharKeys( )

Returns an array with processed chars as keys

protected array
# getParagraphs( )

P1. Split the text into separate paragraphs. A paragraph separator is kept with the previous paragraph.

protected
# process( )

Process the string

protected integer
# getPel( array $par )

Get the paragraph embedding level

protected boolean
# isRtlMode( )

Check if the input string contains RTL characters to process

Properties summary
protected string $str

String to process

# ''
protected array $chrarr

Array of UTF-8 chars

# array()
protected array $ordarr

Array of UTF-8 codepoints

# array()
protected string $bidistr

Processed string

# ''
protected array $bidichrarr

Array of processed UTF-8 chars

# array()
protected array $bidiordarr

Array of processed UTF-8 codepoints

# array()
protected boolean $forcertl

If true force processign the string in RTL mode

# false
protected boolean $shaping

If true enable shaping

# true
protected boolean $arabic

True if the string contains arabic characters

# false
protected array $chardata

Array of character data

# array()
protected Com\Tecnick\Unicode\Convert $conv

Convert object

 

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