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.
I needed a base64 encoder that was URL safe, and NibbleAndAHalf was by-far the best implementation (simple to understand and fast.) So, I forked and added the proper tables, and APIs.
I am submitting this PR in the hopes that NibbleAndAHalf will provide a URL-safe variant, and superwills can use my changes as a starting point, if deemed worthy. I tried to keep the coding style that superwills uses -- except that my editor insisted on removing whitespace at the end of lines. (Using "git diff -w" will show a diff that ignores those white-space changes.) I made one commit that had only the white-space changes to make it easier to see the substantive changes by themselves.
I do not need any attribution -- if you choose to accept the PR, please remove the comment at the top of base64.h, as it would be very misleading otherwise. (I only added it to adhere to the NibbleAndAHalf terms that said that I should not try to claim the work as my own; I wanted to let users know that they were using my version (and not the real thing) by looking at the source.)