|
|
MKoD - D Programming Language
Box-xtras Support Projects
Created this section as a place to put any std.boxer related code in support for this new container, which is now available in
the Phobos standard runtime library to D developers in D
v0.124. And since Andrew Fedoniouk had made a requested for me to write a toNumeric() function after seeing the isNumeric()
function I placed on the D "Announcements" forum recently (June 2005), I needed a good
place to put this code here on the site.
Thus, a this new section was born...Box-xtras. ;)
03.Jun.05 Corrected a number of issues in the toNumeric() function, and added support for
complex floats.
07.Jun.05 Cut out the duplicate checking of the input string for what type of numeric thats been
pass into the toNumeric() function, by adding the ability for the isNumeric() function to return attributes flags (bool[]):
bInt (Whole Number), bNeg (Negative Number), bISuffix (Imaginary Floating-Point Number), and bComplex (Complex Floating-Point
Number).
22.Jun.05 Added a set of isFunc() utility functions that could be useful.
-
Box-xtras - toNumeric.d v0.25 and isBox.d v0.1
• Box toNumeric( in char[], in bool = false ) - 100% Done, passed test.
• bool isEmpty( in Box ) - 100% Done, still testing.
• bool isNull( in Box ) - 100% Done, still testing.
• bool isSignedInteger( in Box ) - 100% Done, still testing.
• bool isUnsignedInteger( in Box ) - 100% Done, still testing.
• bool isFloatingPoint( in Box ) - 100% Done, still testing.
• bool isImaginaryFloat( in Box ) - 100% Done, still testing.
• bool isComplexFloat( in Box ) - 100% Done, still testing.
• bool isStringUTF8( in Box ) - 100% Done, still testing.
• bool isCharUTF8( in Box ) - 100% Done, still testing.
• bool isStringUTF16( in Box ) - 100% Done, still testing.
• bool isCharUTF16( in Box ) - 100% Done, still testing.
• bool isStringUTF32( in Box ) - 100% Done, still testing.
• bool isCharUTF32( in Box ) - 100% Done, still testing.
• char[] toString( in Box ) - 100% Done, still testing.
• wchar[] toStringW( in Box ) - 100% Done, still testing.
• dchar[] toStringD( in Box ) - 100% Done, still testing.
• int getDataSize( in Box ) - 100% Done, still testing.
Note:
Currently includes isNumeric.d v0.37 (which validates whether a string is a valid numeric
string or not), but as soon as the v0.37 version of isNumeric() replaces the v0.30 version
that's in std.string, this separate file will be removed as a requirement.
|