Your browser must have JavaScript enabled in order to view this page.
 >  >
 
Welcome Guest#216 Login/register    Go to Bottom
Go to Top

Source for file dpmbstring_disabled.php

Documentation is available at dpmbstring_disabled.php

  1. <?php
  2. /**
  3.  * Maps dp_* to mb_* multibyte functions
  4.  *
  5.  * Used when DPSERVER_ENABLE_MBSTRING is set to FALSE in dpserver-ini.php or
  6.  * the multibyte extension is disabled in PHP.
  7.  *
  8.  * DutchPIPE version 0.4; PHP version 5
  9.  *
  10.  * LICENSE: This source file is subject to version 1.0 of the DutchPIPE license.
  11.  * If you did not receive a copy of the DutchPIPE license, you can obtain one at
  12.  * http://dutchpipe.org/license/1_0.txt or by sending a note to
  13.  * license@dutchpipe.org, in which case you will be mailed a copy immediately.
  14.  *
  15.  * @package    DutchPIPE
  16.  * @subpackage lib
  17.  * @author     Lennert Stock <ls@dutchpipe.org>
  18.  * @copyright  2006, 2007 Lennert Stock
  19.  * @license    http://dutchpipe.org/license/1_0.txt  DutchPIPE License
  20.  * @version    Subversion: $Id: dpmbstring_disabled.php 287 2007-08-21 18:47:19Z ls $
  21.  * @link       http://dutchpipe.org/manual/package/DutchPIPE
  22.  * @see        http://www.php.net/manual/en/ref.mbstring.php, dpserver-ini.php,
  23.  *              dpmbstring_enabled.php
  24.  * @since      DutchPIPE 0.4.0
  25.  */
  26.  
  27. /**
  28.  * Sends an email
  29.  *
  30.  * @param      string  $to          Receiver or receivers of the mail
  31.  * @param      string  $subject     Subject of the email to be sent
  32.  * @param      string  $message     Message to be sent
  33.  * @param      string  $addHeaders  Optional, inserted at end of email header
  34.  * @param      string  $addPara     Optional, mail program parameters
  35.  * @return     boolean TRUE on success or FALSE on failure
  36.  * @see        http://www.php.net/manual/en/function.mail.php,
  37.  *              http://www.php.net/manual/en/function.mb-send-mail.php
  38.  * @ignore
  39.  */
  40. function dp_mail()
  41. {
  42.     $args func_get_args();
  43.     return call_user_func_array('mail'$args);
  44. }
  45.  
  46. /**
  47.  * Gets string length
  48.  *
  49.  * @param      string  $string      The string being measured for length
  50.  * @param      string  $encoding    Ignored when given
  51.  * @return     integer length of the given string
  52.  * @see        http://www.php.net/manual/en/function.strlen.php,
  53.  *              http://www.php.net/manual/en/function.mb-strlen.php
  54.  * @ignore
  55.  */
  56. function dp_strlen($string)
  57. {
  58.     return strlen($string);
  59. }
  60.  
  61. /**
  62.  * Finds position of first occurrence of a string
  63.  *
  64.  * @param      string  $haystack    The string to search in
  65.  * @param      string  $needle      The string to search for
  66.  * @param      string  $offset      Optional search offset, default is 0
  67.  * @param      string  $encoding    Ignored when given
  68.  * @return     mixed   Position as an integer, or FALSE if needle was not found
  69.  * @see        http://www.php.net/manual/en/function.strpos.php,
  70.  *              http://www.php.net/manual/en/function.mb-strpos.php
  71.  * @ignore
  72.  */
  73. function dp_strpos($haystack$needle$offset NULL)
  74. {
  75.     return is_null($offset)
  76.         ? strpos($haystack$needlestrpos($haystack$needle$offset);
  77. }
  78.  
  79. /**
  80.  * Finds position of last occurrence of a string
  81.  *
  82.  * @param      string  $haystack    The string to search in
  83.  * @param      string  $needle      The string to search for
  84.  * @param      string  $offset      Optional search offset, default is 0
  85.  * @param      string  $encoding    Ignored when given
  86.  * @return     mixed   Position as an integer, or FALSE if needle was not found
  87.  * @see        http://www.php.net/manual/en/function.strrpos.php,
  88.  *              http://www.php.net/manual/en/function.mb-strrpos.php
  89.  * @ignore
  90.  */
  91. function dp_strrpos($haystack$needle$offset NULL)
  92. {
  93.     return is_null($offset)
  94.         ? strrpos($haystack$needlestrrpos($haystack$needle$offset);
  95. }
  96.  
  97. /**
  98.  * Gets part of a string
  99.  *
  100.  * @param      string  $string      The input string
  101.  * @param      string  $start       Start position
  102.  * @param      string  $length      Optional length modifier
  103.  * @param      string  $encoding    Ignored when given
  104.  * @return     string  Extracted part of string
  105.  * @see        http://www.php.net/manual/en/function.substr.php,
  106.  *              http://www.php.net/manual/en/function.mb-substr.php
  107.  * @ignore
  108.  */
  109. function dp_substr($string$start$length NULL)
  110. {
  111.     return is_null($length)
  112.         ? substr($string$startsubstr($string$start$length);
  113. }
  114.  
  115. /**
  116.  * @ignore
  117.  */
  118. function dp_strtolower($string)
  119. {
  120.     return strtolower($string);
  121. }
  122.  
  123. /**
  124.  * @ignore
  125.  */
  126. function dp_strtoupper($string)
  127. {
  128.     return strtoupper($string);
  129. }
  130.  
  131. /**
  132.  * @ignore
  133.  */
  134. function dp_substr_count($haystack$needle)
  135. {
  136.     return substr_count($haystack$needle);
  137. }
  138.  
  139. /**
  140.  * @ignore
  141.  */
  142. function dp_ereg($pattern$string$regs NULL)
  143. {
  144.     return is_null($regsereg($pattern$string)
  145.         : ereg($pattern$string$regs);
  146. }
  147.  
  148. /**
  149.  * @ignore
  150.  */
  151. function dp_eregi($pattern$string$regs NULL)
  152. {
  153.     return is_null($regseregi($pattern$string)
  154.         : eregi($pattern$string$regs);
  155. }
  156.  
  157. /**
  158.  * @ignore
  159.  */
  160. function dp_ereg_replace($pattern$replacement$string)
  161. {
  162.     return ereg_replace($pattern$replacement$string);
  163. }
  164.  
  165. /**
  166.  * @ignore
  167.  */
  168. function dp_eregi_replace($pattern$replacement$string)
  169. {
  170.     return eregi_replace($pattern$replacement$string);
  171. }
  172.  
  173. /**
  174.  * @ignore
  175.  */
  176. function dp_split($pattern$string$limit NULL)
  177. {
  178.     return is_null($limitsplit($pattern$string)
  179.         : split($pattern$string$limit);
  180. }
  181. ?>

Documentation generated on Mon, 03 Sep 2007 22:19:45 +0200 by phpDocumentor 1.3.0RC6

Click me!
Guest#216
 
 
 
  Go to Top
 
 
Input Field OptionsClose Input Field Go to Top
 
Legal Notices | Copyright © 2006, 2007 Lennert Stock. All rights reserved. Last update: Mon Sep 03 2007, 21:50 CET.