String utilities.
More...
|
static | startswith ($hay, $needle) |
|
static | endswith ($hay, $needle) |
|
static | getBooleanStr ($value) |
|
static | isNull ($s) |
|
static | isNotNull ($s) |
|
static | isBooleanTrue ($s) |
|
static | isBooleanFalse ($s) |
|
static | isBoolean ($value) |
|
static | pluralize ($count, $zero, $one, $other) |
| Pluralize an expression. More...
|
|
static | firstReplace ($haystack, $needle, $replace) |
|
static | replaceArray ($haystack, $needle, $replaceArray) |
|
static | cleanAttribute ($attr, $replacement="_") |
|
String utilities.
- Author
- jc
- Version
- 1.0.0.2
Definition at line 10 of file UString.php.
◆ cleanAttribute()
static cleanAttribute |
( |
|
$attr, |
|
|
|
$replacement = "_" |
|
) |
| |
|
static |
◆ endswith()
static endswith |
( |
|
$hay, |
|
|
|
$needle |
|
) |
| |
|
static |
◆ firstReplace()
static firstReplace |
( |
|
$haystack, |
|
|
|
$needle, |
|
|
|
$replace |
|
) |
| |
|
static |
◆ getBooleanStr()
static getBooleanStr |
( |
|
$value | ) |
|
|
static |
◆ isBoolean()
static isBoolean |
( |
|
$value | ) |
|
|
static |
◆ isBooleanFalse()
static isBooleanFalse |
( |
|
$s | ) |
|
|
static |
◆ isBooleanTrue()
static isBooleanTrue |
( |
|
$s | ) |
|
|
static |
◆ isNotNull()
◆ isNull()
◆ pluralize()
static pluralize |
( |
|
$count, |
|
|
|
$zero, |
|
|
|
$one, |
|
|
|
$other |
|
) |
| |
|
static |
Pluralize an expression.
- Parameters
-
int | $count | the count of elements |
string | $zero | value to return if count==0, can contains {count} mask |
string | $one | value to return if count==1, can contains {count} mask |
string | $other | value to return if count>1, can contains {count} mask |
- Returns
- string the pluralized expression
Definition at line 55 of file UString.php.
◆ replaceArray()
static replaceArray |
( |
|
$haystack, |
|
|
|
$needle, |
|
|
|
$replaceArray |
|
) |
| |
|
static |
◆ startswith()
static startswith |
( |
|
$hay, |
|
|
|
$needle |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: