Skip to content

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

Merged
zesterer merged 14 commits intozesterer:mainfrom
Hedgehogo:char_impl_for_grapheme
Jan 1, 2025
Merged

Implementing Char for graphemes and all the necessary changes to make it happen.#698
zesterer merged 14 commits intozesterer:mainfrom
Hedgehogo:char_impl_for_grapheme

Conversation

@Hedgehogo
Copy link
Collaborator

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