Skip to content

[RFC][PoC] Add grapheme_limit_codepoints function#21311

Draft
youkidearitai wants to merge 4 commits intophp:masterfrom
youkidearitai:grapheme_limit_codepoints
Draft

[RFC][PoC] Add grapheme_limit_codepoints function#21311
youkidearitai wants to merge 4 commits intophp:masterfrom
youkidearitai:grapheme_limit_codepoints

Conversation

@youkidearitai
Copy link
Contributor

Unicode's grapheme cluster is no limit codepoints. But 1 grapheme cluster and many codepoints can maybe crash. So I would like set limit for codepoints per grapheme cluster.

Process

  1. Validate to grapheme cluster code points because avoid crash.
  2. If passed, measure grapheme cluster uses grapheme_strlen.
  • If not passed, throws an error.

Unicode's grapheme cluster is no limit codepoints.
But 1 grapheme cluster and many codepoints can maybe crash.
So I would like set limit for codepoints per grapheme cluster.
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