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

Does this iterator has same implementations in ICU? #90

Open
DamonsJ opened this issue Apr 22, 2023 · 2 comments
Open

Does this iterator has same implementations in ICU? #90

DamonsJ opened this issue Apr 22, 2023 · 2 comments

Comments

@DamonsJ
Copy link

DamonsJ commented Apr 22, 2023

hi, I want to ask a question about this code :

let afnd = s.nfd();
for item in afnd {
       println!("afnd : {:?},{:?}", item.0 , item.1);
 }

what does the second part(item.1) in the item variable means ?
does the iterator has same implementations in ICU?

Thanks!

@Hywan
Copy link

Hywan commented Jul 27, 2023

Hello,

Can you explain what s contains please? nfd() comes from the UnicodeNormalization trait, and returns a Decompositions which implements an Iterator<Item = char>, I don't see any tuple in the equation.

@Manishearth
Copy link
Member

Yeah, I don't understand the issue here.

Which specific ICU are you talking about? ICU normalization is implemented rather differently but it's based on a spec.

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

No branches or pull requests

3 participants