Static Public Member Functions | Public Attributes | Static Public Attributes

MultiByte Class Reference

List of all members.

Static Public Member Functions

static hab_encoding ($use_enc=null)
static library ($new_library=null)
static convert_encoding ($str, $use_enc=null, $from_enc=null)
static detect_encoding ($str)
static substr ($str, $begin, $len=null, $use_enc=null)
static strlen ($str, $use_enc=null)
static strpos ($haysack, $needle, $offset=0, $use_enc=null)
static stripos ($haysack, $needle, $offset=0, $use_enc=null)
static strrpos ($haysack, $needle, $offset=0, $use_enc=null)
static strripos ($haysack, $needle, $offset=0, $use_enc=null)
static strtolower ($str, $use_enc=null)
static strtoupper ($str, $use_enc=null)
static valid_data ($str, $use_enc=null)
static ucfirst ($str, $use_enc=null)
static lcfirst ($str, $use_enc=null)
static str_replace ($search, $replace, $subject, &$count=0, $use_enc=null)
static str_ireplace ($search, $replace, $subject, &$count=0, $use_enc=null)
static ucwords ($str, $use_enc=null)

Public Attributes

const USE_MBSTRING = 1

Static Public Attributes

static $hab_enc = 'UTF-8'

Detailed Description

Definition at line 16 of file multibyte.php.


Member Function Documentation

static MultiByte::lcfirst ( str,
use_enc = null 
) [static]

Makes a string's first character lowercase

See also:
http://php.net/ucfirst
Parameters:
string $str The string to lowercase.
string $use_enc The encoding to be used. If null, the internal encoding will be used.
Returns:
string The lowercased string.

Definition at line 471 of file multibyte.php.

static MultiByte::str_ireplace ( search,
replace,
subject,
&$  count = 0,
use_enc = null 
) [static]

Replace all occurrences of the search string with the replacement string.

See also:
http://php.net/str_ireplace
Parameters:
mixed $search A string or an array of strings to search for.
mixed $replace A string or an array of strings to replace search values with.
string $subject The string to perform the search and replace on.
int $count If passed, this value will hold the number of matched and replaced needles.
string $use_enc The encoding to be used. If null, the internal encoding will be used.
Returns:
string The subject with replaced values.

Definition at line 634 of file multibyte.php.

static MultiByte::str_replace ( search,
replace,
subject,
&$  count = 0,
use_enc = null 
) [static]

Replace all occurrences of the search string with the replacement string.

See also:
http://php.net/str_replace
Parameters:
mixed $search A string or an array of strings to search for.
mixed $replace A string or an array of strings to replace search values with.
string $subject The string to perform the search and replace on.
int $count If passed, this value will hold the number of matched and replaced needles.
string $use_enc The encoding to be used. If null, the internal encoding will be used.
Returns:
string The subject with replaced values.

Definition at line 522 of file multibyte.php.

static MultiByte::ucfirst ( str,
use_enc = null 
) [static]

Makes a string's first character uppercase

See also:
http://php.net/ucfirst
Parameters:
string $str The string to capitalize.
string $use_enc The encoding to be used. If null, the internal encoding will be used.
Returns:
string The capitalized string.

Definition at line 432 of file multibyte.php.

Referenced by ucwords().

static MultiByte::ucwords ( str,
use_enc = null 
) [static]

Uppercase the first character of each word in a string.

From php.net/ucwords: The definition of a word is any string of characters that is immediately after a whitespace (These are: space, form-feed, newline, carriage return, horizontal tab, and vertical tab).

See also:
http://php.net/ucwords
Parameters:
string $str The input string.
string $use_enc The encoding to be used. If null, the internal encoding will be used.
Returns:
string The modified string.

Definition at line 747 of file multibyte.php.

Referenced by AdminHandler::setup_admin_theme().

static MultiByte::valid_data ( str,
use_enc = null 
) [static]

Determines if the passed string is valid character data (according to mbstring)

Parameters:
string $str the string to check
Returns:
bool

Definition at line 410 of file multibyte.php.

Referenced by InputFilter::filter().


The documentation for this class was generated from the following file: