Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

String grapheme splitting support #5

Open
PgBiel opened this issue Apr 27, 2024 · 0 comments
Open

String grapheme splitting support #5

PgBiel opened this issue Apr 27, 2024 · 0 comments
Labels
help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target

Comments

@PgBiel
Copy link
Member

PgBiel commented Apr 27, 2024

We are missing a string grapheme splitting algorithm, causing string functions such as length (which originally counts graphemes), split (which splits into graphemes when the separator is empty), as well as pop_grapheme and to_graphemes, to be inconsistent with other targets.

We'd have to investigate the best way forward here. It's likely we'd have to make a small Rust or Python (or Gleam!) program to process Unicode data and generate relevant tables.

@PgBiel PgBiel added help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target labels Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed nix incompatibility Some function works differently or doesn't work in the Nix target
Projects
None yet
Development

No branches or pull requests

1 participant