Skip to content

Support is_letter() on char. #37069

Closed
Closed
@daschl

Description

@daschl

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

No one assigned

    Labels

    C-enhancementCategory: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions