Final Class Symfony\Polyfill\Mbstring\Mbstring

InheritanceSymfony\Polyfill\Mbstring\Mbstring

Partial mbstring implementation in PHP, iconv based, UTF-8 centric.

Implemented:

  • mb_convert_encoding - Convert character encoding
  • mb_convert_variables - Convert character code in variable(s)
  • mb_decode_mimeheader - Decode string in MIME header field
  • mb_encode_mimeheader - Encode string for MIME header XXX NATIVE IMPLEMENTATION IS REALLY BUGGED
  • mb_convert_case - Perform case folding on a string
  • mb_get_info - Get internal settings of mbstring
  • mb_http_input - Detect HTTP input character encoding
  • mb_http_output - Set/Get HTTP output character encoding
  • mb_internal_encoding - Set/Get internal character encoding
  • mb_list_encodings - Returns an array of all supported encodings
  • mb_output_handler - Callback function converts character encoding in output buffer
  • mb_strlen - Get string length
  • mb_strpos - Find position of first occurrence of string in a string
  • mb_strrpos - Find position of last occurrence of a string in a string
  • mb_strtolower - Make a string lowercase
  • mb_strtoupper - Make a string uppercase
  • mb_substitute_character - Set/Get substitution character
  • mb_substr - Get part of string
  • mb_stripos - Finds position of first occurrence of a string within another, case insensitive
  • mb_stristr - Finds first occurrence of a string within another, case insensitive
  • mb_strrchr - Finds the last occurrence of a character in a string within another
  • mb_strrichr - Finds the last occurrence of a character in a string within another, case insensitive
  • mb_strripos - Finds position of last occurrence of a string within another, case insensitive
  • mb_strstr - Finds first occurrence of a string within anothers
  • mb_strwidth - Return width of string
  • mb_substr_count - Count the number of substring occurrences

Not implemented:

  • mb_convert_kana - Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
  • mb_decode_numericentity - Decode HTML numeric string reference to character
  • mb_encode_numericentity - Encode character to HTML numeric string reference
  • mbereg* - Regular expression with multibyte support
  • mb_parse_str - Parse GET/POST/COOKIE data and set global variable
  • mb_preferred_mime_name - Get MIME charset string
  • mb_regex_encoding - Returns current encoding for multibyte regex as string
  • mb_regex_set_options - Set/Get the default options for mbregex functions
  • mb_send_mail - Send encoded mail
  • mb_split - Split multibyte string using regular expression
  • mb_strcut - Get part of string
  • mb_strimwidth - Get truncated string with specified width

Public Methods

Hide inherited methods

MethodDescriptionDefined By
mb_check_encoding() Symfony\Polyfill\Mbstring\Mbstring
mb_convert_case() Symfony\Polyfill\Mbstring\Mbstring
mb_convert_encoding() Symfony\Polyfill\Mbstring\Mbstring
mb_convert_variables() Symfony\Polyfill\Mbstring\Mbstring
mb_decode_mimeheader() Symfony\Polyfill\Mbstring\Mbstring
mb_detect_encoding() Symfony\Polyfill\Mbstring\Mbstring
mb_detect_order() Symfony\Polyfill\Mbstring\Mbstring
mb_encode_mimeheader() Symfony\Polyfill\Mbstring\Mbstring
mb_encoding_aliases() Symfony\Polyfill\Mbstring\Mbstring
mb_get_info() Symfony\Polyfill\Mbstring\Mbstring
mb_http_input() Symfony\Polyfill\Mbstring\Mbstring
mb_http_output() Symfony\Polyfill\Mbstring\Mbstring
mb_internal_encoding() Symfony\Polyfill\Mbstring\Mbstring
mb_language() Symfony\Polyfill\Mbstring\Mbstring
mb_list_encodings() Symfony\Polyfill\Mbstring\Mbstring
mb_output_handler() Symfony\Polyfill\Mbstring\Mbstring
mb_stripos() Symfony\Polyfill\Mbstring\Mbstring
mb_stristr() Symfony\Polyfill\Mbstring\Mbstring
mb_strlen() Symfony\Polyfill\Mbstring\Mbstring
mb_strpos() Symfony\Polyfill\Mbstring\Mbstring
mb_strrchr() Symfony\Polyfill\Mbstring\Mbstring
mb_strrichr() Symfony\Polyfill\Mbstring\Mbstring
mb_strripos() Symfony\Polyfill\Mbstring\Mbstring
mb_strrpos() Symfony\Polyfill\Mbstring\Mbstring
mb_strstr() Symfony\Polyfill\Mbstring\Mbstring
mb_strtolower() Symfony\Polyfill\Mbstring\Mbstring
mb_strtoupper() Symfony\Polyfill\Mbstring\Mbstring
mb_strwidth() Symfony\Polyfill\Mbstring\Mbstring
mb_substitute_character() Symfony\Polyfill\Mbstring\Mbstring
mb_substr() Symfony\Polyfill\Mbstring\Mbstring
mb_substr_count() Symfony\Polyfill\Mbstring\Mbstring

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
MB_CASE_FOLD PHP_INT_MAX Symfony\Polyfill\Mbstring\Mbstring

Method Details

mb_check_encoding() public static method

public static void mb_check_encoding ( $var null, $encoding null )
$var
$encoding
mb_convert_case() public static method

public static void mb_convert_case ( $s, $mode, $encoding null )
$s
$mode
$encoding
mb_convert_encoding() public static method

public static void mb_convert_encoding ( $s, $toEncoding, $fromEncoding null )
$s
$toEncoding
$fromEncoding
mb_convert_variables() public static method

public static void mb_convert_variables ( $toEncoding, $fromEncoding, &$a null, &$b null, &$c null, &$d null, &$e null, &$f null )
$toEncoding
$fromEncoding
$a
$b
$c
$d
$e
$f
mb_decode_mimeheader() public static method

public static void mb_decode_mimeheader ( $s )
$s
mb_detect_encoding() public static method

public static void mb_detect_encoding ( $str, $encodingList null, $strict false )
$str
$encodingList
$strict
mb_detect_order() public static method

public static void mb_detect_order ( $encodingList null )
$encodingList
mb_encode_mimeheader() public static method

public static void mb_encode_mimeheader ( $s, $charset null, $transferEncoding null, $linefeed null, $indent null )
$s
$charset
$transferEncoding
$linefeed
$indent
mb_encoding_aliases() public static method

public static void mb_encoding_aliases ( $encoding )
$encoding
mb_get_info() public static method

public static void mb_get_info ( $type 'all' )
$type
mb_http_input() public static method

public static void mb_http_input ( $type '' )
$type
mb_http_output() public static method

public static void mb_http_output ( $encoding null )
$encoding
mb_internal_encoding() public static method

public static void mb_internal_encoding ( $encoding null )
$encoding
mb_language() public static method

public static void mb_language ( $lang null )
$lang
mb_list_encodings() public static method

public static void mb_list_encodings ( )
mb_output_handler() public static method

public static void mb_output_handler ( $contents, $status )
$contents
$status
mb_stripos() public static method

public static void mb_stripos ( $haystack, $needle, $offset 0, $encoding null )
$haystack
$needle
$offset
$encoding
mb_stristr() public static method

public static void mb_stristr ( $haystack, $needle, $part false, $encoding null )
$haystack
$needle
$part
$encoding
mb_strlen() public static method

public static void mb_strlen ( $s, $encoding null )
$s
$encoding
mb_strpos() public static method

public static void mb_strpos ( $haystack, $needle, $offset 0, $encoding null )
$haystack
$needle
$offset
$encoding
mb_strrchr() public static method

public static void mb_strrchr ( $haystack, $needle, $part false, $encoding null )
$haystack
$needle
$part
$encoding
mb_strrichr() public static method

public static void mb_strrichr ( $haystack, $needle, $part false, $encoding null )
$haystack
$needle
$part
$encoding
mb_strripos() public static method

public static void mb_strripos ( $haystack, $needle, $offset 0, $encoding null )
$haystack
$needle
$offset
$encoding
mb_strrpos() public static method

public static void mb_strrpos ( $haystack, $needle, $offset 0, $encoding null )
$haystack
$needle
$offset
$encoding
mb_strstr() public static method

public static void mb_strstr ( $haystack, $needle, $part false, $encoding null )
$haystack
$needle
$part
$encoding
mb_strtolower() public static method

public static void mb_strtolower ( $s, $encoding null )
$s
$encoding
mb_strtoupper() public static method

public static void mb_strtoupper ( $s, $encoding null )
$s
$encoding
mb_strwidth() public static method

public static void mb_strwidth ( $s, $encoding null )
$s
$encoding
mb_substitute_character() public static method

public static void mb_substitute_character ( $c null )
$c
mb_substr() public static method

public static void mb_substr ( $s, $start, $length null, $encoding null )
$s
$start
$length
$encoding
mb_substr_count() public static method

public static void mb_substr_count ( $haystack, $needle, $encoding null )
$haystack
$needle
$encoding