Jump to content

COUNTRYINFO: Difference between revisions

From EDM2
mNo edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== COUNTRYINFO ==
Country information.
Country information.


=== Type ===
=== Type ===
 
  [[ULONG]]  country
  [[OS2 API:DataType:ULONG|ULONG]]  country
  ULONG  codepage
  [[OS2 API:DataType:ULONG|ULONG]]   codepage
  ULONG  fsDateFmt
  [[OS2 API:DataType:ULONG|ULONG]]   fsDateFmt
  [[CHAR]]    szCurrency[5]
  [[OS2 API:DataType:CHAR|CHAR]]    szCurrency[5]
  CHAR    szThousandsSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szThousandsSeparator[2]
  CHAR    szDecimal[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDecimal[2]
  CHAR    szDateSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDateSeparator[2]
  CHAR    szTimeSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szTimeSeparator[2]
  [[UCHAR]]  fsCurrencyFmt
  [[OS2 API:DataType:UCHAR|UCHAR]]  fsCurrencyFmt
  UCHAR  cDecimalPlace
  [[OS2 API:DataType:UCHAR|UCHAR]]   cDecimalPlace
  UCHAR  fsTimeFmt
  [[OS2 API:DataType:UCHAR|UCHAR]]   fsTimeFmt
  [[USHORT]]  abReserved[2]
  [[OS2 API:DataType:USHORT|USHORT]]  abReserved[2]
  CHAR    szDataSeparator[2]
  [[OS2 API:DataType:CHAR|CHAR]]   szDataSeparator[2]
  USHORT  abReserved2[5]
  [[OS2 API:DataType:USHORT|USHORT]] abReserved2[5]


==== C Declaration Method ====
==== C Declaration Method ====
typedef struct
typedef struct
   
   
=== Fields ===
=== Fields ===
 
;country:Country code.
country                 Country code.
;codepage:Code page.
codepage               Code page.
;fsDateFmt:Date format.
fsDateFmt               Date format.
:Possible values are shown in the following list:  
                        Possible values are shown in the following list:  
::0 - mm/dd/yy  
 
::1 - dd/mm/yy  
                        0   mm/dd/yy  
::2 - yy/mm/dd
                        1   dd/mm/yy  
;szCurrency[5]:Currency indicator, null terminated.
                        2   yy/mm/dd
;szThousandsSeparator[2]:Thousands separator, null terminated.  
;szDecimal[2]:Decimal separator, null terminated.
szCurrency[5]           Currency indicator, null terminated.
;szDateSeparator[2]:Date separator, null terminated.
szThousandsSeparator[2] Thousands separator, null terminated.  
;szTimeSeparator[2]:Time separator, null terminated.
szDecimal[2]           Decimal separator, null terminated.
;fsCurrencyFmt:Bit fields for currency format.
szDateSeparator[2]     Date separator, null terminated.
:This field contains the following bit fields:
szTimeSeparator[2]     Time separator, null terminated.
::0 - Placement of the currency indicator.
fsCurrencyFmt           Bit fields for currency format.
:::0  currency indicator precedes money value
                        This field contains the following bit fields:  
:::1  currency indicator follows money value
 
::1 - Number of spaces (0 or 1) between currency indicator and money value.
                        Bit  Description
::2 - When this bit is set, ignore the first two bits; the currency indicator replaces the decimal indicator.
 
;cDecimalPlace:Binary number of decimal places used in the currency indication.
                        0   Placement of the currency indicator.  
;fsTimeFmt:Time format for file directory presentation.
                              0  currency indicator precedes money value  
:The following values are possible:
                              1  currency indicator follows money value  
::0 - 12 hour with "am" or "pm"
                        1   Number of spaces (0 or 1) between currency indicator and money value.  
::1 - 24 hour
                        2   When this bit is set, ignore the first two bits; the currency indicator replaces the decimal indicator.  
;abReserved[2]:Reserved; set to 0.
 
;szDataSeparator[2]:Data list separator, null terminated.
cDecimalPlace           Binary number of decimal places used in the currency indication.
;abReserved2[5]:Reserved; set to 0.
fsTimeFmt               Time format for file directory presentation.  
                        The following values are possible:
                        0 12 hour with "am" or "pm"  
                        1 24 hour
abReserved[2]           Reserved; set to 0.
szDataSeparator[2]     Data list separator, null terminated.
abReserved2[5]         Reserved; set to 0.


[[Category:The OS/2 API Project]]
[[Category:Data type]]

Latest revision as of 00:15, 22 January 2021

Country information.

Type

ULONG   country
ULONG   codepage
ULONG   fsDateFmt
CHAR    szCurrency[5]
CHAR    szThousandsSeparator[2]
CHAR    szDecimal[2]
CHAR    szDateSeparator[2]
CHAR    szTimeSeparator[2]
UCHAR   fsCurrencyFmt
UCHAR   cDecimalPlace
UCHAR   fsTimeFmt
USHORT  abReserved[2]
CHAR    szDataSeparator[2]
USHORT  abReserved2[5]

C Declaration Method

typedef struct

Fields

country
Country code.
codepage
Code page.
fsDateFmt
Date format.
Possible values are shown in the following list:
0 - mm/dd/yy
1 - dd/mm/yy
2 - yy/mm/dd
szCurrency[5]
Currency indicator, null terminated.
szThousandsSeparator[2]
Thousands separator, null terminated.
szDecimal[2]
Decimal separator, null terminated.
szDateSeparator[2]
Date separator, null terminated.
szTimeSeparator[2]
Time separator, null terminated.
fsCurrencyFmt
Bit fields for currency format.
This field contains the following bit fields:
0 - Placement of the currency indicator.
0 currency indicator precedes money value
1 currency indicator follows money value
1 - Number of spaces (0 or 1) between currency indicator and money value.
2 - When this bit is set, ignore the first two bits; the currency indicator replaces the decimal indicator.
cDecimalPlace
Binary number of decimal places used in the currency indication.
fsTimeFmt
Time format for file directory presentation.
The following values are possible:
0 - 12 hour with "am" or "pm"
1 - 24 hour
abReserved[2]
Reserved; set to 0.
szDataSeparator[2]
Data list separator, null terminated.
abReserved2[5]
Reserved; set to 0.