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' |
Definition at line 16 of file multibyte.php.
| static MultiByte::lcfirst | ( | $ | str, | |
| $ | use_enc = null | |||
| ) | [static] |
Makes a string's first character lowercase
| string | $str The string to lowercase. | |
| string | $use_enc The encoding to be used. If null, the internal encoding will be used. |
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.
| 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. |
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.
| 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. |
Definition at line 522 of file multibyte.php.
| static MultiByte::ucfirst | ( | $ | str, | |
| $ | use_enc = null | |||
| ) | [static] |
Makes a string's first character uppercase
| string | $str The string to capitalize. | |
| string | $use_enc The encoding to be used. If null, the internal encoding will be used. |
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).
| string | $str The input string. | |
| string | $use_enc The encoding to be used. If null, the internal encoding will be used. |
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)
| string | $str the string to check |
Definition at line 410 of file multibyte.php.
Referenced by InputFilter::filter().
1.7.1