iconv.stub.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /** @generate-class-entries */
  3. function iconv_strlen(string $string, ?string $encoding = null): int|false {}
  4. /** @refcount 1 */
  5. function iconv_substr(string $string, int $offset, ?int $length = null, ?string $encoding = null): string|false {}
  6. function iconv_strpos(string $haystack, string $needle, int $offset = 0, ?string $encoding = null): int|false {}
  7. function iconv_strrpos(string $haystack, string $needle, ?string $encoding = null): int|false {}
  8. /** @refcount 1 */
  9. function iconv_mime_encode(string $field_name, string $field_value, array $options = []): string|false {}
  10. /** @refcount 1 */
  11. function iconv_mime_decode(string $string, int $mode = 0, ?string $encoding = null): string|false {}
  12. /**
  13. * @return array<string, string|array>|false
  14. * @refcount 1
  15. */
  16. function iconv_mime_decode_headers(string $headers, int $mode = 0, ?string $encoding = null): array|false {}
  17. /** @refcount 1 */
  18. function iconv(string $from_encoding, string $to_encoding, string $string): string|false {}
  19. function iconv_set_encoding(string $type, string $encoding): bool {}
  20. /**
  21. * @return array<string, string>|string|false
  22. * @refcount 1
  23. */
  24. function iconv_get_encoding(string $type = "all"): array|string|false {}