Skip to content

Add helper for strings #23

@piegamesde

Description

@piegamesde

Usually, one does not want to check individual characters, but strings as a whole. Since this results in repeating the same boilerplate over and over, how about providing a direct mechanism on &str for this purpose? I'm thinking of three methods: starts_with_xid_start, is_xid_continue, is_xid_ident. I'm fine with them being either standalone methods or trait extensions to str.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions