mbstring.stub.php 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?php
  2. /** @generate-class-entries */
  3. /** @refcount 1 */
  4. function mb_language(?string $language = null): string|bool {}
  5. /** @refcount 1 */
  6. function mb_internal_encoding(?string $encoding = null): string|bool {}
  7. /**
  8. * @return array<int, string>|string|false
  9. * @refcount 1
  10. */
  11. function mb_http_input(?string $type = null): array|string|false {}
  12. /** @refcount 1 */
  13. function mb_http_output(?string $encoding = null): string|bool {}
  14. /**
  15. * @return array<int, string>|true
  16. * @refcount 1
  17. */
  18. function mb_detect_order(array|string|null $encoding = null): array|bool {}
  19. /** @refcount 1 */
  20. function mb_substitute_character(string|int|null $substitute_character = null): string|int|bool {}
  21. /** @refcount 1 */
  22. function mb_preferred_mime_name(string $encoding): string|false {}
  23. /** @param array $result */
  24. function mb_parse_str(string $string, &$result): bool {}
  25. /** @refcount 1 */
  26. function mb_output_handler(string $string, int $status): string {}
  27. function mb_str_split(string $string, int $length = 1, ?string $encoding = null): array {}
  28. function mb_strlen(string $string, ?string $encoding = null): int {}
  29. function mb_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
  30. function mb_strrpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
  31. function mb_stripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
  32. function mb_strripos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
  33. /** @refcount 1 */
  34. function mb_strstr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
  35. /** @refcount 1 */
  36. function mb_strrchr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
  37. /** @refcount 1 */
  38. function mb_stristr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
  39. /** @refcount 1 */
  40. function mb_strrichr(string $haystack, string $needle, bool $before_needle = false, ?string $encoding = null): string|false {}
  41. function mb_substr_count(string $haystack, string $needle, ?string $encoding = null): int {}
  42. /** @refcount 1 */
  43. function mb_substr(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
  44. /** @refcount 1 */
  45. function mb_strcut(string $string, int $start, ?int $length = null, ?string $encoding = null): string {}
  46. function mb_strwidth(string $string, ?string $encoding = null): int {}
  47. /** @refcount 1 */
  48. function mb_strimwidth(string $string, int $start, int $width, string $trim_marker = "", ?string $encoding = null): string {}
  49. /**
  50. * @return array<int|string, mixed>|string|false
  51. * @refcount 1
  52. */
  53. function mb_convert_encoding(array|string $string, string $to_encoding, array|string|null $from_encoding = null): array|string|false {}
  54. /** @refcount 1 */
  55. function mb_convert_case(string $string, int $mode, ?string $encoding = null): string {}
  56. /** @refcount 1 */
  57. function mb_strtoupper(string $string, ?string $encoding = null): string {}
  58. /** @refcount 1 */
  59. function mb_strtolower(string $string, ?string $encoding = null): string {}
  60. /** @refcount 1 */
  61. function mb_detect_encoding(string $string, array|string|null $encodings = null, bool $strict = false): string|false {}
  62. /**
  63. * @return array<int, string>
  64. * @refcount 1
  65. */
  66. function mb_list_encodings(): array {}
  67. /**
  68. * @return array<int, string>
  69. * @refcount 1
  70. */
  71. function mb_encoding_aliases(string $encoding): array {}
  72. /** @refcount 1 */
  73. function mb_encode_mimeheader(string $string, ?string $charset = null, ?string $transfer_encoding = null, string $newline = "\r\n", int $indent = 0): string {}
  74. /** @refcount 1 */
  75. function mb_decode_mimeheader(string $string): string {}
  76. /** @refcount 1 */
  77. function mb_convert_kana(string $string, string $mode = "KV", ?string $encoding = null): string {}
  78. /** @refcount 1 */
  79. function mb_convert_variables(string $to_encoding, array|string $from_encoding, mixed &$var, mixed &...$vars): string|false {}
  80. /** @refcount 1 */
  81. function mb_encode_numericentity(string $string, array $map, ?string $encoding = null, bool $hex = false): string {}
  82. /** @refcount 1 */
  83. function mb_decode_numericentity(string $string, array $map, ?string $encoding = null): string {}
  84. function mb_send_mail(string $to, string $subject, string $message, array|string $additional_headers = [], ?string $additional_params = null): bool {}
  85. /**
  86. * @return array<int|string, int|string|array>|string|int|false
  87. * @refcount 1
  88. */
  89. function mb_get_info(string $type = "all"): array|string|int|false {}
  90. function mb_check_encoding(array|string|null $value = null, ?string $encoding = null): bool {}
  91. function mb_scrub(string $string, ?string $encoding = null): string {}
  92. function mb_ord(string $string, ?string $encoding = null): int|false {}
  93. function mb_chr(int $codepoint, ?string $encoding = null): string|false {}
  94. #ifdef HAVE_MBREGEX
  95. /** @refcount 1 */
  96. function mb_regex_encoding(?string $encoding = null): string|bool {}
  97. /** @param array $matches */
  98. function mb_ereg(string $pattern, string $string, &$matches = null): bool {}
  99. /** @param array $matches */
  100. function mb_eregi(string $pattern, string $string, &$matches = null): bool {}
  101. /** @refcount 1 */
  102. function mb_ereg_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
  103. /** @refcount 1 */
  104. function mb_eregi_replace(string $pattern, string $replacement, string $string, ?string $options = null): string|false|null {}
  105. /** @refcount 1 */
  106. function mb_ereg_replace_callback(string $pattern, callable $callback, string $string, ?string $options = null): string|false|null {}
  107. /**
  108. * @return array<int, string>|false
  109. * @refcount 1
  110. */
  111. function mb_split(string $pattern, string $string, int $limit = -1): array|false {}
  112. function mb_ereg_match(string $pattern, string $string, ?string $options = null): bool {}
  113. function mb_ereg_search(?string $pattern = null, ?string $options = null): bool {}
  114. /**
  115. * @return array<int, int>|false
  116. * @refcount 1
  117. */
  118. function mb_ereg_search_pos(?string $pattern = null, ?string $options = null): array|false {}
  119. /**
  120. * @return array<int|string, string|false>|false
  121. * @refcount 1
  122. */
  123. function mb_ereg_search_regs(?string $pattern = null, ?string $options = null): array|false {}
  124. function mb_ereg_search_init(string $string, ?string $pattern = null, ?string $options = null): bool {}
  125. /**
  126. * @return array<int|string, string|false>|false
  127. * @refcount 1
  128. */
  129. function mb_ereg_search_getregs(): array|false {}
  130. function mb_ereg_search_getpos(): int {}
  131. function mb_ereg_search_setpos(int $offset): bool {}
  132. /** @refcount 1 */
  133. function mb_regex_set_options(?string $options = null): string {}
  134. #endif