immutable class MONETARY_UNITS < $ENUMS{MONETARY_UNITS}


Ancestors
$ENUMS{_} $BINARY $NIL $IS_NIL
$ANCHORED_FMT $FMT $STR $TEXT
$HASH $IS_EQ



Public


Readable Attributes
attr enum : CARD ; .. Included as enum
**** Used also for transforming an enum to a cardinal value.

Constants
const cardinality : CARD := val_count ; .. Included as cardinality
**** the default value!
const offset : CARD := 1 ; .. Included as offset
****
________This_is_the_offset_from_the_index_of_first_element_of_the_Names_array
___(ie_zero)_to_the_first_enumeration_value_numeric_code.

Features
Afghanistan : MONETARY_UNITS .. Included as Afghanistan
Albania : MONETARY_UNITS .. Included as Albania
Algeria : MONETARY_UNITS .. Included as Algeria
Angola : MONETARY_UNITS .. Included as Angola
****
_____-_Antigua
_____-_Barbuda
_____-_Dominican_C/W
_____-_Grenada
_____-_Montserrat
_____-_St_Kitts-Nevis
_____-_St_Lucia
_____-_St_Vincent
Argentina : SAME .. Included as Argentina
Aruba : SAME .. Included as Aruba
****
_____-_Kiribati
_____-_Nauru
_____-_Norfolk_Is
_____-_Tuvalu_Is
Australia : SAME .. Included as Australia
**** also
_____-_Kiribati
_____-_Nauru
_____-_Norfolk_Is
_____-_Tuvalu_Is
Austria : SAME .. Included as Austria
Azerbaijan : SAME .. Included as Azerbaijan
Bahamas : SAME .. Included as Bahamas
Bahrain : SAME .. Included as Bahrain
Bangladesh : SAME .. Included as Bangladesh
Barbados : SAME .. Included as Barbados
Belgium : SAME .. Included as Belgium
Belize : SAME .. Included as Belize
****
_____-_Burkina_Faso
_____-_Cameroon
_____-_Guinea_Bissau
_____-_Ivory_Coast
_____-_Mali
_____-_Niger
_____-_Senegal
_____-_Togo
Bermuda : SAME .. Included as Bermuda
Bhutan : SAME .. Included as Bhutan
Bolivia : SAME .. Included as Bolivia
Bosnia_Herzegovina : SAME .. Included as Bosnia_Herzegovina
Botswana : SAME .. Included as Botswana
Brazil : SAME .. Included as Brazil
Brunei : SAME .. Included as Brunei
Bulgaria : SAME .. Included as Bulgaria
Burma : SAME .. Included as Burma
Burundi : SAME .. Included as Burundi
Byelorussia : SAME .. Included as Byelorussia
CAF_Franc : SAME .. Included as CAF_Franc
**** Cameroon
_____-_Cent._Afr_Rep.
_____-_Chad
_____-_Congo_Rep
_____-_Eq._Guinea
_____-_Gabon
CFA_Franc : SAME .. Included as CFA_Franc
**** Benin
_____-_Burkina_Faso
_____-_Cameroon
_____-_Guinea_Bissau
_____-_Ivory_Coast
_____-_Mali
_____-_Niger
_____-_Senegal
_____-_Togo
Cambodia : SAME .. Included as Cambodia
****
_____-_Cent._Afr_Rep.
_____-_Chad
_____-_Congo_Rep
_____-_Eq._Guinea
_____-_Gabon
Canada : SAME .. Included as Canada
Cape_Verde_Is : SAME .. Included as Cape_Verde_Is
Cayman_Is : SAME .. Included as Cayman_Is
Chile : SAME .. Included as Chile
China : SAME .. Included as China
Colombia : SAME .. Included as Colombia
Comoro_Is : SAME .. Included as Comoro_Is
****
_____-_Congo_(Kinshasa)
Congo_Zaire : SAME .. Included as Congo_Zaire
**** also
_____-_Congo_(Kinshasa)
Costa_Rica : SAME .. Included as Costa_Rica
Croatia : SAME .. Included as Croatia
Cuba : SAME .. Included as Cuba
Cyprus : SAME .. Included as Cyprus
Czech_Rep : SAME .. Included as Czech_Rep
****
_____-_Faeroe_Is
_____-_Greenland
Denmark : SAME .. Included as Denmark
**** also
_____-_Faeroe_Is
_____-_Greenland
Djibouti : SAME .. Included as Djibouti
Dominican_Rep : SAME .. Included as Dominican_Rep
ECU : SAME .. Included as ECU
**** European Currency Unit
EC_Dollar : SAME .. Included as EC_Dollar
**** - Anguilla
_____-_Antigua
_____-_Barbuda
_____-_Dominican_C/W
_____-_Grenada
_____-_Montserrat
_____-_St_Kitts-Nevis
_____-_St_Lucia
_____-_St_Vincent
Ecuador : SAME .. Included as Ecuador
Egypt : SAME .. Included as Egypt
El_Salvador : SAME .. Included as El_Salvador
Estonia : SAME .. Included as Estonia
****
_____-_Eritrea
Ethiopia : SAME .. Included as Ethiopia
**** also
_____-_Eritrea
Falkland_Is : SAME .. Included as Falkland_Is
Fiji : SAME .. Included as Fiji
Finland : SAME .. Included as Finland
****
_____-_Andorra
_____-_Fr_Guiana
_____-_Fr_Polynesia
_____-_Guadeloupe
_____-_Martinique
_____-_Mayotte
_____-_Monaco
_____-_Reunion_Is
France : SAME .. Included as France
**** also
_____-_Andorra
_____-_Fr_Guiana
_____-_Fr_Polynesia
_____-_Guadeloupe
_____-_Martinique
_____-_Mayotte
_____-_Monaco
_____-_Reunion_Is
Gambia : SAME .. Included as Gambia
Georgia : SAME .. Included as Georgia
Germany : SAME .. Included as Germany
Ghana : SAME .. Included as Ghana
Gibraltar : SAME .. Included as Gibraltar
Greece : SAME .. Included as Greece
Guatemala : SAME .. Included as Guatemala
Guinea : SAME .. Included as Guinea
Guyana : SAME .. Included as Guyana
Haiti : SAME .. Included as Haiti
Honduras : SAME .. Included as Honduras
Hong_Kong : SAME .. Included as Hong_Kong
Hungary : SAME .. Included as Hungary
Iceland : SAME .. Included as Iceland
****
_____-_Bhutan
India : SAME .. Included as India
**** also
_____-_Bhutan
Indonesia : SAME .. Included as Indonesia
Iran : SAME .. Included as Iran
Iraq : SAME .. Included as Iraq
Ireland : SAME .. Included as Ireland
Israel : SAME .. Included as Israel
****
_____-_San_Marino
_____-_Vatican_City
Italy : SAME .. Included as Italy
**** also
_____-_San_Marino
_____-_Vatican_City
Jamaica : SAME .. Included as Jamaica
Japan : SAME .. Included as Japan
Jordan : SAME .. Included as Jordan
Kazakhstan : SAME .. Included as Kazakhstan
Kenya : SAME .. Included as Kenya
Kuwait : SAME .. Included as Kuwait
Kyrgyzstan : SAME .. Included as Kyrgyzstan
Laos : SAME .. Included as Laos
Latvia : SAME .. Included as Latvia
Lebanon : SAME .. Included as Lebanon
Lesotho : SAME .. Included as Lesotho
Liberia : SAME .. Included as Liberia
Libya : SAME .. Included as Libya
Lithuania : SAME .. Included as Lithuania
Local : MONETARY_UNITS .. Included as Local
**** Whatever it is
Luxembourg : SAME .. Included as Luxembourg
Macau : SAME .. Included as Macau
Macedonia : SAME .. Included as Macedonia
Madagascar : SAME .. Included as Madagascar
Malawi : SAME .. Included as Malawi
Malaysia : SAME .. Included as Malaysia
Maldive_Is : SAME .. Included as Maldive_Is
Malta : SAME .. Included as Malta
Mauritania : SAME .. Included as Mauritania
Mauritius : SAME .. Included as Mauritius
Mexico : SAME .. Included as Mexico
Moldova_Rep : SAME .. Included as Moldova_Rep
Mongolia : SAME .. Included as Mongolia
Morocco : SAME .. Included as Morocco
Mozambique : SAME .. Included as Mozambique
Myanmar : SAME .. Included as Myanmar
Nepal : SAME .. Included as Nepal
Neth_Antilles : SAME .. Included as Neth_Antilles
Netherlands : SAME .. Included as Netherlands
New_Caledonia : SAME .. Included as New_Caledonia
****
_____-_Cook_Is
_____-_Niue
New_Zealand : SAME .. Included as New_Zealand
**** also
_____-_Cook_Is
_____-_Niue
Nicaragua : SAME .. Included as Nicaragua
Nigeria : SAME .. Included as Nigeria
North_Korea : SAME .. Included as North_Korea
Norway : SAME .. Included as Norway
Oman : SAME .. Included as Oman
Pakistan : SAME .. Included as Pakistan
Panama : SAME .. Included as Panama
Papua_New_Guinea : SAME .. Included as Papua_New_Guinea
Paraguay : SAME .. Included as Paraguay
Peru : SAME .. Included as Peru
Philippines : SAME .. Included as Philippines
Poland : SAME .. Included as Poland
Portugal : SAME .. Included as Portugal
Qatar : SAME .. Included as Qatar
Romania : SAME .. Included as Romania
****
_____-_Armenia
Russian_Federation : SAME .. Included as Russian_Federation
**** also
_____-_Armenia
Rwanda : SAME .. Included as Rwanda
Sao_Tome : SAME .. Included as Sao_Tome
Saudi_Arabia : SAME .. Included as Saudi_Arabia
Seychelles : SAME .. Included as Seychelles
Sierra_Leone : SAME .. Included as Sierra_Leone
Singapore : SAME .. Included as Singapore
Slovakia : SAME .. Included as Slovakia
Slovenia : SAME .. Included as Slovenia
Solomon_Is : SAME .. Included as Solomon_Is
Somalia : SAME .. Included as Somalia
****
_____-_Namibia
_____-_Andorra
South_Africa : SAME .. Included as South_Africa
**** also
_____-_Namibia
_____-_Andorra
South_Korea : SAME .. Included as South_Korea
Spain : SAME .. Included as Spain
**** also
_____-_Andorra
Sri_Lanka : SAME .. Included as Sri_Lanka
Sudan : SAME .. Included as Sudan
Surinam : SAME .. Included as Surinam
Swaziland : SAME .. Included as Swaziland
Sweden : SAME .. Included as Sweden
****
_____-_Liechtenstein
Switzerland : SAME .. Included as Switzerland
**** also
_____-_Liechtenstein
Syria : SAME .. Included as Syria
Taiwan : SAME .. Included as Taiwan
Tajikistan : SAME .. Included as Tajikistan
Tanzania : SAME .. Included as Tanzania
Thailand : SAME .. Included as Thailand
Tonga : SAME .. Included as Tonga
Trinidad_Tobago : SAME .. Included as Trinidad_Tobago
Tunisia : SAME .. Included as Tunisia
Turkey : SAME .. Included as Turkey
Turkmenistan : SAME .. Included as Turkmenistan
USA : SAME .. Included as USA
**** also
___-_British_Virgin_Is
___-_Guam
___-_Marshall_Is
___-_Micronesia
___-_N_Mariana_Is
___-_Palau_Is
___-_Puerto_Rico
___-_American_Samoa
___-_Turks_&_Caicos_Is
___-_US_Virgin_Is
Uganda : SAME .. Included as Uganda
Ukraine : SAME .. Included as Ukraine
United_Arab_Em : SAME .. Included as United_Arab_Em
United_Kingdom : SAME .. Included as United_Kingdom
****
___-_British_Virgin_Is
___-_Guam
___-_Marshall_Is
___-_Micronesia
___-_N_Mariana_Is
___-_Palau_Is
___-_Puerto_Rico
___-_American_Samoa
___-_Turks_&_Caicos_Is
___-_US_Virgin_Is
Uruguay : SAME .. Included as Uruguay
Uzbekistan : SAME .. Included as Uzbekistan
Vanuatu : SAME .. Included as Vanuatu
Venezuela : SAME .. Included as Venezuela
Vietnam : SAME .. Included as Vietnam
W_Samoa : SAME .. Included as W_Samoa
Yemen : SAME .. Included as Yemen
Yugoslavia : SAME .. Included as Yugoslavia
Zambia : SAME .. Included as Zambia
Zimbabwe : SAME .. Included as Zimbabwe
binstr : BINSTR .. Included as binstr
build(cursor : BIN_CURSOR) : SAME .. Included as build
build( loc_cursor : STR_CURSOR ) : SAME .. Included as build
card : CARD .. Included as card
create(str : BINSTR) : SAME .. Included as create
create(num : CARD) : SAME .. Included as create
create( str : STR ) : SAME .. Included as create
****
________This_is_the_creation_routine_from_a_string_which_is_any_of_the
___abbreviations_listed_in_the_Name_table.____If_the_name_table_has_not_been
___read_in_this_is_done_first.
fmt( format : ANCHORED_DESCR ) : STR .. Included as fmt
fmt( format : ANCHORED_DESCR, lib : LIBCHARS ) : STR .. Included as fmt
hash : CARD .. Included as hash
is_enum( str : STR ) : CONVERSION_RESULTS .. Included as is_enum
is_eq(other : SAME) : BOOL .. Included as is_eq
****
________This_predicate_returns_true_if_and_only_if_self_and_other_are_the_same
___value_except_if_either_is_void_when_false_is_returned_identically.
is_eq(other : $OB) : BOOL .. Included as is_eq
**** This is the generic equality predicate. c.f. the class $IS_EQ
is_nil : BOOL .. Included as is_nil
****
________This_predicate_returns_true_if_and_only_if_self_is_'void'.
nil : SAME .. Included as nil
****
________This_feature_returns_a_value_which_is_a_'void'_for_the_enumeration.
___The_language-defined_void_may_be_implemented_differently.
rate : RAT .. Included as rate
read(index : BIN_CURSOR) : SAME .. Included as read
str( lib : LIBCHARS ) : STR .. Included as str
****
________This_routine_provides_a_string_representation_of_self_in_the_given
___character_repertoire_and_encoding_-_including_a_nil_value.
str : STR .. Included as str
****
________This_routine_provides_a_string_representation_of_self_in_the_default
___character_repertoire_and_encoding_-_including_a_nil_value.
update_rates .. Included as update_rates
write(fyle : BIN_FILE) .. Included as write

Iters
elt! : SAME .. Included as elt!
****
________This_iter_yields_in_turn_all_of_the_values_in_the_domain_of_the__enumeration.


Private

Env_Name : STR
const Max_Val : CARD := val_count ; .. Included as Max_Val
shared Names : ARRAY{STR} ; .. Included as Names
**** for external representation!
shared Names : ARRAY{STR} ; .. Included as Names
**** for external representation!
shared Needs_Update : ELAPSED ;
shared Needs_Update : ELAPSED ;
check_names( .. Included as check_names
attr enum : CARD ; .. Included as enum
**** Used also for transforming an enum to a cardinal value.
equals(first_lcase,second : STR) : BOOL .. Included as equals
**** This routine tests for string equality up to the length of first! The test is case independent.
shared exch_file : FILE_PATH ;
shared exch_file : FILE_PATH ;
shared exchange_rates : ARRAY{RAT} ;
shared exchange_rates : ARRAY{RAT} ;
shared lib : LIBCHARS ; .. Included as lib
shared lib : LIBCHARS ; .. Included as lib
lookup(str : STR) : CARD .. Included as lookup
scan!(str : STR) : CARD .. Included as scan!
shared time_stamp : TIME_STAMP ;
shared time_stamp : TIME_STAMP ;
const val_count : CARD := 173 ;

The Sather Home Page