-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
Unicode defines the category L
for letter similar to others. We already have different accessors on char
based on unicode and it would make sense to also check if the char
is on a letter boundary (so for example you can split on non-letter boundaries). Go has a similar function available in its unicode package: https://golang.org/pkg/unicode/#IsLetter
Right now I'm using the unicode_categories
crate but I think it has some bugs and I wonder if such basic unicode properties on char make sense to be part of stdlib directly.
Metadata
Metadata
Assignees
Labels
C-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.