Skip to content

ext/intl: Implement Collator::getRules() - #25222

Open
LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:intl-new-func
Open

LamentXU123 wants to merge 1 commit into
php:masterfrom
LamentXU123:intl-new-func

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

This is a follow-up to #24384 where I find the getRules function is also missing in Collator today.

This expose ucol_getRules to userland as Collator::getRules(). Returns the collator’s tailoring rules as a UTF-8 string or an empty string when no tailoring rules is there.

Note that I know there is also a ucol_getRulesEX, but per doc "ucol_getRules() should normally be used instead." we just use the original one. The EX version need us to allocate buffers for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant