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

[SR-7618] String Views should provide count estimates #50160

Open
milseman mannequin opened this issue May 6, 2018 · 1 comment
Open

[SR-7618] String Views should provide count estimates #50160

milseman mannequin opened this issue May 6, 2018 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella

Comments

@milseman
Copy link
Mannequin

milseman mannequin commented May 6, 2018

Previous ID SR-7618
Radar None
Original Reporter @milseman
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Standard Library
Labels Bug
Assignee @milseman
Priority Medium

md5: dc95006abeccc56643787f83a2c59575

Issue Description:

In the near term, String.UTF8View can provide a useful underestimate by returning the code unit count.

When we do `estimatedCount` or something similar, the other views can provide overestimates by returning the code unit count.

@milseman
Copy link
Mannequin Author

milseman mannequin commented May 6, 2018

CC @moiseev

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. standard library Area: Standard library umbrella
Projects
None yet
Development

No branches or pull requests

0 participants