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

Unicode text manipulation #127

Open
fmease opened this issue Jan 17, 2022 · 0 comments
Open

Unicode text manipulation #127

fmease opened this issue Jan 17, 2022 · 0 comments
Labels
A-library Area: Standard library A-name-resolution Area: Name resolution

Comments

@fmease
Copy link
Owner

fmease commented Jan 17, 2022

Provide types for UTF-8 encoded strings (currently named Text), strings in the ASCII range (Byte-String maybe) and several “character”-like entities:

  • ASCII character / UTF-8 Code Unit: Naming unclear expect that we should stay away from Char! (Rust's overloaded u8), maybe Byte-Character
  • Unicode Scalar (Rust's char, Swift's Unicode.Scalar): Naming unclear
  • Extended Grapheme Cluster (Swift's Character): Naming unclear, maybe Char or Character

All of those types should allow construction via "text" literals (see #126). E.g. Text."test", Char."ä", Scalar."ä".
What about normalization? Swift automatically normalizes (literals, any string, …?).

@fmease fmease added A-name-resolution Area: Name resolution A-library Area: Standard library labels Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-library Area: Standard library A-name-resolution Area: Name resolution
Projects
None yet
Development

No branches or pull requests

1 participant