Skip to content

Provide resource for parsing ILCS strings into their component parts  #8

@bepetersn

Description

@bepetersn

We've talked about switching to only allowing lookup of IUCR code with ILCS bits. If we were to make this change, it would put the responsibility on the client to do their own parsing of ILCS reference strings, parsing which we could at least try to help with.

The simplest thing would be to provide a regex with which to parse ILCS reference strings as a constant, like ILCS_FORMAT. Another possibility would be to expose a method which is capable of doing some parsing for the client.

Problems arise in that there might be multiple formats in which ILCS data could appear, which suggests a more involved approach as opposed to providing a single regex.

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