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

Implementing Char for graphemes and all the necessary changes to make it happen. #698

Merged
merged 14 commits into from
Jan 1, 2025

Conversation

Hedgehogo
Copy link
Contributor

Added Graphemes and Grapheme types. Cardinally updated Char trait and slightly modified StrInput trait

add `Grapheme`, `Graphemes` and `GraphemeIter` types

move the implementation of input traits to the `text` module

replace type `Input::Item` with `Grapheme`

implement seq traits for graphemes
Remove `Char::Str` and everything related to it.

Remove a number of supertraits for the `Char` trait.

Replace `Char::to_char()` with `Char::to_ascii()`.

Remove `Char::from_ascii()`.

Add `Char::is_newline()`.

Remove the generic `C` from `StrInput`.
@zesterer
Copy link
Owner

zesterer commented Nov 3, 2024

Thanks! I'll try to find time to review this over the next day or two.

Copy link
Owner

@zesterer zesterer left a comment

Choose a reason for hiding this comment

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

Happy with these changes, thanks for your work on this PR!

@zesterer zesterer merged commit ae01819 into zesterer:main Jan 1, 2025
3 of 4 checks passed
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.

2 participants