Skip to content

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

@kitsonk

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.

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