Skip to content

StringFormat to keep track of placeholder names? #79

@HKBUSeanTYH

Description

@HKBUSeanTYH

I am using the StringFormat class to create templates for file content validation and extracting values of interest. However because of having more than 8 placeholders, I am unable to use any of the parse/scan methods that takes a function/consumer, and can only use scanAsLists or parseAsList.

This helps me get all the values of interest, however, I have to work with list indexes which can’t be clear at a glance without referring to the template.

Is there any way for StringFormat to internally store and return the names of the placeholders as a list so that I can construct a Map from the two lists?

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