UniLconv: Difference between revisions
Appearance
m c type to OS/2 type |
No edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Describes the locale conventions structure. | |||
Describes the locale | |||
=== Type === | === Type === | ||
[[UniChar]] decimal_point | |||
[[ | UniChar thousands_sep | ||
[[SHORT]] grouping | |||
[[ | UniChar int_curr_symbol | ||
UniChar currency_symbol | |||
UniChar mon_decimal_point | |||
UniChar mon_thousands_sep | |||
SHORT mon_grouping | |||
UniChar positive_sign | |||
UniChar negative_sign | |||
SHORT int_frac_digits | |||
SHORT frac_digits | |||
SHORT p_cs_precedes | |||
SHORT p_sep_by_space | |||
SHORT n_cs_precedes | |||
SHORT n_sep_by_space | |||
SHORT p_sign_posn | |||
SHORT n_sign_posn | |||
SHORT os2_mondecpt | |||
UniChar debit_sign | |||
UniChar credit_sign | |||
UniChar left_parenthesis | |||
UniChar right_parenthesis | |||
==== C declaration method ==== | ==== C declaration method ==== | ||
typedef struct | typedef struct | ||
=== Fields === | === Fields === | ||
;decimal_point:Non-monetary decimal point. | |||
;thousands_sep:Non-monetary thousands separator. | |||
;grouping:Size of each group of digits in non-monetary quantities. | |||
;int_curr_symbol:International currency symbol and separator. | |||
;currency_symbol:Local currency symbol. | |||
;mon_decimal_point:Monetary decimal point. | |||
;mon_thousands_sep:Monetary decimal separator. | |||
;mon_grouping:Size of each group of digits in monetary quantities. | |||
;positive_sign:Non-negative value signs. | |||
;negative_sign:Negative value signs. | |||
;int_frac_digits:Number of fractional digits for international currency. | |||
;frac_digits:Number of fractional digits for local currency. | |||
;p_cs_precedes:Non-negative currency symbol; 1 precedes, 0 succeeds. | |||
;p_sep_by_space:Non-negative currency symbol; 1 space, 0 no space. | |||
;n_cs_precedes:Negative currency symbol; 1 precedes, 0 succeeds. | |||
;n_sep_by_space:Negative currency symbol; 1 space, 0 no space. | |||
;p_sign_posn:Positioning of non-negative monetary sign. | |||
;n_sign_posn:Positioning of negative monetary sign. | |||
;os2_mondecpt:OS/2 currency symbol positioning. | |||
;debit_sign:Non-negative valued debit monetary symbol. | |||
;credit_sign:Negative valued credit monetary symbol. | |||
;left_parenthesis:Negative valued left parenthesis monetary symbol. | |||
;right_parenthesis:Negative valued right parenthesis monetary symbol. | |||
==Example== | |||
<PRE> | |||
struct UniLconv { | |||
UniChar *decimal_point; | |||
UniChar *thousands_sep; | |||
short *grouping; | |||
UniChar *int_curr_symbol; | |||
UniChar *currency_symbol; | |||
UniChar *mon_decimal_point; | |||
UniChar *mon_thousands_sep; | |||
short *mon_grouping; | |||
UniChar *positive_sign; | |||
UniChar *negative_sign; | |||
short int_frac_digits; | |||
short frac_digits; | |||
short p_cs_precedes; | |||
short p_sep_by_space; | |||
short n_cs_precedes; | |||
short n_sep_by_space; | |||
short p_sign_posn; | |||
short n_sign_posn; | |||
short os2_mondecpt; | |||
UniChar *debit_sign; | |||
UniChar *credit_sign; | |||
UniChar *left_parenthesis; | |||
UniChar *right_parenthesis; | |||
}; | |||
</PRE> | |||
[[Category:Data type]] |
Latest revision as of 02:46, 16 August 2017
Describes the locale conventions structure.
Type
UniChar decimal_point UniChar thousands_sep SHORT grouping UniChar int_curr_symbol UniChar currency_symbol UniChar mon_decimal_point UniChar mon_thousands_sep SHORT mon_grouping UniChar positive_sign UniChar negative_sign SHORT int_frac_digits SHORT frac_digits SHORT p_cs_precedes SHORT p_sep_by_space SHORT n_cs_precedes SHORT n_sep_by_space SHORT p_sign_posn SHORT n_sign_posn SHORT os2_mondecpt UniChar debit_sign UniChar credit_sign UniChar left_parenthesis UniChar right_parenthesis
C declaration method
typedef struct
Fields
- decimal_point
- Non-monetary decimal point.
- thousands_sep
- Non-monetary thousands separator.
- grouping
- Size of each group of digits in non-monetary quantities.
- int_curr_symbol
- International currency symbol and separator.
- currency_symbol
- Local currency symbol.
- mon_decimal_point
- Monetary decimal point.
- mon_thousands_sep
- Monetary decimal separator.
- mon_grouping
- Size of each group of digits in monetary quantities.
- positive_sign
- Non-negative value signs.
- negative_sign
- Negative value signs.
- int_frac_digits
- Number of fractional digits for international currency.
- frac_digits
- Number of fractional digits for local currency.
- p_cs_precedes
- Non-negative currency symbol; 1 precedes, 0 succeeds.
- p_sep_by_space
- Non-negative currency symbol; 1 space, 0 no space.
- n_cs_precedes
- Negative currency symbol; 1 precedes, 0 succeeds.
- n_sep_by_space
- Negative currency symbol; 1 space, 0 no space.
- p_sign_posn
- Positioning of non-negative monetary sign.
- n_sign_posn
- Positioning of negative monetary sign.
- os2_mondecpt
- OS/2 currency symbol positioning.
- debit_sign
- Non-negative valued debit monetary symbol.
- credit_sign
- Negative valued credit monetary symbol.
- left_parenthesis
- Negative valued left parenthesis monetary symbol.
- right_parenthesis
- Negative valued right parenthesis monetary symbol.
Example
struct UniLconv { UniChar *decimal_point; UniChar *thousands_sep; short *grouping; UniChar *int_curr_symbol; UniChar *currency_symbol; UniChar *mon_decimal_point; UniChar *mon_thousands_sep; short *mon_grouping; UniChar *positive_sign; UniChar *negative_sign; short int_frac_digits; short frac_digits; short p_cs_precedes; short p_sep_by_space; short n_cs_precedes; short n_sep_by_space; short p_sign_posn; short n_sign_posn; short os2_mondecpt; UniChar *debit_sign; UniChar *credit_sign; UniChar *left_parenthesis; UniChar *right_parenthesis; };