Jump to content

UniLconv: Difference between revisions

From EDM2
No edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
== UniLconv ==
Describes the locale conventions structure.
 
Describes the locale convensions structure.


=== Type ===
=== Type ===
 
  [[UniChar]] decimal_point
  [[OS2 API:DataType:UniChar|UniChar]] decimal_point
  UniChar thousands_sep
  [[OS2 API:DataType:UniChar|UniChar]] thousands_sep
  [[SHORT]]  grouping
  [[OS2 API:DataType:SHORT|SHORT]]  grouping
  UniChar int_curr_symbol
  [[OS2 API:DataType:UniChar|UniChar]] int_curr_symbol
  UniChar currency_symbol
  [[OS2 API:DataType:UniChar|UniChar]] currency_symbol
  UniChar mon_decimal_point
  [[OS2 API:DataType:UniChar|UniChar]] mon_decimal_point
  UniChar mon_thousands_sep
  [[OS2 API:DataType:UniChar|UniChar]] mon_thousands_sep
  SHORT  mon_grouping
  [[OS2 API:DataType:SHORT|SHORT]]   mon_grouping
  UniChar positive_sign
  [[OS2 API:DataType:UniChar|UniChar]] positive_sign
  UniChar negative_sign
  [[OS2 API:DataType:UniChar|UniChar]] negative_sign
  SHORT  int_frac_digits
  [[OS2 API:DataType:SHORT|SHORT]]   int_frac_digits
  SHORT  frac_digits
  [[OS2 API:DataType:SHORT|SHORT]]   frac_digits
  SHORT  p_cs_precedes
  [[OS2 API:DataType:SHORT|SHORT]]   p_cs_precedes
  SHORT  p_sep_by_space
  [[OS2 API:DataType:SHORT|SHORT]]   p_sep_by_space
  SHORT  n_cs_precedes
  [[OS2 API:DataType:SHORT|SHORT]]   n_cs_precedes
  SHORT  n_sep_by_space
  [[OS2 API:DataType:SHORT|SHORT]]   n_sep_by_space
  SHORT  p_sign_posn
  [[OS2 API:DataType:SHORT|SHORT]]   p_sign_posn
  SHORT  n_sign_posn
  [[OS2 API:DataType:SHORT|SHORT]]   n_sign_posn
  SHORT  os2_mondecpt
  [[OS2 API:DataType:SHORT|SHORT]]   os2_mondecpt
  UniChar debit_sign
  [[OS2 API:DataType:UniChar|UniChar]] debit_sign
  UniChar credit_sign
  [[OS2 API:DataType:UniChar|UniChar]] credit_sign
  UniChar left_parenthesis
  [[OS2 API:DataType:UniChar|UniChar]] left_parenthesis
  UniChar right_parenthesis
  [[OS2 API:DataType:UniChar|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.


decimal_point     Non-monetary decimal point.
==Example==
thousands_sep     Non-monetary thousands separator.
<PRE>
grouping         Size of each group of digits in non-monetary quantities.
struct UniLconv {
int_curr_symbol  International currency symbol and separator.
  UniChar *decimal_point;
currency_symbol   Local currency symbol.
  UniChar *thousands_sep;
mon_decimal_point Monetary decimal point.
  short      *grouping;
mon_thousands_sep Monetary decimal separator.
  UniChar *int_curr_symbol;
mon_grouping     Size of each group of digits in monetary quantities.
   UniChar *currency_symbol;
positive_sign     Non-negative value signs.
   UniChar *mon_decimal_point;
negative_sign     Negative value signs.
  UniChar *mon_thousands_sep;
int_frac_digits  Number of fractional digits for international currency.
  short      *mon_grouping;
frac_digits       Number of fractional digits for local currency.
  UniChar *positive_sign;
p_cs_precedes     Non-negative currency symbol; 1 precedes, 0 succeeds.
  UniChar *negative_sign;
p_sep_by_space   Non-negative currency symbol; 1 space, 0 no space.
  short      int_frac_digits;
n_cs_precedes     Negative currency symbol; 1 precedes, 0 succeeds.
   short      frac_digits;
n_sep_by_space   Negative currency symbol; 1 space, 0 no space.
  short       p_cs_precedes;
p_sign_posn      Positioning of non-negative monetary sign.
  short      p_sep_by_space;
n_sign_posn       Positioning of negative monetary sign.
  short      n_cs_precedes;
os2_mondecpt     OS/2 currency symbol positioning.
  short      n_sep_by_space;
debit_sign       Non-negative valued debit monetary symbol.
  short      p_sign_posn;
credit_sign       Negative valued credit monetary symbol.
  short       n_sign_posn;
left_parenthesis Negative valued left parenthesis monetary symbol.
  short       os2_mondecpt;
right_parenthesis Negative valued right parenthesis monetary symbol.
  UniChar *debit_sign;
 
  UniChar *credit_sign;
=== Comment ===
  UniChar *left_parenthesis;
 
  UniChar *right_parenthesis;
 
};
[[OS2_API | Back to OS/2 API]]
</PRE>




[[Category:The OS/2 API Project]]
[[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;
};