Sgss_Font_Coverage_Unicode
Defines conversions between unicode codepoints, range names, and class names

Description

Author:
Matsuda Shota
Copyright:
(c) 2007-2008 Matsuda Shota
License:
http://creativecommons.org/licenses/GPL/2.0/
Located in:
/Font/Coverage/Unicode.php (line 40)

Class overview

Variables

protected static array $_abbreviations

Abbreviation list for the range and class names in this class

protected static array $_classes

Unicode class names in this class

protected static array $_ranges

Unicode range names in this class

Methods

static array getAllClasses ()

Returns all the class names defined in this class

static array getAllRanges ()

Returns all the range names defined in this class

static string|null getClass (string $range)

Returns the class name corresponding to the specified range

static string|null getRange (int $unicode)

Returns the range name corresponding to the specified unicode codepoint

static array|null getRangeArray (string $range)

Returns the range array specified by its name

static int getRangeLimit (string $range)

Returns the limit of the unicode range specified by its name

static array getRangesInClass (string $class)

Returns the all the range names in the specified class

static int getRangeStart (string $range)

Returns the beginning of the unicode range specified by its name

Variable detail

$_abbreviations  

Abbreviation list for the range and class names in this class

Signature:
protected static array $_abbreviations = array(...)


$_classes  

Unicode class names in this class

Signature:
protected static array $_classes = array(...)


$_ranges  

Unicode range names in this class

Signature:
protected static array $_ranges = array(...)


Method detail

getAllClasses 

Returns all the class names defined in this class

Returns:
array -- Array containing all the class names
Signature:
public static array getAllClasses ()


getAllRanges 

Returns all the range names defined in this class

Returns:
array -- Array containing all the range names
Signature:
public static array getAllRanges ()


getClass 

Returns the class name corresponding to the specified range

Parameters:
  • string $range

    Range name

Returns:
string|null -- Class name corresponding to the range, or null if the range is undefined
Signature:
public static string|null getClass (string $range)


getRange 

Returns the range name corresponding to the specified unicode codepoint

Parameters:
  • int $unicode

    Unicode codepoint

Returns:
string|null -- Class name corresponding to the unicode codepoint, or null if undefined
Signature:
public static string|null getRange (int $unicode)


getRangeArray 

Returns the range array specified by its name

Parameters:
  • string $range

    Range name

Returns:
array|null -- Range array containing its beginning and limit, or -1 if the name is undefined
Signature:
public static array|null getRangeArray (string $range)


getRangeLimit 

Returns the limit of the unicode range specified by its name

Parameters:
  • string $range

    Range name

Returns:
int -- Limit of the unicode range, or -1 if the name is undefined
Signature:
public static int getRangeLimit (string $range)


getRangesInClass 

Returns the all the range names in the specified class

Parameters:
  • string $class

    Class name

Returns:
array -- Array containing all the range names in the class
Used by:
Sgss_Font_Truetype_Coverage::hasClass()
Signature:
public static array getRangesInClass (string $class)


getRangeStart 

Returns the beginning of the unicode range specified by its name

Parameters:
  • string $range

    Range name

Returns:
int -- Beginning of the unicode range, or -1 if the name is undefined
Signature:
public static int getRangeStart (string $range)