Add support for creating SteamId from any Steam ID version
#54
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a new function that allows users to create
SteamIdfrom u64 string, Steam 2 ID and Steam 3 ID (#15) and another function to create from account id. It also adds some helper function like setting some ID bits manually and displaying ID as 3rd version.Most of the code is rust implementation of xPaw's SteamId library.
If you think regex/pomsky is too much I can try and rewrite using nom, but also I'm thinking about adding support for creating
SteamIdfrom url and regex might be used there too, it wouldn't be impossible without but it's simpler