Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArIdentifier

Source Location: /sub/ArIdentifier.class.php

Class Overview


This PHP class identify Arabic text segments


Author(s):

Copyright:

  • 2006-2010 Khaled Al-Shamaa

Variables

Methods



Class Details

[line 105]
This PHP class identify Arabic text segments



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2006-2010 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Variables

$isArabicInput =  'utf-8'

[line 111]

"isArabic" method input charset



Tags:

access:  public

Type:   String


[ Top ]

$isArabicVars = array('str')

[line 117]

Name of the textual "isArabic" method parameters



Tags:

access:  public

Type:   Array


[ Top ]



Class Methods


static method identify [line 135]

static array identify( string $str)

Identify Arabic text in a given UTF-8 multi language string



Tags:

return:  Offset of the beginning and end of each Arabic segment in sequence in the given UTF-8 multi language string
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $str   UTF-8 multi language string

[ Top ]

static method isArabic [line 195]

static boolean isArabic( string $str)

Find out if given string is Arabic text or not



Tags:

return:  True if given string is UTF-8 Arabic, else will return False
author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $str   String

[ Top ]

constructor __construct [line 122]

ArIdentifier __construct( )

Loads initialize values



Tags:

access:  public


[ Top ]


Documentation generated on Sat, 14 Aug 2010 13:23:55 -0700 by phpDocumentor 1.4.0