From: Jean Privat Date: Fri, 10 Jun 2016 01:55:20 +0000 (-0400) Subject: Merge: Base64: Revamped base64_decode and added a strict mode X-Git-Url: http://nitlanguage.org Merge: Base64: Revamped base64_decode and added a strict mode As talked with @ppepos, base64_decode now supports either `strict` or `non-strict` modes when decoding a base64 string. The `strict` mode is inspired from the `-i` option from the Unix `base64` command, which ignores non-compliant characters and non-padded `base64` strings. This is more or less what we do now, `strict` being the default. Since only one allocation and copy is done now, performance should be better. There is however one pitfall of this implementation due to the `nullable Object` contract from `Collection[K]`, causing multiple boxings, some further optimization could be done on that front. Pull-Request: #2086 Reviewed-by: Jean Privat --- ac4f7164740e65fc20a69dfdd11622570abb25e8