The ILE C run time supports two implementations of the
setlocale() function and the locale-sensitive functions. The
original implementation uses locale objects of type *CLD, while the second
implementation uses locale objects of type *LOCALE. The following table
summarizes the differences in the locale source keywords between the locales
of type *CLD and *LOCALE.
Table 33. C Locale Migration Table
Category | *CLD Command | Description and Format | *LOCALE Keyword |
---|---|---|---|
LC_TIME | AM | String of characters used to represent the locale's equivalent of AM. | am_pm |
LC_CTYPE | CHARTYP | Character set type. | Determined by CCSID of the locale |
LC_COLLATE | CPYSYSCOL | System collating sequence table. | cpysyscol |
LC_COLLATE | COLLSTR | String transformation table. | collating-element |
LC_COLLATE | COLLTAB | Character weight reassignment for the strcoll function. | collating-element |
LC_CTYPE | CTYPE | Set the attributes of a particular character. | upper lower alpha digit space cntrl punct graph print xdigit blank |
LC_MONETARY | CURR | A string of characters that represent the currency symbol. | currency_symbol |
LC_TIME | DATFMT | A string of characters used to specify the format of the date in this locale. | d_fmt |
LC_TIME | DATTIM | A string of characters used to specify the format of the date and time in this locale. | d_t_fmt |
LC_NUMERIC | DEC | Decimal point character for formatted non-monetary quantities. | decimal_point |
LC_TOD | DSTEND | The instant when Daylight Savings Time ceases to be in effect. (day,time) | dstend |
LC_TOD | DSTNAME | The name of the time zone when Daylight Savings Time is in effect. | dstname |
LC_TOD | DSTSHIFT | The number of seconds that the locale's time is shifted when Daylight Savings Time takes effect. | dstshift |
LC_TOD | DSTSTART | The instant when Daylight Savings Time comes into effect. | dststart |
LC_NUMERIC | GROUP | Digit grouping from processing digits to the left of the decimal point from left to right for formatted non-monetary quantities. | grouping |
LC_MONETARY | ICURR | String of characters used to represent the currency symbol in an internationally formatted monetary quantity. | int_curr_symbol |
LC_TIME | LDAYS | The long form of each day of the week. | day |
LC_TIME | LMONS | The long form of each month of the year. | mon |
LC_CTYPE | LOWER | Set the lowercase character to be returned for a given character by the tolower library function. | tolower |
LC_MONETARY | MDEC | String of characters used for the decimal point in a formatted monetary quantity. | mon_decimal_point |
LC_MONETARY | MFDIGIT | Number of fractional digits to display in a formatted monetary quantity. | frac_digits |
LC_MONETARY | MGROUP | Digit grouping from processing digits to the left of the decimal point from left to right for formatted monetary quantities. | mon_grouping |
LC_MONETARY | MIFDIGIT | Number of fractional digits to display in an internationally formatted monetary quantity. | int_frac_digits |
LC_MONETARY | MMINUS | String of characters used to represent a negative value in a formatted negative monetary quantity. | negative_sign |
LC_MONETARY | MMINUSPOS | An encoded value used to represent the position of the negative symbol in a formatted negative monetary quantity. | n_sign_posn |
LC_MONETARY | MNCSP | A true or false value used to determine if the currency symbol precedes the value in a formatted negative monetary quantity. If the value is false, then the symbol succeeds the value. | n_cs_precedes |
LC_MONETARY | MNSBYS | A true or false value used to determine if the currency symbol is space-separated in a formatted negative monetary quantity. | n_sep_by_space |
LC_MONETARY | MPCSP | A true or false value used to determine if the currency symbol precedes the value in a formatted positive monetary quantity. If the value is false, then the symbol succeeds the value. | p_cs_precedes |
LC_MONETARY | MPLUS | String of characters used to represent a positive value in a formatted positive monetary quantity. | positive_sign |
LC_MONETARY | MPLUSPOS | An encoded value used to represent the position of the positive symbol in a formatted positive monetary quantity. | p_sign_posn |
LC_MONETARY | MPSBYS | A true or false value used to determine if the currency symbol is space-separated in a formatted positive monetary quantity. | p_sep_by_space |
LC_MONETARY | MSEP | Character used to separate grouped digits in a formatted monetary quantity. | mon_thousands_sep |
LC_TIME | PM | String of characters used to represent the locale's equivalent of PM. | am_pm |
LC_TIME | SDAYS | The short form of each day of the week. | abday |
LC_NUMERIC | SEP | Character used to separate grouped digits in a formatted non-monetary quantity. | decimal_point |
LC_TIME | SMONS | The short form of each month of the year. | abmon |
LC_TIME | TIMFMT | A string of characters used to specify the format of the time in this locale. | t_fmt |
LC_TOD | TNAME | String of characters used to represent the locale's time zone name. | tname |
LC_TOD | TZDIFF | The number of minutes that the locale's time zone is different from Greenwich Mean Time. | tzdiff |
LC_CTYPE | UPPER | Set the uppercase character to be returned for a given character by the toupper library function. | toupper |
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.