converter.stub.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /** @generate-class-entries */
  3. class UConverter
  4. {
  5. public function __construct(?string $destination_encoding = null, ?string $source_encoding = null) {}
  6. /** @tentative-return-type */
  7. public function convert(string $str, bool $reverse = false): string|false {}
  8. /**
  9. * @param int $error
  10. * @tentative-return-type
  11. */
  12. public function fromUCallback(int $reason, array $source, int $codePoint, &$error): string|int|array|null {}
  13. /**
  14. * @return array<int, string>|false|null
  15. * @tentative-return-type
  16. */
  17. public static function getAliases(string $name): array|false|null {}
  18. /**
  19. * @return array<int, string>
  20. * @tentative-return-type
  21. */
  22. public static function getAvailable(): array {}
  23. /** @tentative-return-type */
  24. public function getDestinationEncoding(): string|false|null {}
  25. /** @tentative-return-type */
  26. public function getDestinationType(): int|false|null {}
  27. /** @tentative-return-type */
  28. public function getErrorCode(): int {}
  29. /** @tentative-return-type */
  30. public function getErrorMessage(): ?string {}
  31. /** @tentative-return-type */
  32. public function getSourceEncoding(): string|false|null {}
  33. /** @tentative-return-type */
  34. public function getSourceType(): int|false|null {}
  35. /** @tentative-return-type */
  36. public static function getStandards(): ?array {}
  37. /** @tentative-return-type */
  38. public function getSubstChars(): string|false|null {}
  39. /** @tentative-return-type */
  40. public static function reasonText(int $reason): string {}
  41. /** @tentative-return-type */
  42. public function setDestinationEncoding(string $encoding): bool {}
  43. /** @tentative-return-type */
  44. public function setSourceEncoding(string $encoding): bool {}
  45. /** @tentative-return-type */
  46. public function setSubstChars(string $chars): bool {}
  47. /**
  48. * @param int $error
  49. * @tentative-return-type
  50. */
  51. public function toUCallback(int $reason, string $source, string $codeUnits, &$error): string|int|array|null {}
  52. /** @tentative-return-type */
  53. public static function transcode(string $str, string $toEncoding, string $fromEncoding, ?array $options = null): string|false {}
  54. }