Source for file dpmbstring_enabled.php
Documentation is available at dpmbstring_enabled.php
* Maps dp_* to mb_* multibyte functions
* Used when DPSERVER_ENABLE_MBSTRING is set to TRUE in dpserver-ini.php and
* the multibyte extension is enabled in PHP.
* DutchPIPE version 0.4; PHP version 5
* LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
* If you did not receive a copy of the DutchPIPE license, you can obtain one at
* http://dutchpipe.org/license/1_0.txt or by sending a note to
* license@dutchpipe.org, in which case you will be mailed a copy immediately.
* @author Lennert Stock <ls@dutchpipe.org>
* @copyright 2006, 2007 Lennert Stock
* @license http://dutchpipe.org/license/1_0.txt DutchPIPE License
* @version Subversion: $Id: dpmbstring_enabled.php 287 2007-08-21 18:47:19Z ls $
* @link http://dutchpipe.org/manual/package/DutchPIPE
* @see http://www.php.net/manual/en/ref.mbstring.php, dpserver-ini.php,
* dpmbstring_disabled.php
* @param string $to Receiver or receivers of the mail
* @param string $subject Subject of the email to be sent
* @param string $message Message to be sent
* @param string $addHeaders Optional, inserted at end of email header
* @param string $addPara Optional mail program parameters
* @return boolean TRUE on success or FALSE on failure
* @see http://www.php.net/manual/en/function.mail.php,
* http://www.php.net/manual/en/function.mb-send-mail.php
* @param string $string The string being measured for length
* @param string $encoding Optional character encoding
* @return integer length of the given string
* @see http://www.php.net/manual/en/function.strlen.php,
* http://www.php.net/manual/en/function.mb-strlen.php
function dp_strlen($string, $encoding = NULL)
* Finds position of first occurrence of a string
* @param string $haystack The string to search in
* @param string $needle The string to search for
* @param string $offset Optional search offset, default is 0
* @param string $encoding Optional character encoding
* @return mixed Position as an integer, or FALSE if needle was not found
* @see http://www.php.net/manual/en/function.strpos.php,
* http://www.php.net/manual/en/function.mb-strpos.php
function dp_strpos($haystack, $needle, $offset = NULL, $encoding = NULL)
: mb_strpos($haystack, $needle, $offset, $encoding);
* Finds position of last occurrence of a string
* @param string $haystack The string to search in
* @param string $needle The string to search for
* @param string $offset Optional search offset, default is 0
* @param string $encoding Optional character encoding
* @return mixed Position as an integer, or FALSE if needle was not found
* @see http://www.php.net/manual/en/function.strrpos.php,
* http://www.php.net/manual/en/function.mb-strrpos.php
function dp_strrpos($haystack, $needle, $offset = 0, $encoding = NULL)
: mb_strrpos($haystack, $needle, $offset, $encoding);
* @param string $string The input string
* @param string $start Start position
* @param string $length Optional length modifier
* @param string $encoding Optional character encoding
* @return string Extracted part of string
* @see http://www.php.net/manual/en/function.substr.php,
* http://www.php.net/manual/en/function.mb-substr.php
function dp_substr($string, $start, $length = NULL, $encoding = NULL)
: mb_substr($string, $start, $length, $encoding);
function dp_ereg($pattern, $string, $regs = NULL)
: mb_ereg($pattern, $string, $regs);
function dp_eregi($pattern, $string, $regs = NULL)
function dp_split($pattern, $string, $limit = NULL)
|