bootstrap80.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. use Symfony\Polyfill\Ctype as p;
  11. if (!function_exists('ctype_alnum')) {
  12. function ctype_alnum(mixed $text): bool { return p\Ctype::ctype_alnum($text); }
  13. }
  14. if (!function_exists('ctype_alpha')) {
  15. function ctype_alpha(mixed $text): bool { return p\Ctype::ctype_alpha($text); }
  16. }
  17. if (!function_exists('ctype_cntrl')) {
  18. function ctype_cntrl(mixed $text): bool { return p\Ctype::ctype_cntrl($text); }
  19. }
  20. if (!function_exists('ctype_digit')) {
  21. function ctype_digit(mixed $text): bool { return p\Ctype::ctype_digit($text); }
  22. }
  23. if (!function_exists('ctype_graph')) {
  24. function ctype_graph(mixed $text): bool { return p\Ctype::ctype_graph($text); }
  25. }
  26. if (!function_exists('ctype_lower')) {
  27. function ctype_lower(mixed $text): bool { return p\Ctype::ctype_lower($text); }
  28. }
  29. if (!function_exists('ctype_print')) {
  30. function ctype_print(mixed $text): bool { return p\Ctype::ctype_print($text); }
  31. }
  32. if (!function_exists('ctype_punct')) {
  33. function ctype_punct(mixed $text): bool { return p\Ctype::ctype_punct($text); }
  34. }
  35. if (!function_exists('ctype_space')) {
  36. function ctype_space(mixed $text): bool { return p\Ctype::ctype_space($text); }
  37. }
  38. if (!function_exists('ctype_upper')) {
  39. function ctype_upper(mixed $text): bool { return p\Ctype::ctype_upper($text); }
  40. }
  41. if (!function_exists('ctype_xdigit')) {
  42. function ctype_xdigit(mixed $text): bool { return p\Ctype::ctype_xdigit($text); }
  43. }