PageRenderTime 50ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/configuration/org.eclipse.osgi/bundles/322/1/.cp/Resources/language/php5.4/ereg.php

https://bitbucket.org/2GAndre/myeclipse4php
PHP | 209 lines | 9 code | 9 blank | 191 comment | 0 complexity | d6e15b4acdcb89eabc480f979dfa501a MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <?php
  2. // Start of ereg v.
  3. /**
  4. * Regular expression match
  5. * @link http://www.php.net/manual/en/function.ereg.php
  6. * @param pattern string <p>
  7. * Case sensitive regular expression.
  8. * </p>
  9. * @param string string <p>
  10. * The input string.
  11. * </p>
  12. * @param regs array[optional] <p>
  13. * If matches are found for parenthesized substrings of
  14. * pattern and the function is called with the
  15. * third argument regs, the matches will be stored
  16. * in the elements of the array regs.
  17. * </p>
  18. * <p>
  19. * $regs[1] will contain the substring which starts at
  20. * the first left parenthesis; $regs[2] will contain
  21. * the substring starting at the second, and so on.
  22. * $regs[0] will contain a copy of the complete string
  23. * matched.
  24. * </p>
  25. * @return int the length of the matched string if a match for
  26. * pattern was found in string,
  27. * or false if no matches were found or an error occurred.
  28. * </p>
  29. * <p>
  30. * If the optional parameter regs was not passed or
  31. * the length of the matched string is 0, this function returns 1.
  32. */
  33. function ereg ($pattern, $string, array &$regs = null) {}
  34. /**
  35. * Replace regular expression
  36. * @link http://www.php.net/manual/en/function.ereg-replace.php
  37. * @param pattern string <p>
  38. * A POSIX extended regular expression.
  39. * </p>
  40. * @param replacement string <p>
  41. * If pattern contains parenthesized substrings,
  42. * replacement may contain substrings of the form
  43. * \\digit, which will be
  44. * replaced by the text matching the digit'th parenthesized substring;
  45. * \\0 will produce the entire contents of string.
  46. * Up to nine substrings may be used. Parentheses may be nested, in which
  47. * case they are counted by the opening parenthesis.
  48. * </p>
  49. * @param string string <p>
  50. * The input string.
  51. * </p>
  52. * @return string The modified string is returned. If no matches are found in
  53. * string, then it will be returned unchanged.
  54. */
  55. function ereg_replace ($pattern, $replacement, $string) {}
  56. /**
  57. * Case insensitive regular expression match
  58. * @link http://www.php.net/manual/en/function.eregi.php
  59. * @param pattern string <p>
  60. * Case insensitive regular expression.
  61. * </p>
  62. * @param string string <p>
  63. * The input string.
  64. * </p>
  65. * @param regs array[optional] <p>
  66. * If matches are found for parenthesized substrings of
  67. * pattern and the function is called with the
  68. * third argument regs, the matches will be stored
  69. * in the elements of the array regs.
  70. * </p>
  71. * <p>
  72. * $regs[1] will contain the substring which starts at the first left
  73. * parenthesis; $regs[2] will contain the substring starting at the
  74. * second, and so on. $regs[0] will contain a copy of the complete string
  75. * matched.
  76. * </p>
  77. * @return int the length of the matched string if a match for
  78. * pattern was found in string,
  79. * or false if no matches were found or an error occurred.
  80. * </p>
  81. * <p>
  82. * If the optional parameter regs was not passed or
  83. * the length of the matched string is 0, this function returns 1.
  84. */
  85. function eregi ($pattern, $string, array &$regs = null) {}
  86. /**
  87. * Replace regular expression case insensitive
  88. * @link http://www.php.net/manual/en/function.eregi-replace.php
  89. * @param pattern string <p>
  90. * A POSIX extended regular expression.
  91. * </p>
  92. * @param replacement string <p>
  93. * If pattern contains parenthesized substrings,
  94. * replacement may contain substrings of the form
  95. * \\digit, which will be
  96. * replaced by the text matching the digit'th parenthesized substring;
  97. * \\0 will produce the entire contents of string.
  98. * Up to nine substrings may be used. Parentheses may be nested, in which
  99. * case they are counted by the opening parenthesis.
  100. * </p>
  101. * @param string string <p>
  102. * The input string.
  103. * </p>
  104. * @return string The modified string is returned. If no matches are found in
  105. * string, then it will be returned unchanged.
  106. */
  107. function eregi_replace ($pattern, $replacement, $string) {}
  108. /**
  109. * Split string into array by regular expression
  110. * @link http://www.php.net/manual/en/function.split.php
  111. * @param pattern string <p>
  112. * Case sensitive regular expression.
  113. * </p>
  114. * <p>
  115. * If you want to split on any of the characters which are considered
  116. * special by regular expressions, you'll need to escape them first. If
  117. * you think split (or any other regex function, for
  118. * that matter) is doing something weird, please read the file
  119. * regex.7, included in the
  120. * regex/ subdirectory of the PHP distribution. It's
  121. * in manpage format, so you'll want to do something along the lines of
  122. * man /usr/local/src/regex/regex.7 in order to read it.
  123. * </p>
  124. * @param string string <p>
  125. * The input string.
  126. * </p>
  127. * @param limit int[optional] <p>
  128. * If limit is set, the returned array will
  129. * contain a maximum of limit elements with the
  130. * last element containing the whole rest of
  131. * string.
  132. * </p>
  133. * @return array an array of strings, each of which is a substring of
  134. * string formed by splitting it on boundaries formed
  135. * by the case-sensitive regular expression pattern.
  136. * </p>
  137. * <p>
  138. * If there are n occurrences of
  139. * pattern, the returned array will contain
  140. * n+1 items. For example, if
  141. * there is no occurrence of pattern, an array with
  142. * only one element will be returned. Of course, this is also true if
  143. * string is empty. If an error occurs,
  144. * split returns false.
  145. */
  146. function split ($pattern, $string, $limit = null) {}
  147. /**
  148. * Split string into array by regular expression case insensitive
  149. * @link http://www.php.net/manual/en/function.spliti.php
  150. * @param pattern string <p>
  151. * Case insensitive regular expression.
  152. * </p>
  153. * <p>
  154. * If you want to split on any of the characters which are considered
  155. * special by regular expressions, you'll need to escape them first. If
  156. * you think spliti (or any other regex function, for
  157. * that matter) is doing something weird, please read the file
  158. * regex.7, included in the
  159. * regex/ subdirectory of the PHP distribution. It's
  160. * in manpage format, so you'll want to do something along the lines of
  161. * man /usr/local/src/regex/regex.7 in order to read it.
  162. * </p>
  163. * @param string string <p>
  164. * The input string.
  165. * </p>
  166. * @param limit int[optional] <p>
  167. * If limit is set, the returned array will
  168. * contain a maximum of limit elements with the
  169. * last element containing the whole rest of
  170. * string.
  171. * </p>
  172. * @return array an array of strings, each of which is a substring of
  173. * string formed by splitting it on boundaries formed
  174. * by the case insensitive regular expression pattern.
  175. * </p>
  176. * <p>
  177. * If there are n occurrences of
  178. * pattern, the returned array will contain
  179. * n+1 items. For example, if
  180. * there is no occurrence of pattern, an array with
  181. * only one element will be returned. Of course, this is also true if
  182. * string is empty. If an error occurs,
  183. * spliti returns false.
  184. */
  185. function spliti ($pattern, $string, $limit = null) {}
  186. /**
  187. * Make regular expression for case insensitive match
  188. * @link http://www.php.net/manual/en/function.sql-regcase.php
  189. * @param string string <p>
  190. * The input string.
  191. * </p>
  192. * @return string a valid regular expression which will match
  193. * string, ignoring case. This expression is
  194. * string with each alphabetic character converted to
  195. * a bracket expression; this bracket expression contains that character's
  196. * uppercase and lowercase form. Other characters remain unchanged.
  197. */
  198. function sql_regcase ($string) {}
  199. // End of ereg v.
  200. ?>