[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Re: base64 en/decoding helper
From: |
Stefan Schmiedl |
Subject: |
Re: [Help-smalltalk] Re: base64 en/decoding helper |
Date: |
Fri, 26 Jun 2009 21:59:11 +0200 |
On Fri, 26 Jun 2009 21:19:04 +0200
Joachim Jaeckel <address@hidden> wrote:
> > iterate over "aString , '\0\0\0'", you'll get your padding at the
> > end for free without extra checks
>
> Sorry, but I didn't get that... do you mean to initialize 'tripple'
> with '\0\0\0'?
First of all, I don't know how a string with three nuls would have
to be written correctly. That said, the rest is valid:
'abcde' , '...' gives you 'abcde...'
which becomes 'abc' and 'de.'.
The loop ends when j >= aString size (original string).
The best solution to a problem is avoiding it :-)
s.