Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[String] New locale aware casing methods#52198

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:7.1frombram123:locale_string_formatter
Nov 18, 2023

Conversation

@bram123
Copy link
Contributor

@bram123bram123 commentedOct 20, 2023
edited by nicolas-grekas
Loading

QA
Branch?7.1
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#52161
LicenseMIT

Adds new localeUpper/localeLower/localeTitle methods to the AbstractUnicodeString class

  • To change the string case according to locale-specific case mappings

Code examples:

$string =newUnicodeString('άδικος');echo$string->upper(),PHP_EOL;// ΆΔΙΚΟΣecho$string->localeUpper('el'),PHP_EOL;// ΑΔΙΚΟΣ$string =newUnicodeString('ijssel');echo$string->title(),PHP_EOL;// Ijsselecho$string->localeTitle('nl'),PHP_EOL;// IJssel$string =newUnicodeString('İSTANBUL');echo$string->lower(),PHP_EOL;// i̇stanbul (LATIN SMALL LETTER I COMBINING DOT ABOVE)echo$string->localeLower('tr'),PHP_EOL;// istanbul (LATIN SMALL LETTER I)

dspasic reacted with thumbs up emojismnandre reacted with heart emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Can you please also add a line to the changelog of the component?

bram123 reacted with thumbs up emoji
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Two minor nitpicking and GTM, thanks.

bram123 reacted with thumbs up emoji
@smnandre
Copy link
Member

Re-copying this there in case we need it in a following PR or to write doc :

--> officialICU list of special casings

@nicolas-grekasnicolas-grekas modified the milestones:6.4,7.1Oct 23, 2023
@fabpotfabpotforce-pushed thelocale_string_formatter branch from0263036 to7f4ed5cCompareNovember 18, 2023 18:32
@fabpot
Copy link
Member

Thank you@bram123.

bram123 and asrorbekh reacted with hooray emoji

@fabpotfabpot merged commit19f5240 intosymfony:7.1Nov 18, 2023
@fabpotfabpot mentioned this pull requestMay 2, 2024
@bram123bram123 deleted the locale_string_formatter branchOctober 3, 2024 17:41
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@fabpotfabpotfabpot approved these changes

@OskarStarkOskarStarkOskarStark approved these changes

@ycerutoycerutoyceruto approved these changes

@derrabusderrabusAwaiting requested review from derrabus

+1 more reviewer

@smnandresmnandresmnandre left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

7.1

Development

Successfully merging this pull request may close these issues.

[String] NewLocaleString class

8 participants

@bram123@smnandre@fabpot@nicolas-grekas@OskarStark@derrabus@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp