Create a remove duplicates functionality · Issue #267 · rust-embedded/svdtools · GitHub
Skip to content

Create a remove duplicates functionality #267

Open

Description

@shaydonb

Problem: Sometimes register names contain duplicate strings that
unnecessarily lengthen them.

Solution: Remove the largest duplicated substring, with a specified
delimiter to avoid removing mere duplicated characters.

Activity

  1. added a commit that references this issue on Jan 10, 2025
    1f9bdf8
  2. shaydonb commented on Jan 10, 2025

    @shaydonb
    Author

    Hi folks, fumbling around with this new-to-me code base because I am working with some registers that have a lot of duplicated naming within. My unit-level test is passing, but the example patch.yaml doesn't yield the output I would hope to see, which is all duplicate names separated by the same delimiter removed.

    Some basic printf debugging indicates that some matches are occurring but the structure of these data structures are a little hard to follow and I'm wondering if anyone might have any suggestions? Thanks in advance for taking a look at the draft PR.

  3. added a commit that references this issue on Jan 10, 2025
    0e3ac47
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