Rudiments
|
|
static |
Returns the value of the LC_ADDRESS locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_ADDRESS are not supported.
|
static |
Returns the value of the LC_ALL locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_ALL are not supported.
|
static |
Returns the value of the LC_COLLATE locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_COLLATE are not supported.
|
static |
Returns the value of the LC_CTYPE locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_CTYPE are not supported.
|
static |
Returns the value of the LC_IDENTIFICATION locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_IDENTIFICATION are not supported.
|
static |
Returns the ISO 4217:1995 international currency symbol string, for the current locale. Eg. "USD"
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if the currency symbol preceeds a internationally formatted negative monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if the currency symbol preceeds a positive monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the separator character that goes between the ISO 4217:1995 international currency symbol and the monetary amount, for the current locale. Eg. " " (a space)
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the number of digits after the decimal point for an internationally formatted monetary value, for the current locale.
Returns 0 and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the position of the sign, for internationally formatted negative monetary values, for the current locale, as follows:
MONETARY_SIGN_POSITION_PARENTHESES if parentheses surround the entire string. Eg. (-$100)
MONETARY_SIGN_POSITION_BEFORE_STRING if the sign comes before the entire string. Eg. -$100
MONETARY_SIGN_POSITION_AFTER_STRING if the sign comes after the entire string. Eg. $100-
MONETARY_SIGN_POSITION_BEFORE_SYMBOL if the sign comes immediately before the currency symbol. Eg. 100-$
MONETARY_SIGN_POSITION_AFTER_SYMBOL if the sign comes immediately after the currency symbol. Eg. 100$-
MONETARY_SIGN_POSITION_ERROR and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the position of the sign, for internationally formatted positive monetary values, for the current locale, as follows:
MONETARY_SIGN_POSITION_PARENTHESES if parentheses surround the entire string. Eg. ($100)
MONETARY_SIGN_POSITION_BEFORE_STRING if the sign comes before the entire string. Eg. +$100
MONETARY_SIGN_POSITION_AFTER_STRING if the sign comes after the entire string. Eg. $100+
MONETARY_SIGN_POSITION_BEFORE_SYMBOL if the sign comes immediately before the currency symbol. Eg. 100+$
MONETARY_SIGN_POSITION_AFTER_SYMBOL if the sign comes immediately after the currency symbol. Eg. 100$+
MONETARY_SIGN_POSITION_ERROR and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if a space separates the currency symbol and a internationally formatted negative monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if a space separates the currency symbol and a internationally formatted positive monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the local currency symbol string, for the current locale. Eg. "$"
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if the currency symbol preceeds a locally formatted negative monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if the currency symbol preceeds a positive monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the number of digits after the decimal point for an locally formatted monetary value, for the current locale.
Returns 0 and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the position of the sign, for locally formatted negative monetary values, for the current locale, as follows:
MONETARY_SIGN_POSITION_PARENTHESES if parentheses surround the entire string. Eg. (-$100)
MONETARY_SIGN_POSITION_BEFORE_STRING if the sign comes before the entire string. Eg. -$100
MONETARY_SIGN_POSITION_AFTER_STRING if the sign comes after the entire string. Eg. $100-
MONETARY_SIGN_POSITION_BEFORE_SYMBOL if the sign comes immediately before the currency symbol. Eg. 100-$
MONETARY_SIGN_POSITION_AFTER_SYMBOL if the sign comes immediately after the currency symbol. Eg. 100$-
MONETARY_SIGN_POSITION_ERROR and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the position of the sign, for locally formatted positive monetary values, for the current locale, as follows:
MONETARY_SIGN_POSITION_PARENTHESES if parentheses surround the entire string. Eg. ($100)
MONETARY_SIGN_POSITION_BEFORE_STRING if the sign comes before the entire string. Eg. +$100
MONETARY_SIGN_POSITION_AFTER_STRING if the sign comes after the entire string. Eg. $100+
MONETARY_SIGN_POSITION_BEFORE_SYMBOL if the sign comes immediately before the currency symbol. Eg. 100+$
MONETARY_SIGN_POSITION_AFTER_SYMBOL if the sign comes immediately after the currency symbol. Eg. 100$+
MONETARY_SIGN_POSITION_ERROR and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if a space separates the currency symbol and a locally formatted negative monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns true if a space separates the currency symbol and a locally formatted positive monetary value, for the current locale, and false otherwise.
Eg.
Returns false and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the value of the LC_MEASUREMENT locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_MEASUREMENT are not supported.
|
static |
Returns the value of the LC_MESSAGES locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_MESSAGES are not supported.
|
static |
Returns the value of the LC_MONETARY locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_MONETARY are not supported.
|
static |
Returns the decimal point string, for monetary values, for the current locale.
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the number of digits in a group, where index 0 is the rightmost group, and subsequent indices refer to groups of digits to the left of the rightmost group, for monetary values, for the current locale.
For example...
If an amount is grouped like: $100,000,000,000 Then:
If an amount is grouped like: $100,000,00,00 Then:
If an amount is grouped like: $100,000,00,0 Then:
Returns 0 if no grouping is performed at that index. Returns 0 and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the separator string for groups of digits before the decimal point, for monetary values, for the current locale.
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the negative sign string, for monetary values, for the current locale. Eg. "-"
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the positive sign string, for monetary values, for the current locale. Eg. "+" but usually "" (empty string).
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the value of the LC_NAME locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_NAME are not supported.
|
static |
Returns the value of the LC_NUMERIC locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_NUMERIC are not supported.
|
static |
Returns the decimal point string, for non-monetary values, for the current locale.
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the number of digits in a group, where index 0 is the rightmost group, and subsequent indices refer to groups of digits to the left of the rightmost group, for non-monetary values, for the current locale.
For example...
If a number is grouped like: 100,000,000,000 Then:
If a number is grouped like: 100,000,00,00 Then:
If a number is grouped like: 100,000,00,0 Then:
Returns 0 if no grouping is performed at that index. Returns 0 and sets errno on error.
NOTE: The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the separator string for groups of digits before the decimal point, for non-monetary values, for the current locale.
Returns NULL and sets errno on error.
NOTE: This method allocates a buffer internally and returns it. The calling program must deallocate this buffer. The get*() methods of this class are not thread-safe, and must be protected by a mutex if multiple threads could call any of them simultaneously.
|
static |
Returns the value of the LC_PAPER locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_PAPER are not supported.
|
static |
Returns the value of the LC_TELEPHONE locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_TELEPHONE are not supported.
|
static |
Returns the value of the LC_TIME locale category.
Returns the value on success and NULL on failure, eg. if either locales or LC_TIME are not supported.
|
static |
Returns true if the LC_ADDRESS category is supported and false otherwise.
|
static |
Returns true if the LC_ALL category is supported and false otherwise.
|
static |
Returns true if the LC_COLLATE category is supported and false otherwise.
|
static |
Returns true if the LC_CTYPE category is supported and false otherwise.
|
static |
Returns true if the LC_IDENTIFICATION category is supported and false otherwise.
|
static |
Returns true if the LC_MEASUREMENT category is supported and false otherwise.
|
static |
Returns true if the LC_MESSAGES category is supported and false otherwise.
|
static |
Returns true if the LC_MONETARY category is supported and false otherwise.
|
static |
Returns true if the LC_NAME category is supported and false otherwise.
|
static |
Returns true if the LC_NUMERIC category is supported and false otherwise.
|
static |
Returns true if the LC_PAPER category is supported and false otherwise.
|
static |
Returns true if the platform supports locales and false otherwise.
|
static |
Returns true if the LC_TELEPHONE category is supported and false otherwise.
|
static |
Returns true if the LC_TIME category is supported and false otherwise.
|
static |
Sets the value of the LC_ADDRESS locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_ADDRESS are not supported.
|
static |
Sets the value of the LC_ALL locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_ALL are not supported.
|
static |
Sets the value of the LC_COLLATE locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_COLLATE are not supported.
|
static |
Sets the value of the LC_CTYPE locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_CTYPE are not supported.
|
static |
Sets the value of the LC_IDENTIFICATION locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_IDENTIFICATION are not supported.
|
static |
Sets the value of the LC_MEASUREMENT locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_MEASUREMENT are not supported.
|
static |
Sets the value of the LC_MESSAGES locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_MESSAGES are not supported.
|
static |
Sets the value of the LC_MONETARY locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_MONETARY are not supported.
|
static |
Sets the value of the LC_NAME locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_NAME are not supported.
|
static |
Sets the value of the LC_NUMERIC locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_NUMERIC are not supported.
|
static |
Sets the value of the LC_PAPER locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_PAPER are not supported.
|
static |
Sets the value of the LC_TELEPHONE locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_TELEPHONE are not supported.
|
static |
Sets the value of the LC_TIME locale category to "value".
Returns true on success and false on failure, eg. if either locales or LC_TIME are not supported.