Class flUtf8
flUtf8 Class
Class to supply PHP capability specific functions for UTF-8 support.
-
_flUtf8Base
-
flUtf8
Abstract
Package: fusionLib
Copyright:
Copyright (c) 2008 - 2013 fusionLib. All rights reserved.
Located at system/libs/Utf8/flUtf8.php
Methods summary
public static
string
|
#
toUpper( string $str )
Convert string to uppercase.
Convert string to uppercase.
Parameters
- $str
- The string to convert.
Returns
string The uppercased string.
|
public static
string
|
#
toLower( string $str )
Convert string to lowercase.
Convert string to lowercase.
Parameters
- $str
- The string to convert.
Returns
string The lowercased string.
|
public static
integer
|
#
strlen( string $string )
Find the length of a UTF-8 encoded string.
Find the length of a UTF-8 encoded string.
Parameters
- $string
- The string to find the length of.
Returns
integer The length of the string in characters.
|
public static
string
|
#
substr( string $string, integer $start, integer $length = null )
Extract part of a UTF-8 string.
Extract part of a UTF-8 string.
Parameters
- $string
- The string to extract characters from.
- $start
If non-negative the returned string will start at the start'th position in the
string starting at zero. If negative the returned string will start at the start'th character from the end
of the string.
- $length
If given and positive the string will contain at most length characters, if negative
then that many characters will be omitted from the end of the string.
Returns
string The extracted portion of the string.
|