PageRenderTime 47ms CodeModel.GetById 13ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/idl/preg.idl.php

https://github.com/larusx/hiphop-php
PHP | 576 lines | 489 code | 13 blank | 74 comment | 10 complexity | 86e2e3f6a7b4246fde7579b6c52015ab MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, BSD-3-Clause, Apache-2.0, LGPL-2.1
  1. <?php
  2. /**
  3. * Automatically generated by running "php schema.php preg".
  4. *
  5. * You may modify the file, but re-running schema.php against this file will
  6. * standardize the format without losing your schema changes. It does lose
  7. * any changes that are not part of schema. Use "note" field to comment on
  8. * schema itself, and "note" fields are not used in any code generation but
  9. * only staying within this file.
  10. */
  11. ///////////////////////////////////////////////////////////////////////////////
  12. // Preamble: C++ code inserted at beginning of ext_{name}.h
  13. DefinePreamble(<<<CPP
  14. CPP
  15. );
  16. ///////////////////////////////////////////////////////////////////////////////
  17. // Constants
  18. //
  19. // array (
  20. // 'name' => name of the constant
  21. // 'type' => type of the constant
  22. // 'note' => additional note about this constant's schema
  23. // )
  24. ///////////////////////////////////////////////////////////////////////////////
  25. // Functions
  26. //
  27. // array (
  28. // 'name' => name of the function
  29. // 'desc' => description of the function's purpose
  30. // 'flags' => attributes of the function, see base.php for possible values
  31. // 'opt' => optimization callback function's name for compiler
  32. // 'note' => additional note about this function's schema
  33. // 'return' =>
  34. // array (
  35. // 'type' => return type, use Reference for ref return
  36. // 'desc' => description of the return value
  37. // )
  38. // 'args' => arguments
  39. // array (
  40. // 'name' => name of the argument
  41. // 'type' => type of the argument, use Reference for output parameter
  42. // 'value' => default value of the argument
  43. // 'desc' => description of the argument
  44. // )
  45. // )
  46. DefineFunction(
  47. array(
  48. 'name' => "preg_grep",
  49. 'desc' => "Returns the array consisting of the elements of the input array that match the given pattern.",
  50. 'flags' => HasDocComment,
  51. 'return' => array(
  52. 'type' => Variant,
  53. 'desc' => "Returns an array indexed using the keys from the input array.",
  54. ),
  55. 'args' => array(
  56. array(
  57. 'name' => "pattern",
  58. 'type' => String,
  59. 'desc' => "The pattern to search for, as a string.",
  60. ),
  61. array(
  62. 'name' => "input",
  63. 'type' => VariantMap,
  64. 'desc' => "The input array.",
  65. ),
  66. array(
  67. 'name' => "flags",
  68. 'type' => Int32,
  69. 'value' => "0",
  70. 'desc' => "If set to PREG_GREP_INVERT, this function returns the elements of the input array that do not match the given pattern.",
  71. ),
  72. ),
  73. 'taint_observer' => false,
  74. ));
  75. DefineFunction(
  76. array(
  77. 'name' => "preg_match",
  78. 'desc' => "Searches subject for a match to the regular expression given in pattern.",
  79. 'flags' => HasDocComment,
  80. 'return' => array(
  81. 'type' => Variant,
  82. 'desc' => "preg_match() returns the number of times pattern matches. That will be either 0 times (no match) or 1 time because preg_match() will stop searching after the first match. preg_match_all() on the contrary will continue until it reaches the end of subject. preg_match() returns FALSE if an error occurred.",
  83. ),
  84. 'args' => array(
  85. array(
  86. 'name' => "pattern",
  87. 'type' => String,
  88. 'desc' => "The pattern to search for, as a string.",
  89. ),
  90. array(
  91. 'name' => "subject",
  92. 'type' => String,
  93. 'desc' => "The input string.",
  94. ),
  95. array(
  96. 'name' => "matches",
  97. 'type' => Variant | Reference,
  98. 'value' => "null",
  99. 'desc' => "If matches is provided, then it is filled with the results of search. \$matches[0] will contain the text that matched the full pattern, \$matches[1] will have the text that matched the first captured parenthesized subpattern, and so on.",
  100. ),
  101. array(
  102. 'name' => "flags",
  103. 'type' => Int32,
  104. 'value' => "0",
  105. 'desc' => "flags can be the following flag: PREG_OFFSET_CAPTURE If this flag is passed, for every occurring match the appendant string offset will also be returned. Note that this changes the value of matches into an array where every element is an array consisting of the matched string at offset 0 and its string offset into subject at offset 1.",
  106. ),
  107. array(
  108. 'name' => "offset",
  109. 'type' => Int32,
  110. 'value' => "0",
  111. 'desc' => "Normally, the search starts from the beginning of the subject string. The optional parameter offset can be used to specify the alternate place from which to start the search (in bytes).\n\nUsing offset is not equivalent to passing substr(\$subject, \$offset) to preg_match() in place of the subject string, because pattern can contain assertions such as ^, \$ or (?<=x). Compare:\n\nArray ( )\n\nwhile this example\n\n\n\nwill produce Array ( [0] => Array ( [0] => def [1] => 0 ) )",
  112. ),
  113. ),
  114. 'taint_observer' => false,
  115. ));
  116. DefineFunction(
  117. array(
  118. 'name' => "preg_match_all",
  119. 'desc' => "Searches subject for all matches to the regular expression given in pattern and puts them in matches in the order specified by flags.\n\nAfter the first match is found, the subsequent searches are continued on from end of the last match.",
  120. 'flags' => HasDocComment,
  121. 'return' => array(
  122. 'type' => Variant,
  123. 'desc' => "Returns the number of full pattern matches (which might be zero), or FALSE if an error occurred.",
  124. ),
  125. 'args' => array(
  126. array(
  127. 'name' => "pattern",
  128. 'type' => String,
  129. 'desc' => "The pattern to search for, as a string.",
  130. ),
  131. array(
  132. 'name' => "subject",
  133. 'type' => String,
  134. 'desc' => "The input string.",
  135. ),
  136. array(
  137. 'name' => "matches",
  138. 'type' => Variant | Reference,
  139. 'desc' => "Array of all matches in multi-dimensional array ordered according to flags.",
  140. ),
  141. array(
  142. 'name' => "flags",
  143. 'type' => Int32,
  144. 'value' => "0",
  145. 'desc' => "Can be a combination of the following flags (note that it doesn't make sense to use PREG_PATTERN_ORDER together with PREG_SET_ORDER): PREG_PATTERN_ORDER\n\nOrders results so that \$matches[0] is an array of full pattern matches, \$matches[1] is an array of strings matched by the first parenthesized subpattern, and so on.\n\n\n\n<b>example: </b>, <div align=left>this is a test</div> example: , this is a test\n\nSo, \$out[0] contains array of strings that matched full pattern, and \$out[1] contains array of strings enclosed by tags.",
  146. ),
  147. array(
  148. 'name' => "offset",
  149. 'type' => Int32,
  150. 'value' => "0",
  151. 'desc' => "Orders results so that \$matches[0] is an array of first set of matches, \$matches[1] is an array of second set of matches, and so on.\n\n<b>example: </b>, example: <div align=\"left\">this is a test</div>, this is a test",
  152. ),
  153. ),
  154. 'taint_observer' => false,
  155. ));
  156. DefineFunction(
  157. array(
  158. 'name' => "preg_replace",
  159. 'desc' => "Searches subject for matches to pattern and replaces them with replacement.",
  160. 'flags' => HasDocComment,
  161. 'return' => array(
  162. 'type' => Variant,
  163. 'desc' => "preg_replace() returns an array if the subject parameter is an array, or a string otherwise.\n\nIf matches are found, the new subject will be returned, otherwise subject will be returned unchanged or NULL if an error occurred.",
  164. ),
  165. 'args' => array(
  166. array(
  167. 'name' => "pattern",
  168. 'type' => Variant,
  169. 'desc' => "The pattern to search for. It can be either a string or an array with strings.\n\nThe e modifier makes preg_replace() treat the replacement parameter as PHP code after the appropriate references substitution is done. Tip: make sure that replacement constitutes a valid PHP code string, otherwise PHP will complain about a parse error at the line containing preg_replace().",
  170. ),
  171. array(
  172. 'name' => "replacement",
  173. 'type' => Variant,
  174. 'desc' => "The string or an array with strings to replace. If this parameter is a string and the pattern parameter is an array, all patterns will be replaced by that string. If both pattern and replacement parameters are arrays, each pattern will be replaced by the replacement counterpart. If there are fewer elements in the replacement array than in the pattern array, any extra patterns will be replaced by an empty string.\n\nreplacement may contain references of the form \\\\n or (since PHP 4.0.4) \$n, with the latter form being the preferred one. Every such reference will be replaced by the text captured by the n'th parenthesized pattern. n can be from 0 to 99, and \\\\0 or \$0 refers to the text matched by the whole pattern. Opening parentheses are counted from left to right (starting from 1) to obtain the number of the capturing subpattern. To use backslash in replacement, it must be doubled (\"\\\\\\\\\" PHP string).\n\nWhen working with a replacement pattern where a backreference is immediately followed by another number (i.e.: placing a literal number immediately after a matched pattern), you cannot use the familiar \\\\1 notation for your backreference. \\\\11, for example, would confuse preg_replace() since it does not know whether you want the \\\\1 backreference followed by a literal 1, or the \\\\11 backreference followed by nothing. In this case the solution is to use \\\${1}1. This creates an isolated \$1 backreference, leaving the 1 as a literal.\n\nWhen using the e modifier, this function escapes some characters (namely ', \", \\ and NULL) in the strings that replace the backreferences. This is done to ensure that no syntax errors arise from backreference usage with either single or double quotes (e.g. 'strlen(\\'\$1\\')+strlen(\"\$2\")'). Make sure you are aware of PHP's string syntax to know exactly how the interpreted string will look like.",
  175. ),
  176. array(
  177. 'name' => "subject",
  178. 'type' => Variant,
  179. 'desc' => "The string or an array with strings to search and replace.\n\nIf subject is an array, then the search and replace is performed on every entry of subject, and the return value is an array as well.",
  180. ),
  181. array(
  182. 'name' => "limit",
  183. 'type' => Int32,
  184. 'value' => "-1",
  185. 'desc' => "The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).",
  186. ),
  187. array(
  188. 'name' => "count",
  189. 'type' => Variant | Reference,
  190. 'value' => "null",
  191. 'desc' => "If specified, this variable will be filled with the number of replacements done.",
  192. ),
  193. ),
  194. 'taint_observer' => array(
  195. 'set_mask' => "TAINT_BIT_NONE",
  196. 'clear_mask' => "TAINT_BIT_NONE",
  197. ),
  198. ));
  199. DefineFunction(
  200. array(
  201. 'name' => "preg_replace_callback",
  202. 'desc' => "The behavior of this function is almost identical to preg_replace(), except for the fact that instead of replacement parameter, one should specify a callback.",
  203. 'flags' => HasDocComment,
  204. 'return' => array(
  205. 'type' => Variant,
  206. 'desc' => "preg_replace_callback() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is NULL\n\nIf matches are found, the new subject will be returned, otherwise subject will be returned unchanged.",
  207. ),
  208. 'args' => array(
  209. array(
  210. 'name' => "pattern",
  211. 'type' => Variant,
  212. 'desc' => "The pattern to search for. It can be either a string or an array with strings.",
  213. ),
  214. array(
  215. 'name' => "callback",
  216. 'type' => Variant,
  217. 'desc' => "A callback that will be called and passed an array of matched elements in the subject string. The callback should return the replacement string.\n\nYou'll often need the callback function for a preg_replace_callback() in just one place. In this case you can use an anonymous function (since PHP 5.3.0) or create_function() to declare an anonymous function as callback within the call to preg_replace_callback(). By doing it this way you have all information for the call in one place and do not clutter the function namespace with a callback function's name not used anywhere else.\n\nExample #1 preg_replace_callback() and create_function()",
  218. ),
  219. array(
  220. 'name' => "subject",
  221. 'type' => Variant,
  222. 'desc' => "The string or an array with strings to search and replace.",
  223. ),
  224. array(
  225. 'name' => "limit",
  226. 'type' => Int32,
  227. 'value' => "-1",
  228. 'desc' => "The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).",
  229. ),
  230. array(
  231. 'name' => "count",
  232. 'type' => Variant | Reference,
  233. 'value' => "null",
  234. 'desc' => "If specified, this variable will be filled with the number of replacements done.",
  235. ),
  236. ),
  237. 'taint_observer' => array(
  238. 'set_mask' => "TAINT_BIT_NONE",
  239. 'clear_mask' => "TAINT_BIT_NONE",
  240. ),
  241. ));
  242. DefineFunction(
  243. array(
  244. 'name' => "preg_split",
  245. 'desc' => "Split the given string by a regular expression.",
  246. 'flags' => HasDocComment,
  247. 'return' => array(
  248. 'type' => Variant,
  249. 'desc' => "Returns an array containing substrings of subject split along boundaries matched by pattern.",
  250. ),
  251. 'args' => array(
  252. array(
  253. 'name' => "pattern",
  254. 'type' => Variant,
  255. 'desc' => "The pattern to search for, as a string.",
  256. ),
  257. array(
  258. 'name' => "subject",
  259. 'type' => Variant,
  260. 'desc' => "The input string.",
  261. ),
  262. array(
  263. 'name' => "limit",
  264. 'type' => Int32,
  265. 'value' => "-1",
  266. 'desc' => "If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1, 0 or null means \"no limit\" and, as is standard across PHP, you can use null to skip to the flags parameter.",
  267. ),
  268. array(
  269. 'name' => "flags",
  270. 'type' => Int32,
  271. 'value' => "0",
  272. 'desc' => "flags can be any combination of the following flags (combined with the | bitwise operator): PREG_SPLIT_NO_EMPTY If this flag is set, only non-empty pieces will be returned by preg_split().",
  273. ),
  274. ),
  275. 'taint_observer' => array(
  276. 'set_mask' => "TAINT_BIT_MUTATED",
  277. 'clear_mask' => "TAINT_BIT_NONE",
  278. ),
  279. ));
  280. DefineFunction(
  281. array(
  282. 'name' => "preg_quote",
  283. 'desc' => "preg_quote() takes str and puts a backslash in front of every character that is part of the regular expression syntax. This is useful if you have a run-time string that you need to match in some text and the string may contain special regex characters.\n\nThe special regular expression characters are: . \\ + * ? [ ^ ] \$ ( ) { } = ! < > | : -",
  284. 'flags' => HasDocComment,
  285. 'return' => array(
  286. 'type' => String,
  287. 'desc' => "Returns the quoted string.",
  288. ),
  289. 'args' => array(
  290. array(
  291. 'name' => "str",
  292. 'type' => String,
  293. 'desc' => "The input string.",
  294. ),
  295. array(
  296. 'name' => "delimiter",
  297. 'type' => String,
  298. 'value' => "null_string",
  299. 'desc' => "If the optional delimiter is specified, it will also be escaped. This is useful for escaping the delimiter that is required by the PCRE functions. The / is the most commonly used delimiter.",
  300. ),
  301. ),
  302. 'taint_observer' => array(
  303. 'set_mask' => "TAINT_BIT_MUTATED",
  304. 'clear_mask' => "TAINT_BIT_NONE",
  305. ),
  306. ));
  307. DefineFunction(
  308. array(
  309. 'name' => "preg_last_error",
  310. 'desc' => "Returns the error code of the last PCRE regex execution.\n\nExample #1 preg_last_error() example\n\n\n\nBacktrack limit was exhausted!",
  311. 'flags' => HasDocComment,
  312. 'return' => array(
  313. 'type' => Int64,
  314. 'desc' => "Returns one of the following constants (explained on their own page): PREG_NO_ERROR PREG_INTERNAL_ERROR PREG_BACKTRACK_LIMIT_ERROR (see also pcre.backtrack_limit) PREG_RECURSION_LIMIT_ERROR (see also pcre.recursion_limit) PREG_BAD_UTF8_ERROR PREG_BAD_UTF8_OFFSET_ERROR (since PHP 5.3.0)",
  315. ),
  316. 'taint_observer' => false,
  317. ));
  318. DefineFunction(
  319. array(
  320. 'name' => "ereg_replace",
  321. 'flags' => HasDocComment,
  322. 'return' => array(
  323. 'type' => String,
  324. 'desc' => "The modified string is returned. If no matches are found in string, then it will be returned unchanged.",
  325. ),
  326. 'args' => array(
  327. array(
  328. 'name' => "pattern",
  329. 'type' => String,
  330. 'desc' => "A POSIX extended regular expression.",
  331. ),
  332. array(
  333. 'name' => "replacement",
  334. 'type' => String,
  335. 'desc' => "If pattern contains parenthesized substrings, replacement may contain substrings of the form \\\\digit, which will be replaced by the text matching the digit'th parenthesized substring; \\\\0 will produce the entire contents of string. Up to nine substrings may be used. Parentheses may be nested, in which case they are counted by the opening parenthesis.",
  336. ),
  337. array(
  338. 'name' => "str",
  339. 'type' => String,
  340. 'desc' => "The input string.",
  341. ),
  342. ),
  343. 'taint_observer' => array(
  344. 'set_mask' => "TAINT_BIT_NONE",
  345. 'clear_mask' => "TAINT_BIT_NONE",
  346. ),
  347. ));
  348. DefineFunction(
  349. array(
  350. 'name' => "eregi_replace",
  351. 'desc' => "This function is identical to ereg_replace() except that this ignores case distinction when matching alphabetic characters. WarningThis function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.",
  352. 'flags' => HasDocComment,
  353. 'return' => array(
  354. 'type' => String,
  355. 'desc' => "The modified string is returned. If no matches are found in string, then it will be returned unchanged.",
  356. ),
  357. 'args' => array(
  358. array(
  359. 'name' => "pattern",
  360. 'type' => String,
  361. 'desc' => "A POSIX extended regular expression.",
  362. ),
  363. array(
  364. 'name' => "replacement",
  365. 'type' => String,
  366. 'desc' => "If pattern contains parenthesized substrings, replacement may contain substrings of the form \\\\digit, which will be replaced by the text matching the digit'th parenthesized substring; \\\\0 will produce the entire contents of string. Up to nine substrings may be used. Parentheses may be nested, in which case they are counted by the opening parenthesis.",
  367. ),
  368. array(
  369. 'name' => "str",
  370. 'type' => String,
  371. 'desc' => "The input string.",
  372. ),
  373. ),
  374. 'taint_observer' => array(
  375. 'set_mask' => "TAINT_BIT_NONE",
  376. 'clear_mask' => "TAINT_BIT_NONE",
  377. ),
  378. ));
  379. DefineFunction(
  380. array(
  381. 'name' => "ereg",
  382. 'flags' => HasDocComment,
  383. 'return' => array(
  384. 'type' => Variant,
  385. 'desc' => "Returns the length of the matched string if a match for pattern was found in string, or FALSE if no matches were found or an error occurred.\n\nIf the optional parameter regs was not passed or the length of the matched string is 0, this function returns 1.",
  386. ),
  387. 'args' => array(
  388. array(
  389. 'name' => "pattern",
  390. 'type' => String,
  391. 'desc' => "Case sensitive regular expression.",
  392. ),
  393. array(
  394. 'name' => "str",
  395. 'type' => String,
  396. 'desc' => "The input string.",
  397. ),
  398. array(
  399. 'name' => "regs",
  400. 'type' => Variant | Reference,
  401. 'value' => "null",
  402. 'desc' => "If matches are found for parenthesized substrings of pattern and the function is called with the third argument regs, the matches will be stored in the elements of the array regs.\n\n\$regs[1] will contain the substring which starts at the first left parenthesis; \$regs[2] will contain the substring starting at the second, and so on. \$regs[0] will contain a copy of the complete string matched.",
  403. ),
  404. ),
  405. 'taint_observer' => false,
  406. ));
  407. DefineFunction(
  408. array(
  409. 'name' => "eregi",
  410. 'desc' => "This function is identical to ereg() except that it ignores case distinction when matching alphabetic characters. WarningThis function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.",
  411. 'flags' => HasDocComment,
  412. 'return' => array(
  413. 'type' => Variant,
  414. 'desc' => "Returns the length of the matched string if a match for pattern was found in string, or FALSE if no matches were found or an error occurred.\n\nIf the optional parameter regs was not passed or the length of the matched string is 0, this function returns 1.",
  415. ),
  416. 'args' => array(
  417. array(
  418. 'name' => "pattern",
  419. 'type' => String,
  420. 'desc' => "Case insensitive regular expression.",
  421. ),
  422. array(
  423. 'name' => "str",
  424. 'type' => String,
  425. 'desc' => "The input string.",
  426. ),
  427. array(
  428. 'name' => "regs",
  429. 'type' => Variant | Reference,
  430. 'value' => "null",
  431. 'desc' => "If matches are found for parenthesized substrings of pattern and the function is called with the third argument regs, the matches will be stored in the elements of the array regs.\n\n\$regs[1] will contain the substring which starts at the first left parenthesis; \$regs[2] will contain the substring starting at the second, and so on. \$regs[0] will contain a copy of the complete string matched.",
  432. ),
  433. ),
  434. 'taint_observer' => false,
  435. ));
  436. DefineFunction(
  437. array(
  438. 'name' => "split",
  439. 'desc' => "Splits a string into array by regular expression. WarningThis function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.",
  440. 'flags' => HasDocComment,
  441. 'return' => array(
  442. 'type' => Variant,
  443. 'desc' => "Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the case-sensitive regular expression pattern.\n\nIf there are n occurrences of pattern, the returned array will contain n+1 items. For example, if there is no occurrence of pattern, an array with only one element will be returned. Of course, this is also true if string is empty. If an error occurs, split() returns FALSE.",
  444. ),
  445. 'args' => array(
  446. array(
  447. 'name' => "pattern",
  448. 'type' => String,
  449. 'desc' => "Case sensitive regular expression.\n\nIf you want to split on any of the characters which are considered special by regular expressions, you'll need to escape them first. If you think split() (or any other regex function, for that matter) is doing something weird, please read the file regex.7, included in the regex/ subdirectory of the PHP distribution. It's in manpage format, so you'll want to do something along the lines of man /usr/local/src/regex/regex.7 in order to read it.",
  450. ),
  451. array(
  452. 'name' => "str",
  453. 'type' => String,
  454. 'desc' => "The input string.",
  455. ),
  456. array(
  457. 'name' => "limit",
  458. 'type' => Int32,
  459. 'value' => "-1",
  460. 'desc' => "If limit is set, the returned array will contain a maximum of limit elements with the last element containing the whole rest of string.",
  461. ),
  462. ),
  463. 'taint_observer' => array(
  464. 'set_mask' => "TAINT_BIT_NONE",
  465. 'clear_mask' => "TAINT_BIT_NONE",
  466. ),
  467. ));
  468. DefineFunction(
  469. array(
  470. 'name' => "spliti",
  471. 'desc' => "Splits a string into array by regular expression.\n\nThis function is identical to split() except that this ignores case distinction when matching alphabetic characters. WarningThis function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.",
  472. 'flags' => HasDocComment,
  473. 'return' => array(
  474. 'type' => Variant,
  475. 'desc' => "Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the case insensitive regular expression pattern.\n\nIf there are n occurrences of pattern, the returned array will contain n+1 items. For example, if there is no occurrence of pattern, an array with only one element will be returned. Of course, this is also true if string is empty. If an error occurs, spliti() returns FALSE.",
  476. ),
  477. 'args' => array(
  478. array(
  479. 'name' => "pattern",
  480. 'type' => String,
  481. 'desc' => "Case insensitive regular expression.\n\nIf you want to split on any of the characters which are considered special by regular expressions, you'll need to escape them first. If you think spliti() (or any other regex function, for that matter) is doing something weird, please read the file regex.7, included in the regex/ subdirectory of the PHP distribution. It's in manpage format, so you'll want to do something along the lines of man /usr/local/src/regex/regex.7 in order to read it.",
  482. ),
  483. array(
  484. 'name' => "str",
  485. 'type' => String,
  486. 'desc' => "The input string.",
  487. ),
  488. array(
  489. 'name' => "limit",
  490. 'type' => Int32,
  491. 'value' => "-1",
  492. 'desc' => "If limit is set, the returned array will contain a maximum of limit elements with the last element containing the whole rest of string.",
  493. ),
  494. ),
  495. 'taint_observer' => array(
  496. 'set_mask' => "TAINT_BIT_NONE",
  497. 'clear_mask' => "TAINT_BIT_NONE",
  498. ),
  499. ));
  500. DefineFunction(
  501. array(
  502. 'name' => "sql_regcase",
  503. 'desc' => "Creates a regular expression for a case insensitive match. WarningThis function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.",
  504. 'flags' => HasDocComment,
  505. 'return' => array(
  506. 'type' => String,
  507. 'desc' => "Returns a valid regular expression which will match string, ignoring case. This expression is string with each alphabetic character converted to a bracket expression; this bracket expression contains that character's uppercase and lowercase form. Other characters remain unchanged.",
  508. ),
  509. 'args' => array(
  510. array(
  511. 'name' => "str",
  512. 'type' => String,
  513. 'desc' => "The input string.",
  514. ),
  515. ),
  516. 'taint_observer' => array(
  517. 'set_mask' => "TAINT_BIT_MUTATED",
  518. 'clear_mask' => "TAINT_BIT_NONE",
  519. ),
  520. ));
  521. ///////////////////////////////////////////////////////////////////////////////
  522. // Classes
  523. //
  524. // BeginClass
  525. // array (
  526. // 'name' => name of the class
  527. // 'desc' => description of the class's purpose
  528. // 'flags' => attributes of the class, see base.php for possible values
  529. // 'note' => additional note about this class's schema
  530. // 'parent' => parent class name, if any
  531. // 'ifaces' => array of interfaces tihs class implements
  532. // 'bases' => extra internal and special base classes this class requires
  533. // 'footer' => extra C++ inserted at end of class declaration
  534. // )
  535. //
  536. // DefineConstant(..)
  537. // DefineConstant(..)
  538. // ...
  539. // DefineFunction(..)
  540. // DefineFunction(..)
  541. // ...
  542. // DefineProperty
  543. // DefineProperty
  544. //
  545. // array (
  546. // 'name' => name of the property
  547. // 'type' => type of the property
  548. // 'flags' => attributes of the property
  549. // 'desc' => description of the property
  550. // 'note' => additional note about this property's schema
  551. // )
  552. //
  553. // EndClass()