Skip to content

Commit 46c20ec

Browse files
committed
Aligned IntlChar protos to their ARG_INFO (related to #70453)
1 parent 3196230 commit 46c20ec

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

ext/intl/uchar/uchar.c

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static inline int convert_cp(UChar32* pcp, zval *zcp) {
3232
return SUCCESS;
3333
}
3434

35-
/* {{{ proto string IntlChar::chr(int|string $char)
35+
/* {{{ proto string IntlChar::chr(int|string $codepoint)
3636
* Converts a numeric codepoint to UTF-8
3737
* Acts as an identify function when given a valid UTF-8 encoded codepoint
3838
*/
@@ -59,7 +59,7 @@ IC_METHOD(chr) {
5959
}
6060
/* }}} */
6161

62-
/* {{{ proto int IntlChar::ord(int|string $codepoint)
62+
/* {{{ proto int IntlChar::ord(int|string $character)
6363
* Converts a UTf-8 encoded codepoint to its integer U32 value
6464
* Acts as an identity function when passed a valid integer codepoint
6565
*/
@@ -79,7 +79,7 @@ IC_METHOD(ord) {
7979
}
8080
/* }}} */
8181

82-
/* {{{ proto bool IntlChar::hasBinaryProperty(int|string $char, int $property) */
82+
/* {{{ proto bool IntlChar::hasBinaryProperty(int|string $codepoint, int $property) */
8383
ZEND_BEGIN_ARG_INFO_EX(hasBinaryProperty_arginfo, 0, ZEND_RETURN_VALUE, 2)
8484
ZEND_ARG_INFO(0, codepoint)
8585
ZEND_ARG_INFO(0, property)
@@ -98,7 +98,7 @@ IC_METHOD(hasBinaryProperty) {
9898
}
9999
/* }}} */
100100

101-
/* {{{ proto int IntlChar::getIntPropertyValue(int|string $char, int $property) */
101+
/* {{{ proto int IntlChar::getIntPropertyValue(int|string $codepoint, int $property) */
102102
ZEND_BEGIN_ARG_INFO_EX(getIntPropertyValue_arginfo, 0, ZEND_RETURN_VALUE, 2)
103103
ZEND_ARG_INFO(0, codepoint)
104104
ZEND_ARG_INFO(0, property)
@@ -147,7 +147,7 @@ IC_METHOD(getIntPropertyMaxValue) {
147147
}
148148
/* }}} */
149149

150-
/* {{{ proto float IntlChar::getNumericValue(int|string $char) */
150+
/* {{{ proto float IntlChar::getNumericValue(int|string $codepoint) */
151151
ZEND_BEGIN_ARG_INFO_EX(getNumericValue_arginfo, 0, ZEND_RETURN_VALUE, 1)
152152
ZEND_ARG_INFO(0, codepoint)
153153
ZEND_END_ARG_INFO();
@@ -164,7 +164,7 @@ IC_METHOD(getNumericValue) {
164164
}
165165
/* }}} */
166166

167-
/* {{{ proto void IntlChar::enumCharTypes(callable $cb) */
167+
/* {{{ proto void IntlChar::enumCharTypes(callable $callback) */
168168
ZEND_BEGIN_ARG_INFO_EX(enumCharTypes_arginfo, 0, ZEND_RETURN_VALUE, 0)
169169
ZEND_ARG_INFO(0, callback)
170170
ZEND_END_ARG_INFO();
@@ -209,7 +209,7 @@ IC_METHOD(enumCharTypes) {
209209
}
210210
/* }}} */
211211

212-
/* {{{ proto int IntlChar::getBlockCode(int|string $char) */
212+
/* {{{ proto int IntlChar::getBlockCode(int|string $codepoint) */
213213
ZEND_BEGIN_ARG_INFO_EX(getBlockCode_arginfo, 0, ZEND_RETURN_VALUE, 1)
214214
ZEND_ARG_INFO(0, codepoint)
215215
ZEND_END_ARG_INFO()
@@ -226,7 +226,7 @@ IC_METHOD(getBlockCode) {
226226
}
227227
/* }}} */
228228

229-
/* {{{ proto string IntlChar::charName(int|string $char, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
229+
/* {{{ proto string IntlChar::charName(int|string $codepoint, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
230230
ZEND_BEGIN_ARG_INFO_EX(charName_arginfo, 0, ZEND_RETURN_VALUE, 1)
231231
ZEND_ARG_INFO(0, codepoint)
232232
ZEND_ARG_INFO(0, nameChoice)
@@ -256,7 +256,7 @@ IC_METHOD(charName) {
256256
}
257257
/* }}} */
258258

259-
/* {{{ proto int IntlChar::charFromName(string $name, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
259+
/* {{{ proto int IntlChar::charFromName(string $characterName, int $nameChoice = IntlChar::UNICODE_CHAR_NAME) */
260260
ZEND_BEGIN_ARG_INFO_EX(charFromName_arginfo, 0, ZEND_RETURN_VALUE, 1)
261261
ZEND_ARG_INFO(0, characterName)
262262
ZEND_ARG_INFO(0, nameChoice)
@@ -374,7 +374,7 @@ IC_METHOD(getPropertyEnum) {
374374
}
375375
/* }}} */
376376

377-
/* {{{ proto string IntlChar::getPropertyValueName(int $prop, int $val[, int $nameChoice = IntlChar::LONG_PROPERTY_NAME) */
377+
/* {{{ proto string IntlChar::getPropertyValueName(int $property, int $value[, int $nameChoice = IntlChar::LONG_PROPERTY_NAME) */
378378
ZEND_BEGIN_ARG_INFO_EX(getPropertyValueName_arginfo, 0, ZEND_RETURN_VALUE, 2)
379379
ZEND_ARG_INFO(0, property)
380380
ZEND_ARG_INFO(0, value)
@@ -417,9 +417,9 @@ IC_METHOD(getPropertyValueEnum) {
417417
}
418418
/* }}} */
419419

420-
/* {{{ proto int|string IntlChar::foldCase(int|string $char, int $options = IntlChar::FOLD_CASE_DEFAULT) */
420+
/* {{{ proto int|string IntlChar::foldCase(int|string $codepoint, int $options = IntlChar::FOLD_CASE_DEFAULT) */
421421
ZEND_BEGIN_ARG_INFO_EX(foldCase_arginfo, 0, ZEND_RETURN_VALUE, 1)
422-
ZEND_ARG_INFO(0, foldCase)
422+
ZEND_ARG_INFO(0, codepoint)
423423
ZEND_ARG_INFO(0, options)
424424
ZEND_END_ARG_INFO();
425425
IC_METHOD(foldCase) {
@@ -445,7 +445,7 @@ IC_METHOD(foldCase) {
445445
}
446446
/* }}} */
447447

448-
/* {{{ proto int IntlChar::digit(int|string $char[, int $radix = 10]) */
448+
/* {{{ proto int IntlChar::digit(int|string $codepoint[, int $radix = 10]) */
449449
ZEND_BEGIN_ARG_INFO_EX(digit_arginfo, 0, ZEND_RETURN_VALUE, 1)
450450
ZEND_ARG_INFO(0, codepoint)
451451
ZEND_ARG_INFO(0, radix)
@@ -487,7 +487,7 @@ IC_METHOD(forDigit) {
487487
}
488488
/* }}} */
489489

490-
/* {{{ proto array IntlChar::charAge(int|string $char) */
490+
/* {{{ proto array IntlChar::charAge(int|string $codepoint) */
491491
ZEND_BEGIN_ARG_INFO_EX(charAge_arginfo, 0, ZEND_RETURN_VALUE, 1)
492492
ZEND_ARG_INFO(0, codepoint)
493493
ZEND_END_ARG_INFO();
@@ -526,7 +526,7 @@ IC_METHOD(getUnicodeVersion) {
526526
}
527527
/* }}} */
528528

529-
/* {{{ proto string IntlChar::getFC_NFKC_Closure(int|string $char) */
529+
/* {{{ proto string IntlChar::getFC_NFKC_Closure(int|string $codepoint) */
530530
ZEND_BEGIN_ARG_INFO_EX(getFC_NFKC_Closure_arginfo, 0, ZEND_RETURN_VALUE, 1)
531531
ZEND_ARG_INFO(0, codepoint)
532532
ZEND_END_ARG_INFO();
@@ -563,7 +563,7 @@ IC_METHOD(getFC_NFKC_Closure) {
563563
}
564564
/* }}} */
565565

566-
/* {{{ proto bool IntlChar::<name>(int|string $char) */
566+
/* {{{ proto bool IntlChar::<name>(int|string $codepoint) */
567567
#define IC_BOOL_METHOD_CHAR(name) \
568568
ZEND_BEGIN_ARG_INFO_EX(name##_arginfo, 0, ZEND_RETURN_VALUE, 1) \
569569
ZEND_ARG_INFO(0, codepoint) \
@@ -605,7 +605,7 @@ IC_BOOL_METHOD_CHAR(isJavaIDPart)
605605
#undef IC_BOOL_METHOD_CHAR
606606
/* }}} */
607607

608-
/* {{{ proto int IntlChar::<name>(int|string $char) */
608+
/* {{{ proto int IntlChar::<name>(int|string $codepoint) */
609609
#define IC_INT_METHOD_CHAR(name) \
610610
ZEND_BEGIN_ARG_INFO_EX(name##_arginfo, 0, ZEND_RETURN_VALUE, 1) \
611611
ZEND_ARG_INFO(0, codepoint) \
@@ -623,7 +623,7 @@ IC_INT_METHOD_CHAR(charDigitValue)
623623
#undef IC_INT_METHOD_CHAR
624624
/* }}} */
625625

626-
/* {{{ proto int|string IntlChar::<name>(int|string $char)
626+
/* {{{ proto int|string IntlChar::<name>(int|string $codepoint)
627627
* Returns a utf-8 character if codepoint was passed as a utf-8 sequence
628628
* Returns an int otherwise
629629
*/

0 commit comments

Comments
 (0)