|
Fat-Free Framework
3.1.0 API Reference
|
Unicode string manager. More...
Public Member Functions | |
| stripos ($stack, $needle, $ofs=0) | |
| strlen ($str) | |
| strpos ($stack, $needle, $ofs=0, $case=FALSE) | |
| strripos ($stack, $needle, $ofs=0) | |
| strrpos ($stack, $needle, $ofs=0, $case=FALSE) | |
| stristr ($stack, $needle, $before=FALSE) | |
| strstr ($stack, $needle, $before=FALSE, $case=FALSE) | |
| substr ($str, $start, $len=0) | |
| substr_count ($stack, $needle) | |
| ltrim ($str) | |
| rtrim ($str) | |
| trim ($str) | |
| bom () | |
Additional Inherited Members | |
Static Public Member Functions inherited from Prefab | |
| static | instance () |
Detailed Description
Unicode string manager.
Member Function Documentation
| UTF::bom | ( | ) |
Return UTF-8 byte order mark
- Returns
- string
| UTF::ltrim | ( | $str) |
Strip whitespaces from the beginning of a string
- Returns
- string
- Parameters
-
$str string
| UTF::rtrim | ( | $str) |
Strip whitespaces from the end of a string
- Returns
- string
- Parameters
-
$str string
| UTF::stripos | ( | $stack, | |
| $needle, | |||
$ofs = 0 |
|||
| ) |
Find position of first occurrence of a string (case-insensitive)
- Returns
- int|FALSE
- Parameters
-
$stack string $needle string $ofs int
| UTF::stristr | ( | $stack, | |
| $needle, | |||
$before = FALSE |
|||
| ) |
Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
- Returns
- string|FALSE
- Parameters
-
$stack string $needle string $before bool
| UTF::strlen | ( | $str) |
Get string length
- Returns
- int
- Parameters
-
$str string
| UTF::strpos | ( | $stack, | |
| $needle, | |||
$ofs = 0, |
|||
$case = FALSE |
|||
| ) |
Find position of first occurrence of a string
- Returns
- int|FALSE
- Parameters
-
$stack string $needle string $ofs int $case bool
| UTF::strripos | ( | $stack, | |
| $needle, | |||
$ofs = 0 |
|||
| ) |
Finds position of last occurrence of a string (case-insensitive)
- Returns
- int|FALSE
- Parameters
-
$stack string $needle string $ofs int
| UTF::strrpos | ( | $stack, | |
| $needle, | |||
$ofs = 0, |
|||
$case = FALSE |
|||
| ) |
Find position of last occurrence of a string
- Returns
- int|FALSE
- Parameters
-
$stack string $needle string $ofs int $case bool
| UTF::strstr | ( | $stack, | |
| $needle, | |||
$before = FALSE, |
|||
$case = FALSE |
|||
| ) |
Returns part of haystack string from the first occurrence of needle to the end of haystack
- Returns
- string|FALSE
- Parameters
-
$stack string $needle string $before bool $case bool
| UTF::substr | ( | $str, | |
| $start, | |||
$len = 0 |
|||
| ) |
Return part of a string
- Returns
- string|FALSE
- Parameters
-
$str string $start int $len int
| UTF::substr_count | ( | $stack, | |
| $needle | |||
| ) |
Count the number of substring occurrences
- Returns
- int
- Parameters
-
$stack string $needle string
| UTF::trim | ( | $str) |
Strip whitespaces from the beginning and end of a string
- Returns
- string
- Parameters
-
$str string
The documentation for this class was generated from the following file:
- utf.php
Generated on Mon Aug 19 2013 21:27:52 for Fat-Free Framework by
1.8.4
Static Public Member Functions inherited from