
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) |
|
| |
| static | friendlyNumber ($integer, $delimiter= ' ') |
Definition at line 20 of file TextUtils.class.php.
| 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] |
Definition at line 121 of file TextUtils.class.php.
References GenericUri::create().

| static TextUtils::hex2Binary | ( | $ | hex | ) | [static] |
Definition at line 129 of file TextUtils.class.php.
References $out, and Assert::isTrue().

| static TextUtils::safeAmp | ( | $ | text | ) | [static] |
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.
1.5.4