Fat-Free Framework: UTF Class Reference

Fat-Free-Framework

Fat-Free Framework  3.1.0 API Reference

Unicode string manager. More...

Inheritance diagram for UTF:
Prefab

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
$strstring
UTF::rtrim (   $str)

Strip whitespaces from the end of a string

Returns
string
Parameters
$strstring
UTF::stripos (   $stack,
  $needle,
  $ofs = 0 
)

Find position of first occurrence of a string (case-insensitive)

Returns
int|FALSE
Parameters
$stackstring
$needlestring
$ofsint
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
$stackstring
$needlestring
$beforebool
UTF::strlen (   $str)

Get string length

Returns
int
Parameters
$strstring
UTF::strpos (   $stack,
  $needle,
  $ofs = 0,
  $case = FALSE 
)

Find position of first occurrence of a string

Returns
int|FALSE
Parameters
$stackstring
$needlestring
$ofsint
$casebool
UTF::strripos (   $stack,
  $needle,
  $ofs = 0 
)

Finds position of last occurrence of a string (case-insensitive)

Returns
int|FALSE
Parameters
$stackstring
$needlestring
$ofsint
UTF::strrpos (   $stack,
  $needle,
  $ofs = 0,
  $case = FALSE 
)

Find position of last occurrence of a string

Returns
int|FALSE
Parameters
$stackstring
$needlestring
$ofsint
$casebool
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
$stackstring
$needlestring
$beforebool
$casebool
UTF::substr (   $str,
  $start,
  $len = 0 
)

Return part of a string

Returns
string|FALSE
Parameters
$strstring
$startint
$lenint
UTF::substr_count (   $stack,
  $needle 
)

Count the number of substring occurrences

Returns
int
Parameters
$stackstring
$needlestring
UTF::trim (   $str)

Strip whitespaces from the beginning and end of a string

Returns
string
Parameters
$strstring

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   doxygen 1.8.4