IntlChar.php 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368
  1. <?php
  2. /**
  3. * <p>IntlChar provides access to a number of utility methods that can be used to access information about Unicode characters.</p>
  4. * <p>The methods and constants adhere closely to the names and behavior used by the underlying ICU library.</p>
  5. * @since 7.0
  6. */
  7. class IntlChar {
  8. const UNICODE_VERSION = 6.3;
  9. const CODEPOINT_MIN = 0;
  10. const CODEPOINT_MAX = 1114111;
  11. const FOLD_CASE_DEFAULT = 0;
  12. const FOLD_CASE_EXCLUDE_SPECIAL_I = 1;
  13. const PROPERTY_ALPHABETIC = 0;
  14. const PROPERTY_BINARY_START = 0;
  15. const PROPERTY_ASCII_HEX_DIGIT = 1;
  16. const PROPERTY_BIDI_CONTROL = 2;
  17. const PROPERTY_BIDI_MIRRORED = 3;
  18. const PROPERTY_DASH = 4;
  19. const PROPERTY_DEFAULT_IGNORABLE_CODE_POINT = 5;
  20. const PROPERTY_DEPRECATED = 6;
  21. const PROPERTY_DIACRITIC = 7;
  22. const PROPERTY_EXTENDER = 8;
  23. const PROPERTY_FULL_COMPOSITION_EXCLUSION = 9;
  24. const PROPERTY_GRAPHEME_BASE = 10;
  25. const PROPERTY_GRAPHEME_EXTEND = 11;
  26. const PROPERTY_GRAPHEME_LINK = 12;
  27. const PROPERTY_HEX_DIGIT = 13;
  28. const PROPERTY_HYPHEN = 14;
  29. const PROPERTY_ID_CONTINUE = 15;
  30. const PROPERTY_ID_START = 16;
  31. const PROPERTY_IDEOGRAPHIC = 17;
  32. const PROPERTY_IDS_BINARY_OPERATOR = 18;
  33. const PROPERTY_IDS_TRINARY_OPERATOR = 19;
  34. const PROPERTY_JOIN_CONTROL = 20;
  35. const PROPERTY_LOGICAL_ORDER_EXCEPTION = 21;
  36. const PROPERTY_LOWERCASE = 22;
  37. const PROPERTY_MATH = 23;
  38. const PROPERTY_NONCHARACTER_CODE_POINT = 24;
  39. const PROPERTY_QUOTATION_MARK = 25;
  40. const PROPERTY_RADICAL = 26;
  41. const PROPERTY_SOFT_DOTTED = 27;
  42. const PROPERTY_TERMINAL_PUNCTUATION = 28;
  43. const PROPERTY_UNIFIED_IDEOGRAPH = 29;
  44. const PROPERTY_UPPERCASE = 30;
  45. const PROPERTY_WHITE_SPACE = 31;
  46. const PROPERTY_XID_CONTINUE = 32;
  47. const PROPERTY_XID_START = 33;
  48. const PROPERTY_CASE_SENSITIVE = 34;
  49. const PROPERTY_S_TERM = 35;
  50. const PROPERTY_VARIATION_SELECTOR = 36;
  51. const PROPERTY_NFD_INERT = 37;
  52. const PROPERTY_NFKD_INERT = 38;
  53. const PROPERTY_NFC_INERT = 39;
  54. const PROPERTY_NFKC_INERT = 40;
  55. const PROPERTY_SEGMENT_STARTER = 41;
  56. const PROPERTY_PATTERN_SYNTAX = 42;
  57. const PROPERTY_PATTERN_WHITE_SPACE = 43;
  58. const PROPERTY_POSIX_ALNUM = 44;
  59. const PROPERTY_POSIX_BLANK = 45;
  60. const PROPERTY_POSIX_GRAPH = 46;
  61. const PROPERTY_POSIX_PRINT = 47;
  62. const PROPERTY_POSIX_XDIGIT = 48;
  63. const PROPERTY_CASED = 49;
  64. const PROPERTY_CASE_IGNORABLE = 50;
  65. const PROPERTY_CHANGES_WHEN_LOWERCASED = 51;
  66. const PROPERTY_CHANGES_WHEN_UPPERCASED = 52;
  67. const PROPERTY_CHANGES_WHEN_TITLECASED = 53;
  68. const PROPERTY_CHANGES_WHEN_CASEFOLDED = 54;
  69. const PROPERTY_CHANGES_WHEN_CASEMAPPED = 55;
  70. const PROPERTY_CHANGES_WHEN_NFKC_CASEFOLDED = 56;
  71. const PROPERTY_BINARY_LIMIT = 57;
  72. const PROPERTY_BIDI_CLASS = 4096;
  73. const PROPERTY_INT_START = 4096;
  74. const PROPERTY_BLOCK = 4097;
  75. const PROPERTY_CANONICAL_COMBINING_CLASS = 4098;
  76. const PROPERTY_DECOMPOSITION_TYPE = 4099;
  77. const PROPERTY_EAST_ASIAN_WIDTH = 4100;
  78. const PROPERTY_GENERAL_CATEGORY = 4101;
  79. const PROPERTY_JOINING_GROUP = 4102;
  80. const PROPERTY_JOINING_TYPE = 4103;
  81. const PROPERTY_LINE_BREAK = 4104;
  82. const PROPERTY_NUMERIC_TYPE = 4105;
  83. const PROPERTY_SCRIPT = 4106;
  84. const PROPERTY_HANGUL_SYLLABLE_TYPE = 4107;
  85. const PROPERTY_NFD_QUICK_CHECK = 4108;
  86. const PROPERTY_NFKD_QUICK_CHECK = 4109;
  87. const PROPERTY_NFC_QUICK_CHECK = 4110;
  88. const PROPERTY_NFKC_QUICK_CHECK = 4111;
  89. const PROPERTY_LEAD_CANONICAL_COMBINING_CLASS = 4112;
  90. const PROPERTY_TRAIL_CANONICAL_COMBINING_CLASS = 4113;
  91. const PROPERTY_GRAPHEME_CLUSTER_BREAK = 4114;
  92. const PROPERTY_SENTENCE_BREAK = 4115;
  93. const PROPERTY_WORD_BREAK = 4116;
  94. const PROPERTY_BIDI_PAIRED_BRACKET_TYPE = 4117;
  95. const PROPERTY_INT_LIMIT = 4118;
  96. const PROPERTY_GENERAL_CATEGORY_MASK = 8192;
  97. const PROPERTY_MASK_START = 8192;
  98. const PROPERTY_MASK_LIMIT = 8193;
  99. const PROPERTY_NUMERIC_VALUE = 12288;
  100. const PROPERTY_DOUBLE_START = 12288;
  101. const PROPERTY_DOUBLE_LIMIT = 12289;
  102. const PROPERTY_AGE = 16384;
  103. const PROPERTY_STRING_START = 16384;
  104. const PROPERTY_BIDI_MIRRORING_GLYPH = 16385;
  105. const PROPERTY_CASE_FOLDING = 16386;
  106. const PROPERTY_ISO_COMMENT = 16387;
  107. const PROPERTY_LOWERCASE_MAPPING = 16388;
  108. const PROPERTY_NAME = 16389;
  109. const PROPERTY_SIMPLE_CASE_FOLDING = 16390;
  110. const PROPERTY_SIMPLE_LOWERCASE_MAPPING = 16391;
  111. const PROPERTY_SIMPLE_TITLECASE_MAPPING = 16392;
  112. const PROPERTY_SIMPLE_UPPERCASE_MAPPING = 16393;
  113. const PROPERTY_TITLECASE_MAPPING = 16394;
  114. const PROPERTY_UNICODE_1_NAME = 16395;
  115. const PROPERTY_UPPERCASE_MAPPING = 16396;
  116. const PROPERTY_BIDI_PAIRED_BRACKET = 16397;
  117. const PROPERTY_STRING_LIMIT = 16398;
  118. const PROPERTY_SCRIPT_EXTENSIONS = 28672;
  119. const PROPERTY_OTHER_PROPERTY_START = 28672;
  120. const PROPERTY_OTHER_PROPERTY_LIMIT = 28673;
  121. const PROPERTY_INVALID_CODE = -1;
  122. const CHAR_CATEGORY_UNASSIGNED = 0;
  123. const CHAR_CATEGORY_GENERAL_OTHER_TYPES = 0;
  124. const CHAR_CATEGORY_UPPERCASE_LETTER = 1;
  125. const CHAR_CATEGORY_LOWERCASE_LETTER = 2;
  126. const CHAR_CATEGORY_TITLECASE_LETTER = 3;
  127. const CHAR_CATEGORY_MODIFIER_LETTER = 4;
  128. const CHAR_CATEGORY_OTHER_LETTER = 5;
  129. const CHAR_CATEGORY_NON_SPACING_MARK = 6;
  130. const CHAR_CATEGORY_ENCLOSING_MARK = 7;
  131. const CHAR_CATEGORY_COMBINING_SPACING_MARK = 8;
  132. const CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER = 9;
  133. const CHAR_CATEGORY_LETTER_NUMBER = 10;
  134. const CHAR_CATEGORY_OTHER_NUMBER = 11;
  135. const CHAR_CATEGORY_SPACE_SEPARATOR = 12;
  136. const CHAR_CATEGORY_LINE_SEPARATOR = 13;
  137. const CHAR_CATEGORY_PARAGRAPH_SEPARATOR = 14;
  138. const CHAR_CATEGORY_CONTROL_CHAR = 15;
  139. const CHAR_CATEGORY_FORMAT_CHAR = 16;
  140. const CHAR_CATEGORY_PRIVATE_USE_CHAR = 17;
  141. const CHAR_CATEGORY_SURROGATE = 18;
  142. const CHAR_CATEGORY_DASH_PUNCTUATION = 19;
  143. const CHAR_CATEGORY_START_PUNCTUATION = 20;
  144. const CHAR_CATEGORY_END_PUNCTUATION = 21;
  145. const CHAR_CATEGORY_CONNECTOR_PUNCTUATION = 22;
  146. const CHAR_CATEGORY_OTHER_PUNCTUATION = 23;
  147. const CHAR_CATEGORY_MATH_SYMBOL = 24;
  148. const CHAR_CATEGORY_CURRENCY_SYMBOL = 25;
  149. const CHAR_CATEGORY_MODIFIER_SYMBOL = 26;
  150. const CHAR_CATEGORY_OTHER_SYMBOL = 27;
  151. const CHAR_CATEGORY_INITIAL_PUNCTUATION = 28;
  152. const CHAR_CATEGORY_FINAL_PUNCTUATION = 29;
  153. const CHAR_CATEGORY_CHAR_CATEGORY_COUNT = 30;
  154. const CHAR_DIRECTION_LEFT_TO_RIGHT = 0;
  155. const CHAR_DIRECTION_RIGHT_TO_LEFT = 1;
  156. const CHAR_DIRECTION_EUROPEAN_NUMBER = 2;
  157. const CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATOR = 3;
  158. const CHAR_DIRECTION_EUROPEAN_NUMBER_TERMINATOR = 4;
  159. const CHAR_DIRECTION_ARABIC_NUMBER = 5;
  160. const CHAR_DIRECTION_COMMON_NUMBER_SEPARATOR = 6;
  161. const CHAR_DIRECTION_BLOCK_SEPARATOR = 7;
  162. const CHAR_DIRECTION_SEGMENT_SEPARATOR = 8;
  163. const CHAR_DIRECTION_WHITE_SPACE_NEUTRAL = 9;
  164. const CHAR_DIRECTION_OTHER_NEUTRAL = 10;
  165. const CHAR_DIRECTION_LEFT_TO_RIGHT_EMBEDDING = 11;
  166. const CHAR_DIRECTION_LEFT_TO_RIGHT_OVERRIDE = 12;
  167. const CHAR_DIRECTION_RIGHT_TO_LEFT_ARABIC = 13;
  168. const CHAR_DIRECTION_RIGHT_TO_LEFT_EMBEDDING = 14;
  169. const CHAR_DIRECTION_RIGHT_TO_LEFT_OVERRIDE = 15;
  170. const CHAR_DIRECTION_POP_DIRECTIONAL_FORMAT = 16;
  171. const CHAR_DIRECTION_DIR_NON_SPACING_MARK = 17;
  172. const CHAR_DIRECTION_BOUNDARY_NEUTRAL = 18;
  173. const CHAR_DIRECTION_FIRST_STRONG_ISOLATE = 19;
  174. const CHAR_DIRECTION_LEFT_TO_RIGHT_ISOLATE = 20;
  175. const CHAR_DIRECTION_RIGHT_TO_LEFT_ISOLATE = 21;
  176. const CHAR_DIRECTION_POP_DIRECTIONAL_ISOLATE = 22;
  177. const CHAR_DIRECTION_CHAR_DIRECTION_COUNT = 23;
  178. const BLOCK_CODE_NO_BLOCK = 0;
  179. const BLOCK_CODE_BASIC_LATIN = 1;
  180. const BLOCK_CODE_LATIN_1_SUPPLEMENT = 2;
  181. const BLOCK_CODE_LATIN_EXTENDED_A = 3;
  182. const BLOCK_CODE_LATIN_EXTENDED_B = 4;
  183. const BLOCK_CODE_IPA_EXTENSIONS = 5;
  184. const BLOCK_CODE_SPACING_MODIFIER_LETTERS = 6;
  185. const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS = 7;
  186. const BLOCK_CODE_GREEK = 8;
  187. const BLOCK_CODE_CYRILLIC = 9;
  188. const BLOCK_CODE_ARMENIAN = 10;
  189. const BLOCK_CODE_HEBREW = 11;
  190. const BLOCK_CODE_ARABIC = 12;
  191. const BLOCK_CODE_SYRIAC = 13;
  192. const BLOCK_CODE_THAANA = 14;
  193. const BLOCK_CODE_DEVANAGARI = 15;
  194. const BLOCK_CODE_BENGALI = 16;
  195. const BLOCK_CODE_GURMUKHI = 17;
  196. const BLOCK_CODE_GUJARATI = 18;
  197. const BLOCK_CODE_ORIYA = 19;
  198. const BLOCK_CODE_TAMIL = 20;
  199. const BLOCK_CODE_TELUGU = 21;
  200. const BLOCK_CODE_KANNADA = 22;
  201. const BLOCK_CODE_MALAYALAM = 23;
  202. const BLOCK_CODE_SINHALA = 24;
  203. const BLOCK_CODE_THAI = 25;
  204. const BLOCK_CODE_LAO = 26;
  205. const BLOCK_CODE_TIBETAN = 27;
  206. const BLOCK_CODE_MYANMAR = 28;
  207. const BLOCK_CODE_GEORGIAN = 29;
  208. const BLOCK_CODE_HANGUL_JAMO = 30;
  209. const BLOCK_CODE_ETHIOPIC = 31;
  210. const BLOCK_CODE_CHEROKEE = 32;
  211. const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS = 33;
  212. const BLOCK_CODE_OGHAM = 34;
  213. const BLOCK_CODE_RUNIC = 35;
  214. const BLOCK_CODE_KHMER = 36;
  215. const BLOCK_CODE_MONGOLIAN = 37;
  216. const BLOCK_CODE_LATIN_EXTENDED_ADDITIONAL = 38;
  217. const BLOCK_CODE_GREEK_EXTENDED = 39;
  218. const BLOCK_CODE_GENERAL_PUNCTUATION = 40;
  219. const BLOCK_CODE_SUPERSCRIPTS_AND_SUBSCRIPTS = 41;
  220. const BLOCK_CODE_CURRENCY_SYMBOLS = 42;
  221. const BLOCK_CODE_COMBINING_MARKS_FOR_SYMBOLS = 43;
  222. const BLOCK_CODE_LETTERLIKE_SYMBOLS = 44;
  223. const BLOCK_CODE_NUMBER_FORMS = 45;
  224. const BLOCK_CODE_ARROWS = 46;
  225. const BLOCK_CODE_MATHEMATICAL_OPERATORS = 47;
  226. const BLOCK_CODE_MISCELLANEOUS_TECHNICAL = 48;
  227. const BLOCK_CODE_CONTROL_PICTURES = 49;
  228. const BLOCK_CODE_OPTICAL_CHARACTER_RECOGNITION = 50;
  229. const BLOCK_CODE_ENCLOSED_ALPHANUMERICS = 51;
  230. const BLOCK_CODE_BOX_DRAWING = 52;
  231. const BLOCK_CODE_BLOCK_ELEMENTS = 53;
  232. const BLOCK_CODE_GEOMETRIC_SHAPES = 54;
  233. const BLOCK_CODE_MISCELLANEOUS_SYMBOLS = 55;
  234. const BLOCK_CODE_DINGBATS = 56;
  235. const BLOCK_CODE_BRAILLE_PATTERNS = 57;
  236. const BLOCK_CODE_CJK_RADICALS_SUPPLEMENT = 58;
  237. const BLOCK_CODE_KANGXI_RADICALS = 59;
  238. const BLOCK_CODE_IDEOGRAPHIC_DESCRIPTION_CHARACTERS = 60;
  239. const BLOCK_CODE_CJK_SYMBOLS_AND_PUNCTUATION = 61;
  240. const BLOCK_CODE_HIRAGANA = 62;
  241. const BLOCK_CODE_KATAKANA = 63;
  242. const BLOCK_CODE_BOPOMOFO = 64;
  243. const BLOCK_CODE_HANGUL_COMPATIBILITY_JAMO = 65;
  244. const BLOCK_CODE_KANBUN = 66;
  245. const BLOCK_CODE_BOPOMOFO_EXTENDED = 67;
  246. const BLOCK_CODE_ENCLOSED_CJK_LETTERS_AND_MONTHS = 68;
  247. const BLOCK_CODE_CJK_COMPATIBILITY = 69;
  248. const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A = 70;
  249. const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS = 71;
  250. const BLOCK_CODE_YI_SYLLABLES = 72;
  251. const BLOCK_CODE_YI_RADICALS = 73;
  252. const BLOCK_CODE_HANGUL_SYLLABLES = 74;
  253. const BLOCK_CODE_HIGH_SURROGATES = 75;
  254. const BLOCK_CODE_HIGH_PRIVATE_USE_SURROGATES = 76;
  255. const BLOCK_CODE_LOW_SURROGATES = 77;
  256. const BLOCK_CODE_PRIVATE_USE_AREA = 78;
  257. const BLOCK_CODE_PRIVATE_USE = 78;
  258. const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS = 79;
  259. const BLOCK_CODE_ALPHABETIC_PRESENTATION_FORMS = 80;
  260. const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_A = 81;
  261. const BLOCK_CODE_COMBINING_HALF_MARKS = 82;
  262. const BLOCK_CODE_CJK_COMPATIBILITY_FORMS = 83;
  263. const BLOCK_CODE_SMALL_FORM_VARIANTS = 84;
  264. const BLOCK_CODE_ARABIC_PRESENTATION_FORMS_B = 85;
  265. const BLOCK_CODE_SPECIALS = 86;
  266. const BLOCK_CODE_HALFWIDTH_AND_FULLWIDTH_FORMS = 87;
  267. const BLOCK_CODE_OLD_ITALIC = 88;
  268. const BLOCK_CODE_GOTHIC = 89;
  269. const BLOCK_CODE_DESERET = 90;
  270. const BLOCK_CODE_BYZANTINE_MUSICAL_SYMBOLS = 91;
  271. const BLOCK_CODE_MUSICAL_SYMBOLS = 92;
  272. const BLOCK_CODE_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93;
  273. const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94;
  274. const BLOCK_CODE_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95;
  275. const BLOCK_CODE_TAGS = 96;
  276. const BLOCK_CODE_CYRILLIC_SUPPLEMENT = 97;
  277. const BLOCK_CODE_CYRILLIC_SUPPLEMENTARY = 97;
  278. const BLOCK_CODE_TAGALOG = 98;
  279. const BLOCK_CODE_HANUNOO = 99;
  280. const BLOCK_CODE_BUHID = 100;
  281. const BLOCK_CODE_TAGBANWA = 101;
  282. const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102;
  283. const BLOCK_CODE_SUPPLEMENTAL_ARROWS_A = 103;
  284. const BLOCK_CODE_SUPPLEMENTAL_ARROWS_B = 104;
  285. const BLOCK_CODE_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105;
  286. const BLOCK_CODE_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106;
  287. const BLOCK_CODE_KATAKANA_PHONETIC_EXTENSIONS = 107;
  288. const BLOCK_CODE_VARIATION_SELECTORS = 108;
  289. const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109;
  290. const BLOCK_CODE_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110;
  291. const BLOCK_CODE_LIMBU = 111;
  292. const BLOCK_CODE_TAI_LE = 112;
  293. const BLOCK_CODE_KHMER_SYMBOLS = 113;
  294. const BLOCK_CODE_PHONETIC_EXTENSIONS = 114;
  295. const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115;
  296. const BLOCK_CODE_YIJING_HEXAGRAM_SYMBOLS = 116;
  297. const BLOCK_CODE_LINEAR_B_SYLLABARY = 117;
  298. const BLOCK_CODE_LINEAR_B_IDEOGRAMS = 118;
  299. const BLOCK_CODE_AEGEAN_NUMBERS = 119;
  300. const BLOCK_CODE_UGARITIC = 120;
  301. const BLOCK_CODE_SHAVIAN = 121;
  302. const BLOCK_CODE_OSMANYA = 122;
  303. const BLOCK_CODE_CYPRIOT_SYLLABARY = 123;
  304. const BLOCK_CODE_TAI_XUAN_JING_SYMBOLS = 124;
  305. const BLOCK_CODE_VARIATION_SELECTORS_SUPPLEMENT = 125;
  306. const BLOCK_CODE_ANCIENT_GREEK_MUSICAL_NOTATION = 126;
  307. const BLOCK_CODE_ANCIENT_GREEK_NUMBERS = 127;
  308. const BLOCK_CODE_ARABIC_SUPPLEMENT = 128;
  309. const BLOCK_CODE_BUGINESE = 129;
  310. const BLOCK_CODE_CJK_STROKES = 130;
  311. const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131;
  312. const BLOCK_CODE_COPTIC = 132;
  313. const BLOCK_CODE_ETHIOPIC_EXTENDED = 133;
  314. const BLOCK_CODE_ETHIOPIC_SUPPLEMENT = 134;
  315. const BLOCK_CODE_GEORGIAN_SUPPLEMENT = 135;
  316. const BLOCK_CODE_GLAGOLITIC = 136;
  317. const BLOCK_CODE_KHAROSHTHI = 137;
  318. const BLOCK_CODE_MODIFIER_TONE_LETTERS = 138;
  319. const BLOCK_CODE_NEW_TAI_LUE = 139;
  320. const BLOCK_CODE_OLD_PERSIAN = 140;
  321. const BLOCK_CODE_PHONETIC_EXTENSIONS_SUPPLEMENT = 141;
  322. const BLOCK_CODE_SUPPLEMENTAL_PUNCTUATION = 142;
  323. const BLOCK_CODE_SYLOTI_NAGRI = 143;
  324. const BLOCK_CODE_TIFINAGH = 144;
  325. const BLOCK_CODE_VERTICAL_FORMS = 145;
  326. const BLOCK_CODE_NKO = 146;
  327. const BLOCK_CODE_BALINESE = 147;
  328. const BLOCK_CODE_LATIN_EXTENDED_C = 148;
  329. const BLOCK_CODE_LATIN_EXTENDED_D = 149;
  330. const BLOCK_CODE_PHAGS_PA = 150;
  331. const BLOCK_CODE_PHOENICIAN = 151;
  332. const BLOCK_CODE_CUNEIFORM = 152;
  333. const BLOCK_CODE_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153;
  334. const BLOCK_CODE_COUNTING_ROD_NUMERALS = 154;
  335. const BLOCK_CODE_SUNDANESE = 155;
  336. const BLOCK_CODE_LEPCHA = 156;
  337. const BLOCK_CODE_OL_CHIKI = 157;
  338. const BLOCK_CODE_CYRILLIC_EXTENDED_A = 158;
  339. const BLOCK_CODE_VAI = 159;
  340. const BLOCK_CODE_CYRILLIC_EXTENDED_B = 160;
  341. const BLOCK_CODE_SAURASHTRA = 161;
  342. const BLOCK_CODE_KAYAH_LI = 162;
  343. const BLOCK_CODE_REJANG = 163;
  344. const BLOCK_CODE_CHAM = 164;
  345. const BLOCK_CODE_ANCIENT_SYMBOLS = 165;
  346. const BLOCK_CODE_PHAISTOS_DISC = 166;
  347. const BLOCK_CODE_LYCIAN = 167;
  348. const BLOCK_CODE_CARIAN = 168;
  349. const BLOCK_CODE_LYDIAN = 169;
  350. const BLOCK_CODE_MAHJONG_TILES = 170;
  351. const BLOCK_CODE_DOMINO_TILES = 171;
  352. const BLOCK_CODE_SAMARITAN = 172;
  353. const BLOCK_CODE_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173;
  354. const BLOCK_CODE_TAI_THAM = 174;
  355. const BLOCK_CODE_VEDIC_EXTENSIONS = 175;
  356. const BLOCK_CODE_LISU = 176;
  357. const BLOCK_CODE_BAMUM = 177;
  358. const BLOCK_CODE_COMMON_INDIC_NUMBER_FORMS = 178;
  359. const BLOCK_CODE_DEVANAGARI_EXTENDED = 179;
  360. const BLOCK_CODE_HANGUL_JAMO_EXTENDED_A = 180;
  361. const BLOCK_CODE_JAVANESE = 181;
  362. const BLOCK_CODE_MYANMAR_EXTENDED_A = 182;
  363. const BLOCK_CODE_TAI_VIET = 183;
  364. const BLOCK_CODE_MEETEI_MAYEK = 184;
  365. const BLOCK_CODE_HANGUL_JAMO_EXTENDED_B = 185;
  366. const BLOCK_CODE_IMPERIAL_ARAMAIC = 186;
  367. const BLOCK_CODE_OLD_SOUTH_ARABIAN = 187;
  368. const BLOCK_CODE_AVESTAN = 188;
  369. const BLOCK_CODE_INSCRIPTIONAL_PARTHIAN = 189;
  370. const BLOCK_CODE_INSCRIPTIONAL_PAHLAVI = 190;
  371. const BLOCK_CODE_OLD_TURKIC = 191;
  372. const BLOCK_CODE_RUMI_NUMERAL_SYMBOLS = 192;
  373. const BLOCK_CODE_KAITHI = 193;
  374. const BLOCK_CODE_EGYPTIAN_HIEROGLYPHS = 194;
  375. const BLOCK_CODE_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195;
  376. const BLOCK_CODE_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196;
  377. const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197;
  378. const BLOCK_CODE_MANDAIC = 198;
  379. const BLOCK_CODE_BATAK = 199;
  380. const BLOCK_CODE_ETHIOPIC_EXTENDED_A = 200;
  381. const BLOCK_CODE_BRAHMI = 201;
  382. const BLOCK_CODE_BAMUM_SUPPLEMENT = 202;
  383. const BLOCK_CODE_KANA_SUPPLEMENT = 203;
  384. const BLOCK_CODE_PLAYING_CARDS = 204;
  385. const BLOCK_CODE_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205;
  386. const BLOCK_CODE_EMOTICONS = 206;
  387. const BLOCK_CODE_TRANSPORT_AND_MAP_SYMBOLS = 207;
  388. const BLOCK_CODE_ALCHEMICAL_SYMBOLS = 208;
  389. const BLOCK_CODE_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209;
  390. const BLOCK_CODE_ARABIC_EXTENDED_A = 210;
  391. const BLOCK_CODE_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211;
  392. const BLOCK_CODE_CHAKMA = 212;
  393. const BLOCK_CODE_MEETEI_MAYEK_EXTENSIONS = 213;
  394. const BLOCK_CODE_MEROITIC_CURSIVE = 214;
  395. const BLOCK_CODE_MEROITIC_HIEROGLYPHS = 215;
  396. const BLOCK_CODE_MIAO = 216;
  397. const BLOCK_CODE_SHARADA = 217;
  398. const BLOCK_CODE_SORA_SOMPENG = 218;
  399. const BLOCK_CODE_SUNDANESE_SUPPLEMENT = 219;
  400. const BLOCK_CODE_TAKRI = 220;
  401. const BLOCK_CODE_BASSA_VAH = 221;
  402. const BLOCK_CODE_CAUCASIAN_ALBANIAN = 222;
  403. const BLOCK_CODE_COPTIC_EPACT_NUMBERS = 223;
  404. const BLOCK_CODE_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224;
  405. const BLOCK_CODE_DUPLOYAN = 225;
  406. const BLOCK_CODE_ELBASAN = 226;
  407. const BLOCK_CODE_GEOMETRIC_SHAPES_EXTENDED = 227;
  408. const BLOCK_CODE_GRANTHA = 228;
  409. const BLOCK_CODE_KHOJKI = 229;
  410. const BLOCK_CODE_KHUDAWADI = 230;
  411. const BLOCK_CODE_LATIN_EXTENDED_E = 231;
  412. const BLOCK_CODE_LINEAR_A = 232;
  413. const BLOCK_CODE_MAHAJANI = 233;
  414. const BLOCK_CODE_MANICHAEAN = 234;
  415. const BLOCK_CODE_MENDE_KIKAKUI = 235;
  416. const BLOCK_CODE_MODI = 236;
  417. const BLOCK_CODE_MRO = 237;
  418. const BLOCK_CODE_MYANMAR_EXTENDED_B = 238;
  419. const BLOCK_CODE_NABATAEAN = 239;
  420. const BLOCK_CODE_OLD_NORTH_ARABIAN = 240;
  421. const BLOCK_CODE_OLD_PERMIC = 241;
  422. const BLOCK_CODE_ORNAMENTAL_DINGBATS = 242;
  423. const BLOCK_CODE_PAHAWH_HMONG = 243;
  424. const BLOCK_CODE_PALMYRENE = 244;
  425. const BLOCK_CODE_PAU_CIN_HAU = 245;
  426. const BLOCK_CODE_PSALTER_PAHLAVI = 246;
  427. const BLOCK_CODE_SHORTHAND_FORMAT_CONTROLS = 247;
  428. const BLOCK_CODE_SIDDHAM = 248;
  429. const BLOCK_CODE_SINHALA_ARCHAIC_NUMBERS = 249;
  430. const BLOCK_CODE_SUPPLEMENTAL_ARROWS_C = 250;
  431. const BLOCK_CODE_TIRHUTA = 251;
  432. const BLOCK_CODE_WARANG_CITI = 252;
  433. const BLOCK_CODE_COUNT = 263;
  434. const BLOCK_CODE_INVALID_CODE = -1;
  435. const BPT_NONE = 0;
  436. const BPT_OPEN = 1;
  437. const BPT_CLOSE = 2;
  438. const BPT_COUNT = 3;
  439. const EA_NEUTRAL = 0;
  440. const EA_AMBIGUOUS = 1;
  441. const EA_HALFWIDTH = 2;
  442. const EA_FULLWIDTH = 3;
  443. const EA_NARROW = 4;
  444. const EA_WIDE = 5;
  445. const EA_COUNT = 6;
  446. const UNICODE_CHAR_NAME = 0;
  447. const UNICODE_10_CHAR_NAME = 1;
  448. const EXTENDED_CHAR_NAME = 2;
  449. const CHAR_NAME_ALIAS = 3;
  450. const CHAR_NAME_CHOICE_COUNT = 4;
  451. const SHORT_PROPERTY_NAME = 0;
  452. const LONG_PROPERTY_NAME = 1;
  453. const PROPERTY_NAME_CHOICE_COUNT = 2;
  454. const DT_NONE = 0;
  455. const DT_CANONICAL = 1;
  456. const DT_COMPAT = 2;
  457. const DT_CIRCLE = 3;
  458. const DT_FINAL = 4;
  459. const DT_FONT = 5;
  460. const DT_FRACTION = 6;
  461. const DT_INITIAL = 7;
  462. const DT_ISOLATED = 8;
  463. const DT_MEDIAL = 9;
  464. const DT_NARROW = 10;
  465. const DT_NOBREAK = 11;
  466. const DT_SMALL = 12;
  467. const DT_SQUARE = 13;
  468. const DT_SUB = 14;
  469. const DT_SUPER = 15;
  470. const DT_VERTICAL = 16;
  471. const DT_WIDE = 17;
  472. const DT_COUNT = 18;
  473. const JT_NON_JOINING = 0;
  474. const JT_JOIN_CAUSING = 1;
  475. const JT_DUAL_JOINING = 2;
  476. const JT_LEFT_JOINING = 3;
  477. const JT_RIGHT_JOINING = 4;
  478. const JT_TRANSPARENT = 5;
  479. const JT_COUNT = 6;
  480. const JG_NO_JOINING_GROUP = 0;
  481. const JG_AIN = 1;
  482. const JG_ALAPH = 2;
  483. const JG_ALEF = 3;
  484. const JG_BEH = 4;
  485. const JG_BETH = 5;
  486. const JG_DAL = 6;
  487. const JG_DALATH_RISH = 7;
  488. const JG_E = 8;
  489. const JG_FEH = 9;
  490. const JG_FINAL_SEMKATH = 10;
  491. const JG_GAF = 11;
  492. const JG_GAMAL = 12;
  493. const JG_HAH = 13;
  494. const JG_TEH_MARBUTA_GOAL = 14;
  495. const JG_HAMZA_ON_HEH_GOAL = 14;
  496. const JG_HE = 15;
  497. const JG_HEH = 16;
  498. const JG_HEH_GOAL = 17;
  499. const JG_HETH = 18;
  500. const JG_KAF = 19;
  501. const JG_KAPH = 20;
  502. const JG_KNOTTED_HEH = 21;
  503. const JG_LAM = 22;
  504. const JG_LAMADH = 23;
  505. const JG_MEEM = 24;
  506. const JG_MIM = 25;
  507. const JG_NOON = 26;
  508. const JG_NUN = 27;
  509. const JG_PE = 28;
  510. const JG_QAF = 29;
  511. const JG_QAPH = 30;
  512. const JG_REH = 31;
  513. const JG_REVERSED_PE = 32;
  514. const JG_SAD = 33;
  515. const JG_SADHE = 34;
  516. const JG_SEEN = 35;
  517. const JG_SEMKATH = 36;
  518. const JG_SHIN = 37;
  519. const JG_SWASH_KAF = 38;
  520. const JG_SYRIAC_WAW = 39;
  521. const JG_TAH = 40;
  522. const JG_TAW = 41;
  523. const JG_TEH_MARBUTA = 42;
  524. const JG_TETH = 43;
  525. const JG_WAW = 44;
  526. const JG_YEH = 45;
  527. const JG_YEH_BARREE = 46;
  528. const JG_YEH_WITH_TAIL = 47;
  529. const JG_YUDH = 48;
  530. const JG_YUDH_HE = 49;
  531. const JG_ZAIN = 50;
  532. const JG_FE = 51;
  533. const JG_KHAPH = 52;
  534. const JG_ZHAIN = 53;
  535. const JG_BURUSHASKI_YEH_BARREE = 54;
  536. const JG_FARSI_YEH = 55;
  537. const JG_NYA = 56;
  538. const JG_ROHINGYA_YEH = 57;
  539. const JG_MANICHAEAN_ALEPH = 58;
  540. const JG_MANICHAEAN_AYIN = 59;
  541. const JG_MANICHAEAN_BETH = 60;
  542. const JG_MANICHAEAN_DALETH = 61;
  543. const JG_MANICHAEAN_DHAMEDH = 62;
  544. const JG_MANICHAEAN_FIVE = 63;
  545. const JG_MANICHAEAN_GIMEL = 64;
  546. const JG_MANICHAEAN_HETH = 65;
  547. const JG_MANICHAEAN_HUNDRED = 66;
  548. const JG_MANICHAEAN_KAPH = 67;
  549. const JG_MANICHAEAN_LAMEDH = 68;
  550. const JG_MANICHAEAN_MEM = 69;
  551. const JG_MANICHAEAN_NUN = 70;
  552. const JG_MANICHAEAN_ONE = 71;
  553. const JG_MANICHAEAN_PE = 72;
  554. const JG_MANICHAEAN_QOPH = 73;
  555. const JG_MANICHAEAN_RESH = 74;
  556. const JG_MANICHAEAN_SADHE = 75;
  557. const JG_MANICHAEAN_SAMEKH = 76;
  558. const JG_MANICHAEAN_TAW = 77;
  559. const JG_MANICHAEAN_TEN = 78;
  560. const JG_MANICHAEAN_TETH = 79;
  561. const JG_MANICHAEAN_THAMEDH = 80;
  562. const JG_MANICHAEAN_TWENTY = 81;
  563. const JG_MANICHAEAN_WAW = 82;
  564. const JG_MANICHAEAN_YODH = 83;
  565. const JG_MANICHAEAN_ZAYIN = 84;
  566. const JG_STRAIGHT_WAW = 85;
  567. const JG_COUNT = 86;
  568. const GCB_OTHER = 0;
  569. const GCB_CONTROL = 1;
  570. const GCB_CR = 2;
  571. const GCB_EXTEND = 3;
  572. const GCB_L = 4;
  573. const GCB_LF = 5;
  574. const GCB_LV = 6;
  575. const GCB_LVT = 7;
  576. const GCB_T = 8;
  577. const GCB_V = 9;
  578. const GCB_SPACING_MARK = 10;
  579. const GCB_PREPEND = 11;
  580. const GCB_REGIONAL_INDICATOR = 12;
  581. const GCB_COUNT = 13;
  582. const WB_OTHER = 0;
  583. const WB_ALETTER = 1;
  584. const WB_FORMAT = 2;
  585. const WB_KATAKANA = 3;
  586. const WB_MIDLETTER = 4;
  587. const WB_MIDNUM = 5;
  588. const WB_NUMERIC = 6;
  589. const WB_EXTENDNUMLET = 7;
  590. const WB_CR = 8;
  591. const WB_EXTEND = 9;
  592. const WB_LF = 10;
  593. const WB_MIDNUMLET = 11;
  594. const WB_NEWLINE = 12;
  595. const WB_REGIONAL_INDICATOR = 13;
  596. const WB_HEBREW_LETTER = 14;
  597. const WB_SINGLE_QUOTE = 15;
  598. const WB_DOUBLE_QUOTE = 16;
  599. const WB_COUNT = 17;
  600. const SB_OTHER = 0;
  601. const SB_ATERM = 1;
  602. const SB_CLOSE = 2;
  603. const SB_FORMAT = 3;
  604. const SB_LOWER = 4;
  605. const SB_NUMERIC = 5;
  606. const SB_OLETTER = 6;
  607. const SB_SEP = 7;
  608. const SB_SP = 8;
  609. const SB_STERM = 9;
  610. const SB_UPPER = 10;
  611. const SB_CR = 11;
  612. const SB_EXTEND = 12;
  613. const SB_LF = 13;
  614. const SB_SCONTINUE = 14;
  615. const SB_COUNT = 15;
  616. const LB_UNKNOWN = 0;
  617. const LB_AMBIGUOUS = 1;
  618. const LB_ALPHABETIC = 2;
  619. const LB_BREAK_BOTH = 3;
  620. const LB_BREAK_AFTER = 4;
  621. const LB_BREAK_BEFORE = 5;
  622. const LB_MANDATORY_BREAK = 6;
  623. const LB_CONTINGENT_BREAK = 7;
  624. const LB_CLOSE_PUNCTUATION = 8;
  625. const LB_COMBINING_MARK = 9;
  626. const LB_CARRIAGE_RETURN = 10;
  627. const LB_EXCLAMATION = 11;
  628. const LB_GLUE = 12;
  629. const LB_HYPHEN = 13;
  630. const LB_IDEOGRAPHIC = 14;
  631. const LB_INSEPARABLE = 15;
  632. const LB_INSEPERABLE = 15;
  633. const LB_INFIX_NUMERIC = 16;
  634. const LB_LINE_FEED = 17;
  635. const LB_NONSTARTER = 18;
  636. const LB_NUMERIC = 19;
  637. const LB_OPEN_PUNCTUATION = 20;
  638. const LB_POSTFIX_NUMERIC = 21;
  639. const LB_PREFIX_NUMERIC = 22;
  640. const LB_QUOTATION = 23;
  641. const LB_COMPLEX_CONTEXT = 24;
  642. const LB_SURROGATE = 25;
  643. const LB_SPACE = 26;
  644. const LB_BREAK_SYMBOLS = 27;
  645. const LB_ZWSPACE = 28;
  646. const LB_NEXT_LINE = 29;
  647. const LB_WORD_JOINER = 30;
  648. const LB_H2 = 31;
  649. const LB_H3 = 32;
  650. const LB_JL = 33;
  651. const LB_JT = 34;
  652. const LB_JV = 35;
  653. const LB_CLOSE_PARENTHESIS = 36;
  654. const LB_CONDITIONAL_JAPANESE_STARTER = 37;
  655. const LB_HEBREW_LETTER = 38;
  656. const LB_REGIONAL_INDICATOR = 39;
  657. const LB_COUNT = 40;
  658. const NT_NONE = 0;
  659. const NT_DECIMAL = 1;
  660. const NT_DIGIT = 2;
  661. const NT_NUMERIC = 3;
  662. const NT_COUNT = 4;
  663. const HST_NOT_APPLICABLE = 0;
  664. const HST_LEADING_JAMO = 1;
  665. const HST_VOWEL_JAMO = 2;
  666. const HST_TRAILING_JAMO = 3;
  667. const HST_LV_SYLLABLE = 4;
  668. const HST_LVT_SYLLABLE = 5;
  669. const HST_COUNT = 6;
  670. /**
  671. * Check a binary Unicode property for a code point
  672. * @link https://php.net/manual/ru/intlchar.hasbinaryproperty.php
  673. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  674. * @param int $property The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  675. * @return bool|null Returns TRUE or FALSE according to the binary Unicode property value for codepoint.
  676. * Also FALSE if property is out of bounds or if the Unicode version does not have data for the property at all, or not for this code point.
  677. * Or NULL if <em>codepoint</em> is out of bounds.
  678. * @since 7.0
  679. */
  680. static public function hasBinaryProperty($codepoint, $property){}
  681. /**
  682. * @link https://php.net/manual/ru/intlchar.charage.php
  683. * Get the "age" of the code point
  684. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  685. * @return array|null The Unicode version number, as an array. For example, version 1.3.31.2 would be represented as [1, 3, 31, 2].
  686. * Or NULL if <em>codepoint</em> is out of bounds.
  687. * @since 7.0
  688. */
  689. public static function charAge($codepoint) {}
  690. /**
  691. * @link https://php.net/manual/ru/intlchar.chardigitvalue.php
  692. * Get the decimal digit value of a decimal digit character
  693. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  694. * @return int|null The decimal digit value of codepoint, or -1 if it is not a decimal digit character.
  695. * Or NULL if <em>codepoint</em> is out of bounds.
  696. * @since 7.0
  697. */
  698. public static function charDigitValue($codepoint){}
  699. /**
  700. * Get bidirectional category value for a code point
  701. * @link https://php.net/manual/ru/intlchar.chardirection.php
  702. * @param int|string $codepoint <p>The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")</p>
  703. * @return int|null <p>The bidirectional category value; one of the following constants:
  704. * </p>
  705. * <ul>
  706. * <li><b> IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT </b></li>
  707. * <li><b> IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT </b></li>
  708. * <li><b> IntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER </b></li>
  709. * <li><b> IntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER_SEPARATOR </b></li>
  710. * <li><b> IntlChar::CHAR_DIRECTION_EUROPEAN_NUMBER_TERMINATOR </b></li>
  711. * <li><b> IntlChar::CHAR_DIRECTION_ARABIC_NUMBER </b></li>
  712. * <li><b> IntlChar::CHAR_DIRECTION_COMMON_NUMBER_SEPARATOR </b></li>
  713. * <li><b> IntlChar::CHAR_DIRECTION_BLOCK_SEPARATOR </b></li>
  714. * <li><b> IntlChar::CHAR_DIRECTION_SEGMENT_SEPARATOR </b></li>
  715. * <li><b> IntlChar::CHAR_DIRECTION_WHITE_SPACE_NEUTRAL </b></li>
  716. * <li><b> IntlChar::CHAR_DIRECTION_OTHER_NEUTRAL </b></li>
  717. * <li><b> IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_EMBEDDING </b></li>
  718. * <li><b> IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_OVERRIDE </b></li>
  719. * <li><b> IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_ARABIC </b></li>
  720. * <li><b> IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_EMBEDDING </b></li>
  721. * <li><b> IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_OVERRIDE </b></li>
  722. * <li><b> IntlChar::CHAR_DIRECTION_POP_DIRECTIONAL_FORMAT </b></li>
  723. * <li><b> IntlChar::CHAR_DIRECTION_DIR_NON_SPACING_MARK </b></li>
  724. * <li><b> IntlChar::CHAR_DIRECTION_BOUNDARY_NEUTRAL </b></li>
  725. * <li><b> IntlChar::CHAR_DIRECTION_FIRST_STRONG_ISOLATE </b></li>
  726. * <li><b> IntlChar::CHAR_DIRECTION_LEFT_TO_RIGHT_ISOLATE </b></li>
  727. * <li><b> IntlChar::CHAR_DIRECTION_RIGHT_TO_LEFT_ISOLATE </b></li>
  728. * <li><b> IntlChar::CHAR_DIRECTION_POP_DIRECTIONAL_ISOLATE </b></li>
  729. * <li><b> IntlChar::CHAR_DIRECTION_CHAR_DIRECTION_COUNT </b></li>
  730. * </ul>
  731. * Or NULL if <em>codepoint</em> is out of bounds.
  732. * @since 7.0
  733. */
  734. public static function charDirection($codepoint) {}
  735. /**
  736. * @link https://php.net/manual/en/intlchar.charfromname.php
  737. * Find Unicode character by name and return its code point value
  738. * @param string $characterName <p>Full name of the Unicode character.</p>
  739. * @param int $nameChoice [optional] <p>
  740. * Which set of names to use for the lookup. Can be any of these constants:
  741. * </p><ul>
  742. * <li><b> IntlChar::UNICODE_CHAR_NAME </b> (default)</li>
  743. * <li><b> IntlChar::UNICODE_10_CHAR_NAME </b></li>
  744. * <li><b> IntlChar::EXTENDED_CHAR_NAME </b></li>
  745. * <li><b> IntlChar::CHAR_NAME_ALIAS </b></li>
  746. * <li><b> IntlChar::CHAR_NAME_CHOICE_COUNT </b></li>
  747. * </ul>
  748. * @return int|null The Unicode value of the code point with the given name (as an integer), or NULL if there is no such code point.
  749. * @since 7.0
  750. */
  751. public static function charFromName($characterName, $nameChoice = IntlChar::UNICODE_CHAR_NAME) {}
  752. /**
  753. * @link https://php.net/manual/ru/intlchar.charmirror.php
  754. * Get the "mirror-image" character for a code point
  755. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  756. * @return int|string|null Returns another Unicode code point that may serve as a mirror-image substitute, or codepoint itself if there is no such mapping or codepoint does not have the Bidi_Mirrored property.
  757. * The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned.
  758. * Or NULL if <em>codepoint</em> will be out of bound.
  759. */
  760. public static function charMirror($codepoint) {}
  761. /**
  762. * Retrieve the name of a Unicode character
  763. * @link https://php.net/manual/ru/intlchar.charname.php
  764. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  765. * @param int $nameChoice [optional] Which set of names to use for the lookup. Can be any of these constants: </p>
  766. * <ul>
  767. * <li><b> IntlChar::UNICODE_CHAR_NAME </b> (default)</li>
  768. * <li><b> IntlChar::UNICODE_10_CHAR_NAME </b></li>
  769. * <li><b> IntlChar::EXTENDED_CHAR_NAME </b></li>
  770. * <li><b> IntlChar::CHAR_NAME_ALIAS </b></li>
  771. * <li><b> IntlChar::CHAR_NAME_CHOICE_COUNT </b></li>
  772. * </ul>
  773. * @return string|null The corresponding name, or an empty string if there is no name for this character, or NULL if <em>codepoint</em> is out of bounds.
  774. * @since 7.0
  775. */
  776. public static function charName($codepoint, $nameChoice = IntlChar::UNICODE_CHAR_NAME) {}
  777. /**
  778. * Get the general category value for a code point
  779. * @link https://php.net/manual/ru/intlchar.chartype.php
  780. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  781. * @return int|null Returns the general category type, which may be one of the following constants:
  782. * </p><ul>
  783. * <li><b> IntlChar::CHAR_CATEGORY_UNASSIGNED </b></li>
  784. * <li><b> IntlChar::CHAR_CATEGORY_GENERAL_OTHER_TYPES </b></li>
  785. * <li><b> IntlChar::CHAR_CATEGORY_UPPERCASE_LETTER </b></li>
  786. * <li><b> IntlChar::CHAR_CATEGORY_LOWERCASE_LETTER </b></li>
  787. * <li><b> IntlChar::CHAR_CATEGORY_TITLECASE_LETTER </b></li>
  788. * <li><b> IntlChar::CHAR_CATEGORY_MODIFIER_LETTER </b></li>
  789. * <li><b> IntlChar::CHAR_CATEGORY_OTHER_LETTER </b></li>
  790. * <li><b> IntlChar::CHAR_CATEGORY_NON_SPACING_MARK </b></li>
  791. * <li><b> IntlChar::CHAR_CATEGORY_ENCLOSING_MARK </b></li>
  792. * <li><b> IntlChar::CHAR_CATEGORY_COMBINING_SPACING_MARK </b></li>
  793. * <li><b> IntlChar::CHAR_CATEGORY_DECIMAL_DIGIT_NUMBER </b></li>
  794. * <li><b> IntlChar::CHAR_CATEGORY_LETTER_NUMBER </b></li>
  795. * <li><b> IntlChar::CHAR_CATEGORY_OTHER_NUMBER </b></li>
  796. * <li><b> IntlChar::CHAR_CATEGORY_SPACE_SEPARATOR </b></li>
  797. * <li><b> IntlChar::CHAR_CATEGORY_LINE_SEPARATOR </b></li>
  798. * <li><b> IntlChar::CHAR_CATEGORY_PARAGRAPH_SEPARATOR </b></li>
  799. * <li><b> IntlChar::CHAR_CATEGORY_CONTROL_CHAR </b></li>
  800. * <li><b> IntlChar::CHAR_CATEGORY_FORMAT_CHAR </b></li>
  801. * <li><b> IntlChar::CHAR_CATEGORY_PRIVATE_USE_CHAR </b></li>
  802. * <li><b> IntlChar::CHAR_CATEGORY_SURROGATE </b></li>
  803. * <li><b> IntlChar::CHAR_CATEGORY_DASH_PUNCTUATION </b></li>
  804. * <li><b> IntlChar::CHAR_CATEGORY_START_PUNCTUATION </b></li>
  805. * <li><b> IntlChar::CHAR_CATEGORY_END_PUNCTUATION </b></li>
  806. * <li><b> IntlChar::CHAR_CATEGORY_CONNECTOR_PUNCTUATION </b></li>
  807. * <li><b> IntlChar::CHAR_CATEGORY_OTHER_PUNCTUATION </b></li>
  808. * <li><b> IntlChar::CHAR_CATEGORY_MATH_SYMBOL </b></li>
  809. * <li><b> IntlChar::CHAR_CATEGORY_CURRENCY_SYMBOL </b></li>
  810. * <li><b> IntlChar::CHAR_CATEGORY_MODIFIER_SYMBOL </b></li>
  811. * <li><b> IntlChar::CHAR_CATEGORY_OTHER_SYMBOL </b></li>
  812. * <li><b> IntlChar::CHAR_CATEGORY_INITIAL_PUNCTUATION </b></li>
  813. * <li><b> IntlChar::CHAR_CATEGORY_FINAL_PUNCTUATION </b></li>
  814. * <li><b> IntlChar::CHAR_CATEGORY_CHAR_CATEGORY_COUNT </b></li></ul>
  815. * <p>Or NULL if <em>codepoint</em> is out of bound.</p
  816. * @since 7.0
  817. */
  818. public static function charType($codepoint)
  819. {
  820. }
  821. /**
  822. * Return Unicode character by code point value
  823. * @link https://php.net/manual/ru/intlchar.chr.php
  824. * @param mixed $codepoint <p>The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")</p>
  825. * @return string|null A string containing the single character specified by the Unicode code point value.
  826. * Or NULL if <em>codepoint</em> is out of bound.
  827. * @since 7.0
  828. */
  829. public static function chr ($codepoint)
  830. {
  831. }
  832. /**
  833. * Get the decimal digit value of a code point for a given radix
  834. * @link https://php.net/manual/ru/intlchar.digit.php
  835. * @param int|string $codepoint <p>The integer codepoint value (e.g. <em>0x2603</em> for <em>U+2603 SNOWMAN</em>), or the character encoded as a UTF-8 string (e.g. <em>"\u{2603}"</em>)</p>
  836. * @param int $radix <p>The radix (defaults to 10).</p>
  837. * @return int|false|null Returns the numeric value represented by the character in the specified radix,
  838. * or <b>FALSE</b> if there is no value or if the value exceeds the radix,
  839. * or <b>NULL</b> if <em>codepoint</em> is out of bound.
  840. * @since 7.0
  841. */
  842. public static function digit ($codepoint,$radix = 10 ) {}
  843. /**
  844. * Enumerate all assigned Unicode characters within a range
  845. * @link https://php.net/manual/ru/intlchar.enumcharnames.php
  846. * @param int|string $start The first code point in the enumeration range.
  847. * @param int|string $limit One more than the last code point in the enumeration range (the first one after the range).
  848. * @param callable $callback<p>
  849. * The function that is to be called for each character name. The following three arguments will be passed into it:
  850. * </p><ul>
  851. * <li>integer</a> <em>$codepoint</em> - The numeric code point value</li>
  852. * <li>integer <em>$nameChoice</em> - The same value as the <b>nameChoice</b> parameter below</li>
  853. * <li>string <em>$name</em> - The name of the character</li>
  854. * </ul>
  855. * @param int $nameChoice [optional] <p>
  856. * Selector for which kind of names to enumerate. Can be any of these constants:
  857. * </p><ul>
  858. * <li><b>IntlChar::UNICODE_CHAR_NAME</b> (default)</li>
  859. * <li><b>IntlChar::UNICODE_10_CHAR_NAME</b></li>
  860. * <li><b>IntlChar::EXTENDED_CHAR_NAME</b></li>
  861. * <li><b>IntlChar::CHAR_NAME_ALIAS</b></li>
  862. * <li><b>IntlChar::CHAR_NAME_CHOICE_COUNT</b></li>
  863. * </ul>
  864. * @since 7.0
  865. */
  866. public static function enumCharNames ($start, $limit, $callback, $nameChoice = IntlChar::UNICODE_CHAR_NAME) {}
  867. /**
  868. * Enumerate all code points with their Unicode general categories
  869. * @link https://php.net/manual/ru/intlchar.enumchartypes.php
  870. * @param callable $callable <p>
  871. * The function that is to be called for each contiguous range of code points with the same general category.
  872. * The following three arguments will be passed into it:
  873. * </p><ul>
  874. * <li>integer <em>$start</em> - The starting code point of the range</li>
  875. * <li>integer <em>$end</em> - The ending code point of the range</li>
  876. * <li>integer <em>$name</em> - The category type (one of the <em>IntlChar::CHAR_CATEGORY_*</em> constants)</li>
  877. * </ul>
  878. * @since 7.0
  879. */
  880. public static function enumCharTypes ($callable) {}
  881. /**
  882. * Perform case folding on a code point
  883. * @link https://php.net/manual/en/intlchar.foldcase.php
  884. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  885. * @param int $options [optional] Either IntlChar::FOLD_CASE_DEFAULT (default) or IntlChar::FOLD_CASE_EXCLUDE_SPECIAL_I.
  886. * @return int|string|null Returns the Simple_Case_Folding of the code point, if any; otherwise the code point itself.
  887. * Returns NULL if <em>codepoint</em> is out of bound.
  888. * @since 7.0
  889. */
  890. public static function foldCase ($codepoint, $options = IntlChar::FOLD_CASE_DEFAULT ) {}
  891. /**
  892. * Get character representation for a given digit and radix
  893. * @link https://php.net/manual/ru/intlchar.fordigit.php
  894. * @param int $digit <p>The number to convert to a character.</p>
  895. * @param int $radix [optional] <p>The radix (defaults to 10).</p>
  896. * @return int The character representation (as a string) of the specified digit in the specified radix.
  897. * @since 7.0
  898. */
  899. public static function forDigit ($digit, $radix = 10) {}
  900. /**
  901. * Get the paired bracket character for a code point
  902. * @link https://php.net/manual/ru/intlchar.getbidipairedbracket.php
  903. * @param int|string $codepoint <p>The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")</p>
  904. * @return int|string|null Returns the paired bracket code point, or <em>codepoint</em> itself if there is no such mapping.
  905. * The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned.
  906. * Or NULL if <em>codepoint</em> is out of bound.
  907. * @since 7.0
  908. */
  909. public static function getBidiPairedBracket($codepoint) {}
  910. /**
  911. * Get the Unicode allocation block containing a code point
  912. * @link https://php.net/manual/ru/intlchar.getblockcode.php
  913. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  914. * @return int|null Returns the block value for <em>codepoint</em>, or NULL if <em>codepoint</em> is out of bound.
  915. * See the <em>IntlChar::BLOCK_CODE_*</em> constants for possible return values.
  916. * @since 7.0
  917. */
  918. public static function getBlockCode($codepoint) {}
  919. /**
  920. * Get the combining class of a code point
  921. * @link https://php.net/manual/ru/intlchar.getcombiningclass.php
  922. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  923. * @return int|null Returns the combining class of the character.
  924. * Or NULL if <em>codepoint</em> is out of bound.
  925. * @since 7.0
  926. */
  927. public static function getCombiningClass ($codepoint) {}
  928. /**
  929. * Get the FC_NFKC_Closure property for a code point
  930. * @link https://php.net/manual/ru/intlchar.getfc-nfkc-closure.php
  931. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  932. * @return string|false|null Returns the FC_NFKC_Closure property string for the codepoint, or an empty string if there is none,
  933. * or NULL if <em>codepoint</em> is out of bound,
  934. * or FALSE if there was an error.
  935. * @since 7.0
  936. */
  937. public static function getFC_NFKC_Closure ($codepoint) {}
  938. /**
  939. * Get the max value for a Unicode property
  940. * @link https://php.net/manual/ru/intlchar.getintpropertymaxvalue.php
  941. * @param int $property The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  942. * @return int The maximum value returned by {@see IntlChar::getIntPropertyValue()} for a Unicode property. <=0 if the property selector is out of range.
  943. * @since 7.0
  944. */
  945. public static function getIntPropertyMaxValue ($property) {}
  946. /**
  947. * Get the min value for a Unicode property
  948. * @link https://php.net/manual/ru/intlchar.getintpropertyminvalue.php
  949. * @param int $property The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  950. * @return int The minimum value returned by {@see IntlChar::getIntPropertyValue()} for a Unicode property. 0 if the property selector is out of range.
  951. * @since 7.0
  952. */
  953. public static function getIntPropertyMinValue ($property) {}
  954. /**
  955. * Get the value for a Unicode property for a code point
  956. * @link https://php.net/manual/ru/intlchar.getintpropertyvalue.php
  957. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  958. * @param int $property The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  959. * @return int|null <p>
  960. * Returns the numeric value that is directly the property value or, for enumerated properties, corresponds to the
  961. * numeric value of the enumerated constant of the respective property value enumeration type.
  962. * </p>
  963. * <p>
  964. * Returns <em>0</em> or <em>1</em> (for <b>FALSE</b><b>/</b><b>TRUE</B>) for binary Unicode properties.
  965. * </p>
  966. * <p>
  967. * Returns a bit-mask for mask properties.
  968. * </p>
  969. * <p>
  970. * Returns <em>0</em> if <em>property</em> is out of bounds or if the Unicode version does not
  971. * have data for the property at all, or not for this code point.
  972. * </p>
  973. * <p>
  974. * Returns NULL if <em>codepoint</em> is out of bound.
  975. * </p>
  976. * @since 7.0
  977. */
  978. public static function getIntPropertyValue ($codepoint, $property ) {}
  979. /**
  980. * Get the numeric value for a Unicode code point
  981. * @link https://php.net/manual/ru/intlchar.getnumericvalue.php
  982. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  983. * @return float|null Numeric value of codepoint, or float(-123456789) if none is defined, or NULL if <em>codepoint</em> is out of bound.
  984. * @since 7.0
  985. */
  986. public static function getNumericValue ($codepoint) {}
  987. /**
  988. * Get the property constant value for a given property name
  989. * @link https://php.net/manual/ru/intlchar.getpropertyenum.php
  990. * @param string $alias The property name to be matched. The name is compared using "loose matching" as described in PropertyAliases.txt.
  991. * @return int Returns an IntlChar::PROPERTY_ constant value, or <b>IntlChar::PROPERTY_INVALID_CODE</b> if the given name does not match any property.
  992. * @since 7.0
  993. */
  994. public static function getPropertyEnum ($alias ) {}
  995. /**
  996. * Get the Unicode name for a property
  997. * @link https://php.net/manual/ru/intlchar.getpropertyname.php
  998. * @param int $property <p>The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).</p>
  999. * <p><b>IntlChar::PROPERTY_INVALID_CODE</b> should not be used. Also, if property is out of range, FALSE is returned.</p>
  1000. * @param int $nameChoice <p> Selector for which name to get. If out of range, FALSE is returned.</p>
  1001. * <p>All properties have a long name. Most have a short name, but some do not. Unicode allows for additional names; if present these will be returned by adding 1, 2, etc. to <b>IntlChar::LONG_PROPERTY_NAME</b>.</p>
  1002. * @return string|false <p>
  1003. * Returns the name, or <b>FALSE</b> if either the <em>property</em> or the <em>nameChoice</em>
  1004. * is out of range.
  1005. * </p>
  1006. * <p>
  1007. * If a given <em>nameChoice</em> returns <b>FALSE</b>, then all larger values of
  1008. * <em>nameChoice</em> will return <b>FALSE</b>, with one exception: if <b>FALSE</b> is returned for
  1009. * <b>IntlChar::SHORT_PROPERTY_NAME</b>, then <b>IntlChar::LONG_PROPERTY_NAME</b>
  1010. * (and higher) may still return a non-<b>FALSE</b> value.
  1011. * </p>
  1012. * @since 7.0
  1013. */
  1014. public static function getPropertyName ($property, $nameChoice = IntlChar::LONG_PROPERTY_NAME) {}
  1015. /**
  1016. * Get the property value for a given value name
  1017. * @link https://php.net/manual/ru/intlchar.getpropertyvalueenum.php
  1018. * @param int $property <p>The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  1019. * If out of range, or this method doesn't work with the given value, IntlChar::PROPERTY_INVALID_CODE is returned</p>
  1020. * @param string $name <p> The value name to be matched. The name is compared using "loose matching" as described in PropertyValueAliases.txt.</p>
  1021. * @return int Returns the corresponding value integer, or IntlChar::PROPERTY_INVALID_CODE if the given name does not match any value of the given property, or if the property is invalid.
  1022. * @since 7.0
  1023. */
  1024. public static function getPropertyValueEnum ($property, $name) {}
  1025. /**
  1026. * Get the Unicode name for a property value
  1027. * @link https://php.net/manual/ru/intlchar.getpropertyvaluename.php
  1028. * @param int $property <p>
  1029. * The Unicode property to lookup (see the IntlChar::PROPERTY_* constants).
  1030. * If out of range, or this method doesn't work with the given value, FALSE is returned.
  1031. * </p>
  1032. * @param int $value <p>
  1033. * Selector for a value for the given property. If out of range, <b>FALSE</b> is returned.
  1034. * </p>
  1035. * <p>
  1036. * In general, valid values range from <em>0</em> up to some maximum. There are a couple exceptions:
  1037. * </p><ul>
  1038. * <li>
  1039. * <b>IntlChar::PROPERTY_BLOCK</b> values begin at the non-zero value <b>IntlChar::BLOCK_CODE_BASIC_LATIN</b>
  1040. * </li>
  1041. * <li>
  1042. * <b>IntlChar::PROPERTY_CANONICAL_COMBINING_CLASS</b> values are not contiguous and range from 0..240.
  1043. * </li>
  1044. * </ul>
  1045. * @param int $nameChoice [optional] <p>
  1046. * Selector for which name to get. If out of range, FALSE is returned.
  1047. * All values have a long name. Most have a short name, but some do not. Unicode allows for additional names; if present these will be returned by adding 1, 2, etc. to IntlChar::LONG_PROPERTY_NAME.
  1048. * </p>
  1049. * @return string|false Returns the name, or FALSE if either the property or the nameChoice is out of range.
  1050. * If a given nameChoice returns FALSE, then all larger values of nameChoice will return FALSE, with one exception: if FALSE is returned for IntlChar::SHORT_PROPERTY_NAME, then IntlChar::LONG_PROPERTY_NAME (and higher) may still return a non-FALSE value.
  1051. * @since 7.0
  1052. */
  1053. public static function getPropertyValueName ($property, $value, $nameChoice = IntlChar::LONG_PROPERTY_NAME) {}
  1054. /**
  1055. * Get the Unicode version
  1056. * @link https://php.net/manual/ru/intlchar.getunicodeversion.php
  1057. * @return array An array containing the Unicode version number.
  1058. * @since 7.0
  1059. */
  1060. public static function getUnicodeVersion() {}
  1061. /**
  1062. * Check if code point is an alphanumeric character
  1063. * @link https://php.net/manual/ru/intlchar.isalnum.php
  1064. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1065. * @return bool|null Returns TRUE if codepoint is an alphanumeric character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1066. * @since 7.0
  1067. */
  1068. public static function isalnum ($codepoint) {}
  1069. /**
  1070. * Check if code point is a letter character
  1071. * @link https://php.net/manual/ru/intlchar.isalpha.php
  1072. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1073. * @return bool|null Returns TRUE if codepoint is a letter character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1074. * @since 7.0
  1075. */
  1076. public static function isalpha ($codepoint) {}
  1077. /**
  1078. * Check if code point is a base character
  1079. * @link https://php.net/manual/ru/intlchar.isbase.php
  1080. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1081. * @return bool|null Returns TRUE if codepoint is a base character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1082. * @since 7.0
  1083. */
  1084. public static function isbase ($codepoint ){}
  1085. /**
  1086. * Check if code point is a "blank" or "horizontal space" character
  1087. * @link https://php.net/manual/ru/intlchar.isblank.php
  1088. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1089. * @return bool|null Returns TRUE if codepoint is either a "blank" or "horizontal space" character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1090. * @since 7.0
  1091. */
  1092. public static function isblank ($codepoint){}
  1093. /**
  1094. * Check if code point is a control character
  1095. * @link https://php.net/manual/ru/intlchar.iscntrl.php
  1096. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1097. * @return bool|null Returns TRUE if codepoint is a control character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1098. * @since 7.0
  1099. */
  1100. public static function iscntrl ($codepoint ) {}
  1101. /**
  1102. * Check whether the code point is defined
  1103. * @link https://php.net/manual/ru/intlchar.isdefined.php
  1104. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1105. * @return bool|null Returns TRUE if codepoint is a defined character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1106. * @since 7.0
  1107. */
  1108. public static function isdefined ($codepoint ) {}
  1109. /**
  1110. * Check if code point is a digit character
  1111. * @link https://php.net/manual/ru/intlchar.isdigit.php
  1112. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1113. * @return bool|null Returns TRUE if codepoint is a digit character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1114. * @since 7.0
  1115. */
  1116. public static function isdigit ($codepoint) {}
  1117. /**
  1118. * Check if code point is a graphic character
  1119. * @link https://php.net/manual/ru/intlchar.isgraph.php
  1120. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1121. * @return bool|null Returns TRUE if codepoint is a "graphic" character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1122. * @since 7.0
  1123. */
  1124. public static function isgraph ($codepoint ) {}
  1125. /**
  1126. * Check if code point is an ignorable character
  1127. * @link https://php.net/manual/ru/intlchar.isidignorable.php
  1128. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1129. * @return bool|null Returns TRUE if codepoint is ignorable in identifiers, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1130. * @since 7.0
  1131. */
  1132. public static function isIDIgnorable ($codepoint ) {}
  1133. /**
  1134. * Check if code point is permissible in an identifier
  1135. * @link https://php.net/manual/ru/intlchar.isidpart.php
  1136. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1137. * @return bool|null Returns TRUE if codepoint is the code point may occur in an identifier, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1138. * @since 7.0
  1139. */
  1140. public static function isIDPart ($codepoint ) {}
  1141. /**
  1142. * Check if code point is permissible as the first character in an identifier
  1143. * @link https://php.net/manual/ru/intlchar.isidstart.php
  1144. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1145. * @return bool|null Returns TRUE if codepoint may start an identifier, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1146. * @since 7.0
  1147. */
  1148. public static function isIDStart ($codepoint ) {}
  1149. /**
  1150. * Check if code point is an ISO control code
  1151. * @link https://php.net/manual/ru/intlchar.isisocontrol.php
  1152. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1153. * @return bool|null Returns TRUE if codepoint is an ISO control code, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1154. * @since 7.0
  1155. */
  1156. public static function isISOControl ($codepoint ) {}
  1157. /**
  1158. * Check if code point is permissible in a Java identifier
  1159. * @link https://php.net/manual/ru/intlchar.isjavaidpart.php
  1160. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1161. * @return bool|null Returns TRUE if codepoint may occur in a Java identifier, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1162. * @since 7.0
  1163. */
  1164. public static function isJavaIDPart ($codepoint ) {}
  1165. /**
  1166. * Check if code point is permissible as the first character in a Java identifier
  1167. * @link https://php.net/manual/ru/intlchar.isjavaidstart.php
  1168. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1169. * @return bool|null Returns TRUE if codepoint may start a Java identifier, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1170. * @since 7.0
  1171. */
  1172. public static function isJavaIDStart ($codepoint ) {}
  1173. /**
  1174. * Check if code point is a space character according to Java
  1175. * @link https://php.net/manual/ru/intlchar.isjavaspacechar.php
  1176. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1177. * @return bool|null Returns TRUE if codepoint is a space character according to Java, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1178. * @since 7.0
  1179. */
  1180. public static function isJavaSpaceChar ($codepoint ) {}
  1181. /**
  1182. * Check if code point is a lowercase letter
  1183. * @link https://php.net/manual/ru/intlchar.islower.php
  1184. * @param int|string $codepoint <p>The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN),
  1185. * or the character encoded as a UTF-8 string (e.g. "\u{2603}")</p>
  1186. * @return bool|null Returns TRUE if codepoint is an Ll lowercase letter, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1187. * @since 7.0
  1188. */
  1189. public static function islower ($codepoint ) {}
  1190. /**
  1191. * Check if code point has the Bidi_Mirrored property
  1192. * @link https://php.net/manual/ru/intlchar.ismirrored.php
  1193. * @param int|string $codepoint <p>The integer codepoint value (e.g. <em>0x2603</em> for <em>U+2603 SNOWMAN</em>), or the character encoded as a UTF-8 string (e.g. <em>"\u{2603}"</em>)</p>
  1194. * @return bool|null Returns TRUE if codepoint has the Bidi_Mirrored property, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1195. * @since 7.0
  1196. */
  1197. public static function isMirrored ($codepoint ) {}
  1198. /**
  1199. * Check if code point is a printable character
  1200. * @link https://php.net/manual/ru/intlchar.isprint.php
  1201. * @param int|string $codepoint <p>The integer codepoint value (e.g. <em>0x2603</em> for <em>U+2603 SNOWMAN</em>), or the character encoded as a UTF-8 string (e.g. <em>"\u{2603}"</em>)</p>
  1202. * @return bool|null Returns TRUE if codepoint is a printable character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1203. * @since 7.0
  1204. */
  1205. public static function isprint ($codepoint ) {}
  1206. /**
  1207. * Check if code point is punctuation character
  1208. * @link https://php.net/manual/ru/intlchar.ispunct.php
  1209. * @param int|string $codepoint <p>The integer codepoint value (e.g. <em>0x2603</em> for <em>U+2603 SNOWMAN</em>),
  1210. * or the character encoded as a UTF-8 string (e.g. <em>"\u{2603}"</em>)</p>
  1211. * @return bool|null Returns TRUE if codepoint is a punctuation character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1212. * @since 7.0
  1213. */
  1214. public static function ispunct ($codepoint ) {}
  1215. /**
  1216. * Check if code point is a space character
  1217. * @link https://php.net/manual/ru/intlchar.isspace.php
  1218. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1219. * @return bool|null Returns TRUE if codepoint is a space character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1220. * @since 7.0
  1221. */
  1222. public static function isspace ($codepoint ) {}
  1223. /**
  1224. * Check if code point is a titlecase letter
  1225. * @link https://php.net/manual/ru/intlchar.istitle.php
  1226. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1227. * @return bool|null Returns TRUE if codepoint is a titlecase letter, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1228. * @since 7.0
  1229. */
  1230. public static function istitle ($codepoint ){}
  1231. /**
  1232. * Check if code point has the Alphabetic Unicode property
  1233. * @link https://php.net/manual/ru/intlchar.isualphabetic.php
  1234. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1235. * @return bool|null Returns TRUE if codepoint has the Alphabetic Unicode property, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1236. * @since 7.0
  1237. */
  1238. public static function isUAlphabetic ($codepoint ) {}
  1239. /**
  1240. * Check if code point has the Lowercase Unicode property
  1241. * @link https://php.net/manual/ru/intlchar.isulowercase.php
  1242. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1243. * @return bool|null Returns TRUE if codepoint has the Lowercase Unicode property, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1244. * @since 7.0
  1245. */
  1246. public static function isULowercase ($codepoint ) {}
  1247. /**
  1248. * Check if code point has the general category "Lu" (uppercase letter)
  1249. * @link https://php.net/manual/ru/intlchar.isupper.php
  1250. * @param int|string $codepoint <p>The integer codepoint value (e.g. <em>0x2603</em> for <em>U+2603 SNOWMAN</em>),
  1251. * or the character encoded as a UTF-8 string (e.g. <em>"\u{2603}"</em>)</p>
  1252. * @return bool|null Returns TRUE if codepoint is an Lu uppercase letter, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1253. * @since 7.0
  1254. */
  1255. public static function isupper ($codepoint) {}
  1256. /**
  1257. * Check if code point has the Uppercase Unicode property
  1258. * @link https://php.net/manual/ru/intlchar.isuuppercase.php
  1259. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1260. * @return bool|null Returns TRUE if codepoint has the Uppercase Unicode property, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1261. * @since 7.0
  1262. */
  1263. public static function isUUppercase ($codepoint) {}
  1264. /**
  1265. * Check if code point has the White_Space Unicode property
  1266. * @link https://php.net/manual/ru/intlchar.isuwhitespace.php
  1267. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1268. * @return bool|null Returns TRUE if codepoint has the White_Space Unicode property, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1269. * @since 7.0
  1270. */
  1271. public static function isUWhiteSpace ($codepoint ) {}
  1272. /**
  1273. * Check if code point is a whitespace character according to ICU
  1274. * @link https://php.net/manual/ru/intlchar.iswhitespace.php
  1275. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1276. * @return bool|null Returns TRUE if codepoint is a whitespace character according to ICU, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1277. * @since 7.0
  1278. */
  1279. public static function isWhitespace($codepoint) {}
  1280. /**
  1281. * Check if code point is a hexadecimal digit
  1282. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1283. * @return bool|null Returns TRUE if codepoint is a hexadecimal character, FALSE if not, NULL if <em>codepoint</em> is out of bound.
  1284. * @since 7.0
  1285. */
  1286. public static function isxdigit ($codepoint){}
  1287. /**
  1288. * Return Unicode code point value of character
  1289. * @link https://php.net/manual/ru/intlchar.ord.php
  1290. * @param int|string $character <p>A Unicode character.</p>
  1291. * @return int|null Returns the Unicode code point value as an integer, NULL if <em>codepoint</em> is out of bound.
  1292. * @since 7.0
  1293. */
  1294. public static function ord ($character) {}
  1295. /**
  1296. * Make Unicode character lowercase
  1297. * @link https://php.net/manual/en/intlchar.tolower.php
  1298. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1299. * @return int|string|null Returns the Simple_Lowercase_Mapping of the code point, if any; otherwise the code point itself.
  1300. * The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned.
  1301. * Or NULL if <em>codepoint</em> is out of bound.
  1302. * @since 7.0
  1303. */
  1304. public static function tolower($codepoint) {}
  1305. /**
  1306. * Make Unicode character titlecase
  1307. * @link https://php.net/manual/ru/intlchar.totitle.php
  1308. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1309. * @return int|string|null Returns the Simple_Titlecase_Mapping of the code point, if any; otherwise the code point itself.
  1310. * The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned.
  1311. * Or NULL if <em>codepoint</em> is out of bound.
  1312. * @since 7.0
  1313. */
  1314. public static function totitle ($codepoint ) {}
  1315. /**
  1316. * Make Unicode character uppercase
  1317. * @link https://php.net/manual/ru/intlchar.toupper.php
  1318. * @param int|string $codepoint The integer codepoint value (e.g. 0x2603 for U+2603 SNOWMAN), or the character encoded as a UTF-8 string (e.g. "\u{2603}")
  1319. * @return int|string|null Returns the Simple_Uppercase_Mapping of the code point, if any; otherwise the code point itself.
  1320. * The return type will be integer unless the code point was passed as a UTF-8 string, in which case a string will be returned.
  1321. * Or NULL if <em>codepoint</em> is out of bound.
  1322. * @since 7.0
  1323. */
  1324. public static function toupper ($codepoint ) {}
  1325. }