uchar.stub.php 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <?php
  2. /** @generate-class-entries */
  3. class IntlChar
  4. {
  5. /** @tentative-return-type */
  6. public static function hasBinaryProperty(int|string $codepoint, int $property): ?bool {}
  7. /** @tentative-return-type */
  8. public static function charAge(int|string $codepoint): ?array {}
  9. /** @tentative-return-type */
  10. public static function charDigitValue(int|string $codepoint): ?int {}
  11. /** @tentative-return-type */
  12. public static function charDirection(int|string $codepoint): ?int {}
  13. /** @tentative-return-type */
  14. public static function charFromName(string $name, int $type = IntlChar::UNICODE_CHAR_NAME): ?int {}
  15. /** @tentative-return-type */
  16. public static function charMirror(int|string $codepoint): int|string|null {}
  17. /** @tentative-return-type */
  18. public static function charName(int|string $codepoint, int $type = IntlChar::UNICODE_CHAR_NAME): ?string {}
  19. /** @tentative-return-type */
  20. public static function charType(int|string $codepoint): ?int {}
  21. /** @tentative-return-type */
  22. public static function chr(int|string $codepoint): ?string {}
  23. /** @tentative-return-type */
  24. public static function digit(int|string $codepoint, int $base = 10): int|false|null {}
  25. /** @tentative-return-type */
  26. public static function enumCharNames(int|string $start, int|string $end, callable $callback, int $type = IntlChar::UNICODE_CHAR_NAME): ?bool {} // TODO return values just don't make sense
  27. /** @tentative-return-type */
  28. public static function enumCharTypes(callable $callback): void {}
  29. /** @tentative-return-type */
  30. public static function foldCase(int|string $codepoint, int $options = IntlChar::FOLD_CASE_DEFAULT): int|string|null {}
  31. /** @tentative-return-type */
  32. public static function forDigit(int $digit, int $base = 10): int {}
  33. #if U_ICU_VERSION_MAJOR_NUM >= 52
  34. /** @tentative-return-type */
  35. public static function getBidiPairedBracket(int|string $codepoint): int|string|null {}
  36. #endif
  37. /** @tentative-return-type */
  38. public static function getBlockCode(int|string $codepoint): ?int {}
  39. /** @tentative-return-type */
  40. public static function getCombiningClass(int|string $codepoint): ?int {}
  41. /** @tentative-return-type */
  42. public static function getFC_NFKC_Closure(int|string $codepoint): string|false|null {}
  43. /** @tentative-return-type */
  44. public static function getIntPropertyMaxValue(int $property): int {}
  45. /** @tentative-return-type */
  46. public static function getIntPropertyMinValue(int $property): int {}
  47. /** @tentative-return-type */
  48. public static function getIntPropertyValue(int|string $codepoint, int $property): ?int {}
  49. /** @tentative-return-type */
  50. public static function getNumericValue(int|string $codepoint): ?float {}
  51. /** @tentative-return-type */
  52. public static function getPropertyEnum(string $alias): int {}
  53. /** @tentative-return-type */
  54. public static function getPropertyName(int $property, int $type = IntlChar::LONG_PROPERTY_NAME): string|false {}
  55. /** @tentative-return-type */
  56. public static function getPropertyValueEnum(int $property, string $name): int {}
  57. /** @tentative-return-type */
  58. public static function getPropertyValueName(int $property, int $value, int $type = IntlChar::LONG_PROPERTY_NAME): string|false {}
  59. /** @tentative-return-type */
  60. public static function getUnicodeVersion(): array {}
  61. /** @tentative-return-type */
  62. public static function isalnum(int|string $codepoint): ?bool {}
  63. /** @tentative-return-type */
  64. public static function isalpha(int|string $codepoint): ?bool {}
  65. /** @tentative-return-type */
  66. public static function isbase(int|string $codepoint): ?bool {}
  67. /** @tentative-return-type */
  68. public static function isblank(int|string $codepoint): ?bool {}
  69. /** @tentative-return-type */
  70. public static function iscntrl(int|string $codepoint): ?bool {}
  71. /** @tentative-return-type */
  72. public static function isdefined(int|string $codepoint): ?bool {}
  73. /** @tentative-return-type */
  74. public static function isdigit(int|string $codepoint): ?bool {}
  75. /** @tentative-return-type */
  76. public static function isgraph(int|string $codepoint): ?bool {}
  77. /** @tentative-return-type */
  78. public static function isIDIgnorable(int|string $codepoint): ?bool {}
  79. /** @tentative-return-type */
  80. public static function isIDPart(int|string $codepoint): ?bool {}
  81. /** @tentative-return-type */
  82. public static function isIDStart(int|string $codepoint): ?bool {}
  83. /** @tentative-return-type */
  84. public static function isISOControl(int|string $codepoint): ?bool {}
  85. /** @tentative-return-type */
  86. public static function isJavaIDPart(int|string $codepoint): ?bool {}
  87. /** @tentative-return-type */
  88. public static function isJavaIDStart(int|string $codepoint): ?bool {}
  89. /** @tentative-return-type */
  90. public static function isJavaSpaceChar(int|string $codepoint): ?bool {}
  91. /** @tentative-return-type */
  92. public static function islower(int|string $codepoint): ?bool {}
  93. /** @tentative-return-type */
  94. public static function isMirrored(int|string $codepoint): ?bool {}
  95. /** @tentative-return-type */
  96. public static function isprint(int|string $codepoint): ?bool {}
  97. /** @tentative-return-type */
  98. public static function ispunct(int|string $codepoint): ?bool {}
  99. /** @tentative-return-type */
  100. public static function isspace(int|string $codepoint): ?bool {}
  101. /** @tentative-return-type */
  102. public static function istitle(int|string $codepoint): ?bool {}
  103. /** @tentative-return-type */
  104. public static function isUAlphabetic(int|string $codepoint): ?bool {}
  105. /** @tentative-return-type */
  106. public static function isULowercase(int|string $codepoint): ?bool {}
  107. /** @tentative-return-type */
  108. public static function isupper(int|string $codepoint): ?bool {}
  109. /** @tentative-return-type */
  110. public static function isUUppercase(int|string $codepoint): ?bool {}
  111. /** @tentative-return-type */
  112. public static function isUWhiteSpace(int|string $codepoint): ?bool {}
  113. /** @tentative-return-type */
  114. public static function isWhitespace(int|string $codepoint): ?bool {}
  115. /** @tentative-return-type */
  116. public static function isxdigit(int|string $codepoint): ?bool {}
  117. /** @tentative-return-type */
  118. public static function ord(int|string $character): ?int {}
  119. /** @tentative-return-type */
  120. public static function tolower(int|string $codepoint): int|string|null {}
  121. /** @tentative-return-type */
  122. public static function totitle(int|string $codepoint): int|string|null {}
  123. /** @tentative-return-type */
  124. public static function toupper(int|string $codepoint): int|string|null {}
  125. }