Skip to content

common::Ranged provides method to convert to line/col from byte index #29

Description

@kitsonk

Like Ranged::text(), taking the original text, it would be great to be able to return a (usize, usize) that returns a line and column variant, which is more used when displaying positions to users or editors.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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