php_pcre.stub.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /** @generate-class-entries */
  3. /** @param array $matches */
  4. function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
  5. /** @param array $matches */
  6. function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {}
  7. /**
  8. * @param int $count
  9. * @return string|array<int|string, string>|null
  10. */
  11. function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
  12. /**
  13. * @param int $count
  14. * @return string|array<int|string, string>|null
  15. */
  16. function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {}
  17. /**
  18. * @param int $count
  19. * @return string|array<int|string, string>|null
  20. */
  21. function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
  22. /** @param int $count */
  23. function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
  24. /**
  25. * @return array<int|string, string|array>|false
  26. * @refcount 1
  27. */
  28. function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
  29. function preg_quote(string $str, ?string $delimiter = null): string {}
  30. /** @refcount 1 */
  31. function preg_grep(string $pattern, array $array, int $flags = 0): array|false {}
  32. function preg_last_error(): int {}
  33. function preg_last_error_msg(): string {}