[sword-devel] InstallSize

DM Smith dmsmith at crosswire.org
Sat Feb 23 12:30:58 MST 2019


Same answer. No punctuation. No other scripts (e.g. arabic). Just a sequence of 0-9.

JSword uses it in its install manager to build a progress meter.

BTW, In C the common routine is atoi, which stops on the first non-digit. So your example would come back as 1.

> On Feb 23, 2019, at 2:24 PM, David Haslam <dfhdfh at protonmail.com> wrote:
> 
> Typo correction.  
> 
> Both separators should have been keyed as a comma. 
> 
>> InstallSize=1,744,408
> 
> 
> Sent from ProtonMail Mobile
> 
> 
> On Sat, Feb 23, 2019 at 19:21, DM Smith <dmsmith at crosswire.org <mailto:dmsmith at crosswire.org>> wrote:
>> 
>> JSword would. It uses a parser to convert it from a string to an integer and it doesn’t understand that format.
>> 
>> > On Feb 23, 2019, at 10:00 AM, David Haslam <dfhdfh at protonmail.com> wrote:
>> >
>> > Would SWORD baulk if the InstallSize key contained commas as thousands separators? e.g.
>> >
>> > InstallSize=1,744.408
>> >
>> > David
>> >
>> > Sent from ProtonMail Mobile
>> > _______________________________________________
>> > sword-devel mailing list: sword-devel at crosswire.org
>> > http://www.crosswire.org/mailman/listinfo/sword-devel
>> > Instructions to unsubscribe/change your settings at above page
>> 
> 
> 
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20190223/3b731961/attachment.html>


More information about the sword-devel mailing list