TextUtils Class Reference
[Various accompanying utilities]

Inheritance diagram for TextUtils:

Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static friendlyFileSize ($size, $precision=2, $units=array(null, 'k', 'M', 'G', 'T', 'P'), $spacePunctuation=false)
static getRootFromUrl ($url)
static getPathFromUrl ($url)
static urlSafeBase64Encode ($string)
static urlSafeBase64Decode ($string)
static upFirst ($string)
static downFirst ($string)
static cutOnSpace ($string, $length, $append=null)
static normalizeUri ($uri)
static hex2Binary ($hex)
static safeAmp ($text)
 
See also:
http://www.w3.org/TR/REC-html40/charset.html#entities

static friendlyNumber ($integer, $delimiter= ' ')


Detailed Description

Definition at line 20 of file TextUtils.class.php.


Member Function Documentation

static TextUtils::friendlyFileSize ( size,
precision = 2,
units = array(null, 'k' , 'M', 'G', 'T', 'P'),
spacePunctuation = false 
) [static]

Definition at line 22 of file TextUtils.class.php.

Referenced by RussianTextUtils::friendlyFileSize().

static TextUtils::getRootFromUrl ( url  )  [static]

Definition at line 40 of file TextUtils.class.php.

static TextUtils::getPathFromUrl ( url  )  [static]

Definition at line 53 of file TextUtils.class.php.

static TextUtils::urlSafeBase64Encode ( string  )  [static]

Definition at line 63 of file TextUtils.class.php.

static TextUtils::urlSafeBase64Decode ( string  )  [static]

Definition at line 73 of file TextUtils.class.php.

static TextUtils::upFirst ( string  )  [static]

Definition at line 90 of file TextUtils.class.php.

static TextUtils::downFirst ( string  )  [static]

Definition at line 97 of file TextUtils.class.php.

static TextUtils::cutOnSpace ( string,
length,
append = null 
) [static]

Definition at line 104 of file TextUtils.class.php.

static TextUtils::normalizeUri ( uri  )  [static]

Deprecated:
by GenericUri::normalize

Definition at line 121 of file TextUtils.class.php.

References GenericUri::create().

Here is the call graph for this function:

static TextUtils::hex2Binary ( hex  )  [static]

Definition at line 129 of file TextUtils.class.php.

References $out, and Assert::isTrue().

Here is the call graph for this function:

static TextUtils::safeAmp ( text  )  [static]

See also:
http://www.w3.org/TR/REC-html40/charset.html#entities

See also:
http://www.w3.org/TR/REC-html40/sgml/entities.html

http://php.net/htmlentities

htmlentities() do not support hexadecimal numeric character references yet.

Definition at line 151 of file TextUtils.class.php.

static TextUtils::friendlyNumber ( integer,
delimiter = ' ' 
) [static]

Definition at line 163 of file TextUtils.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:36 2007 for onPHP by  doxygen 1.5.4