Skip to content

digit.xml: add tags, amend example#3595

Merged
jordikroon merged 2 commits into
php:masterfrom
mmalferov:patch-48
May 15, 2026
Merged

digit.xml: add tags, amend example#3595
jordikroon merged 2 commits into
php:masterfrom
mmalferov:patch-48

Conversation

@mmalferov
Copy link
Copy Markdown
Member

In the description of the method,

In this case the value is c-'A'+10 for latin lettera A-Z

and

In this case the value is ch-'a'+10

— it looks like this text was copied aimlessly from the comment of the ICU source code file:

source/common/unicode/uchar.h

And these sentences, IMHO, do not make sense in the context of the PHP method description, but only u_digit definition:

source/common/uchar.cpp

> In this case the value is c-'A'+10 for latin lettera A-Z

and

> In this case the value is ch-'a'+10

— it looks like this text was copied aimlessly from the comment of the ICU source code file:

https://github.com/unicode-org/icu/blob/40b2ec3c3727bca975824fdb9d1f084207d535ff/icu4c/source/common/unicode/uchar.h#L4252

And these sentences, IMHO, do not make sense in the context of the PHP method description, but only `u_digit` definition:

https://github.com/unicode-org/icu/blob/40b2ec3c3727bca975824fdb9d1f084207d535ff/icu4c/source/common/uchar.cpp#L452
@mmalferov mmalferov changed the title digit.xml: add tags, amend example, del meaningless sentences digit.xml: add tags, amend example Jul 24, 2024
@Girgias Girgias requested a review from devnexen July 26, 2024 01:41
@lacatoire
Copy link
Copy Markdown
Member

LGTM Thanks @mmalferov
Fixes obvious copy-paste issue from ICU docs. Clean improvement.

@jordikroon jordikroon merged commit e166139 into php:master May 15, 2026
@jordikroon
Copy link
Copy Markdown
Member

Thanks!

@mmalferov mmalferov deleted the patch-48 branch May 15, 2026 23:20
jordikroon pushed a commit to Narkunan/doc-en that referenced this pull request May 17, 2026
* digit.xml: add tags, amend example, del meaningless sentences

> In this case the value is c-'A'+10 for latin lettera A-Z

and

> In this case the value is ch-'a'+10

— it looks like this text was copied aimlessly from the comment of the ICU source code file:

https://github.com/unicode-org/icu/blob/40b2ec3c3727bca975824fdb9d1f084207d535ff/icu4c/source/common/unicode/uchar.h#L4252

And these sentences, IMHO, do not make sense in the context of the PHP method description, but only `u_digit` definition:

https://github.com/unicode-org/icu/blob/40b2ec3c3727bca975824fdb9d1f084207d535ff/icu4c/source/common/uchar.cpp#L452

* digit.xml: restore `ch - 'A' + 10` but replace `ch` to `codepoint`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants