class RegionalInfo

Class that abstractize the basic region specific definitions

Inheritance:

RegionalInfo


Public Methods

[more]RegionalInfo()
Constructs a RegionalInfo object, using the locale specified by the `LANG' environment variable or the portable `C' locale is that is not set
[more]RegionalInfo(char *__Region)
Constructs a RegionalInfo object, using the specified locale
[more]virtual char* GetCurrencySymbol()
Returns the current currency symbol
[more]virtual char GetDecimalPoint()
Returns the current decimal point character
[more]virtual char GetFracDigits()
Returns the current fractional digits
[more]virtual char* GetGrouping()
Returns the current numbers grouping method
[more]virtual bool GetNCsPrecedes()
Returns the current currency symbol position for negative values
[more]virtual bool GetNSepBySpace()
Checks if it's a space between currency symbol and negative values
[more]virtual char GetNSignPosn()
Returns the sign symbol position for negative values
[more]virtual char GetNegativeSign()
Returns the symbol currently used for negative values
[more]virtual bool GetPCsPrecedes()
Returns the current currency symbol position for positive values
[more]virtual bool GetPSepBySpace()
Checks if it's a space between currency symbol and positive values
[more]virtual char GetPSignPosn()
Returns the sign symbol position for positive values
[more]virtual char GetPositiveSign()
Returns the symbol currently used for positive values
[more]virtual char* GetRegion()
Returns the current region name
[more]virtual char GetThousandsSep()
Returns the current thousands separator
[more]virtual void SetCurrencySymbol(char *__s)
Changes the current currency symbol
[more]virtual void SetDecimalPoint(char __c)
Changes the current decimal point character
[more]virtual void SetFracDigits(char __c)
Changes the current fractional digits
[more]virtual void SetGrouping(char *__s)
Changes the current numbers grouping method
[more]virtual void SetNCsPrecedes(bool __b)
Changes the currency symbol position for negative values
[more]virtual void SetNSepBySpace(bool __b)
Enables or disables the space between currency symbol and negative values
[more]virtual void SetNSignPosn(char __c)
Changes the sign symbol position for negative values
[more]virtual void SetNegativeSign(char __c)
Changes the symbol used for negative values
[more]virtual void SetPCsPrecedes(bool __b)
Changes the currency symbol position for positive values
[more]virtual void SetPSepBySpace(bool __b)
Enables or disables the space between currency symbol and positive values
[more]virtual void SetPSignPosn(char __c)
Changes the sign symbol position for positive values
[more]virtual void SetPositiveSign(char __c)
Changes the symbol used for positive values
[more]virtual bool SetRegion(char *__Region)
Changes the region
[more]virtual void SetThousandsSep(char __c)
Changes the thousands separator character

Protected Fields

[more]char RegionName[80]
Current region name
[more]lconv* locale
Current locale

Documentation

Class that abstractize the basic region specific definitions
RegionalInfo()
Constructs a RegionalInfo object, using the locale specified by the `LANG' environment variable or the portable `C' locale is that is not set
See Also:
system's locale(7) man page for further details

RegionalInfo(char *__Region)
Constructs a RegionalInfo object, using the specified locale. If the specified locale cannot be set, the default constructor is used.

virtual char* GetCurrencySymbol()
Returns the current currency symbol

virtual char GetDecimalPoint()
Returns the current decimal point character

virtual char GetFracDigits()
Returns the current fractional digits

virtual char* GetGrouping()
Returns the current numbers grouping method

virtual bool GetNCsPrecedes()
Returns the current currency symbol position for negative values

virtual bool GetNSepBySpace()
Checks if it's a space between currency symbol and negative values

virtual char GetNSignPosn()
Returns the sign symbol position for negative values

virtual char GetNegativeSign()
Returns the symbol currently used for negative values

virtual bool GetPCsPrecedes()
Returns the current currency symbol position for positive values

virtual bool GetPSepBySpace()
Checks if it's a space between currency symbol and positive values

virtual char GetPSignPosn()
Returns the sign symbol position for positive values

virtual char GetPositiveSign()
Returns the symbol currently used for positive values

virtual char* GetRegion()
Returns the current region name

virtual char GetThousandsSep()
Returns the current thousands separator

virtual void SetCurrencySymbol(char *__s)
Changes the current currency symbol

virtual void SetDecimalPoint(char __c)
Changes the current decimal point character

virtual void SetFracDigits(char __c)
Changes the current fractional digits

virtual void SetGrouping(char *__s)
Changes the current numbers grouping method

virtual void SetNCsPrecedes(bool __b)
Changes the currency symbol position for negative values

virtual void SetNSepBySpace(bool __b)
Enables or disables the space between currency symbol and negative values

virtual void SetNSignPosn(char __c)
Changes the sign symbol position for negative values

virtual void SetNegativeSign(char __c)
Changes the symbol used for negative values

virtual void SetPCsPrecedes(bool __b)
Changes the currency symbol position for positive values

virtual void SetPSepBySpace(bool __b)
Enables or disables the space between currency symbol and positive values

virtual void SetPSignPosn(char __c)
Changes the sign symbol position for positive values

virtual void SetPositiveSign(char __c)
Changes the symbol used for positive values

virtual bool SetRegion(char *__Region)
Changes the region

virtual void SetThousandsSep(char __c)
Changes the thousands separator character

char RegionName[80]
Current region name

lconv* locale
Current locale


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1999 Dragos Acostachioaie
Last update on March 9, 1999

This page was generated with the help of doc++.