class RegionalInfo

Class that abstractize the basic region specific definitions

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
o 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

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

ovirtual char* GetCurrencySymbol()
Returns the current currency symbol

ovirtual char GetDecimalPoint()
Returns the current decimal point character

ovirtual char GetFracDigits()
Returns the current fractional digits

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

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

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

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

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

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

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

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

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

ovirtual char* GetRegion()
Returns the current region name

ovirtual char GetThousandsSep()
Returns the current thousands separator

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

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

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

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

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

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

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

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

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

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

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

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

ovirtual bool SetRegion(char *__Region)
Changes the region

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

ochar RegionName[80]
Current region name

olconv* locale
Current locale


This class has no child classes.

Go to the
hierarchy of classes.


Copyright ©1998-2001 Dragos Acostachioaie
Last update on October 27, 2001

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