class NUMBERS < $BINARY
****

________This_class_contains_the_numeric_components_of_the_cultural
___description_as_specified_in_ISO/IEC_14652_(as_amended).

________The_two_components_actually_come_from_two_different_segments_of
___the_specification_:-

________format_from_the_LC_NUMBER_section
________alternative_digits_-_from_the_date/time_section.

________Apart_from_reading_and_writing_of_the_attributes_from/to_a_file,
___this_provides_services_to_produce_a_string_of_digits_from_a_character
___string,_omitting_thousands_sep_characters_and_(optionally)_suppressing
___leading_zeroes.


Ancestors
$BINARY



Public


Readable Attributes
attr digits : ALT_DIGITS ;
attr format : NUMBER_FMT ;

Features
binstr : BINSTR
build(str : BIN_CURSOR) : SAME
**** Given a binary file string, this routine attempts to create a new
___object_provided_that_the_first_octet_is_an_encoding_of_the_value_true,
___otherwise_void_is_returned_and_the_only_octet_which_has_been_removed_is
___the_first.
build(str : BIN_CURSOR,lib : LIBCHARS) : SAME
****
________Given_a_binary_file_string,_this_routine_attempts_to_create_a_new
___object_provided_that_the_first_octet_is_an_encoding_of_the_value_true,
___otherwise_void_is_returned_and_the_only_octet_which_has_been_removed_is
___the_first.
create(str : BINSTR) : SAME .. Included as create
create(form : NUMBER_FMT,digs : ALT_DIGITS) : SAME
is_ignore(ch : CHAR_CODE) : BOOL
**** This predicate yields true if ch is a valid separator.
opt_sign(val : CHAR_CODE,out found : BOOL) : BOOL
read(index : BIN_CURSOR) : SAME .. Included as read
strip(src : CODE_STR) : CODE_STR
write(fyle : BIN_FILE) .. Included as write


Private

attr digits : ALT_DIGITS ;
attr format : NUMBER_FMT ;

The Sather Home Page