develooper Front page | perl.perl6.internals | Postings from December 2001

[commit] string boolean

From:
Alex Gough
Date:
December 27, 2001 10:52
Subject:
[commit] string boolean
Message ID:
Pine.OSF.4.33.0112271849220.31932-100000@ermine.ox.ac.uk
I wrote stuff for string boolean tests, to be the same as perl...

Hopefully I've put the bits in the right places this time.

 * Added get_digit() to chartypes
 * Added string_bool() to strings
 * Added if_s_ic op, to use same
 * Added (PerlString)->get_bool stuff to perlstring.pmc
 * Tests for above, also a for couple of other ops without tests

The unicode chartype has only had placeholders added for get_digit,
string_to_num has been updated to use type->get_digit rather than the
previous ascii-isms.  Some remain, but we need to carefully define
what we mean by a number before we let thousands of code points act as
a minus sign.

Alex Gough




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About