19 using namespace basis;
26 for (
int i = 0; i < to_return.
length(); i++)
27 if ( ( (to_return[i] >=
'0') && (to_return[i] <=
'9') )
28 || (to_return[i] ==
'.')
29 || (to_return[i] ==
'+') || (to_return[i] ==
'-')
30 || (to_return[i] ==
'E') || (to_return[i] ==
'e') ) {
40 for (
int i = 0; i < to_return.
length(); i++)
41 if ( ! ((to_return[i] >=
'0') && (to_return[i] <=
'9'))
42 && (to_return[i] !=
'.')
43 && (to_return[i] !=
'+') && (to_return[i] !=
'-')
44 && (to_return[i] !=
'E') && (to_return[i] !=
'e') ) {
Provides a dynamically resizable ASCII character string.
virtual void zap(int start, int end)
Deletes the characters between "start" and "end" inclusively.
int length() const
Returns the current length of the string.
Provides some fairly low-level math support.
The guards collection helps in testing preconditions and reporting errors.
Contains all of our objects for geometry and avoids name clashes.
astring crop_non_numeric(const astring &input)
Eats the non-numeric characters from the front of "input".
astring crop_numeric(const astring &input)
Eats the numeric characters from the front of "input".