Skip to content

Support signature runtime parsing#5

Merged
SpriteOvO merged 1 commit intodevfrom
signature-runtime-parsing
Sep 11, 2023
Merged

Support signature runtime parsing#5
SpriteOvO merged 1 commit intodevfrom
signature-runtime-parsing

Conversation

@SpriteOvO
Copy link
Copy Markdown
Owner

This PR implements signature runtime parsing feature requested in #4.

With this feature added, users will be able to parse runtime signature strings using a new static member function signature::parse.

To use this optional feature, define the configuration macro SIGMATCH_ENABLE_SIGNATURE_RUNTIME_PARSING before including sigmatch.hpp.

Since this library currently lacks a good error handling implementation, the new static member function signature::parse returns a std::optional<signature>, which contains a signature if parsing is successful, or it is a std::nullopt if it encounters an error while parsing. After a good error handling is implemented in the future, the return type of this function will be changed for returning the reason when parsing fails.

@SpriteOvO
Copy link
Copy Markdown
Owner Author

@MattMills Could you try this PR to see if it works well?

@SpriteOvO SpriteOvO force-pushed the signature-runtime-parsing branch from cec5ae4 to 5ecb729 Compare September 11, 2023 16:08
@SpriteOvO
Copy link
Copy Markdown
Owner Author

I'm gonna merge it for now since it's been unresponsive for a long time.

@MattMills Please feel free to reply or open an issue if you have any questions.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant