Jump to content

Uconv attribute t: Difference between revisions

From EDM2
No edit summary
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== unconv_attribute_t ==
== unconv_attribute_t ==
 
Describes attributes and characteristics of the conversion object. All of these field can be retrieved through [[UniQueryUconvObject]]. Some of these fields are settable through [[UniSetUconvObject]]. They are signified in the [[#Fields|fields]] section.
Describes attributes and characteristics of the conversion object. All of these field can be retrieved through [[OS2 API:UniQueryUconvObject|UniQueryUconvObject]]. Some of these fields are settable through [[OS2 API:UniSetUconvObject|UniSetUconvObject]]. They are signified in the [[OS2 API:DataType:unconv_attribute_t#Fields|fields]] section.


=== Type ===
=== Type ===
 
  [[ULONG]]        version
  [[OS2 API:DataType:ULONG|ULONG]]        version
  [[CHAR]]          mb_min_len
  [[OS2 API:DataType:CHAR|CHAR]]          mb_min_len
  CHAR          mb_max_len
  [[OS2 API:DataType:CHAR|CHAR]]         mb_max_len
  CHAR          usc_min_len
  [[OS2 API:DataType:CHAR|CHAR]]         usc_min_len
  CHAR         usc_max_len
  [[OS2 API:DataType:CHAR|CHAR]]          usc_max_len
  [[USHORT]]        esid
  [[OS2 API:DataType:USHORT|USHORT]]        esid
  CHAR          options
  [[OS2 API:DataType:CHAR|CHAR]]         options
  CHAR          state
  [[OS2 API:DataType:CHAR|CHAR]]         state
  [[conv_endian_t]] endian
  [[OS2 API:DataType:conv_endian_t|conv_endian_t]] endian
  ULONG        displaymask
  [[OS2 API:DataType:ULONG|ULONG]]         displaymask
  ULONG        converttype
  [[OS2 API:DataType:ULONG|ULONG]]         converttype
  [[USHORT]]        subchar_len
  [[OS2 API:DataType:USHORT|USHORT]]        subchar_len
  USHORT        subuni_len
  [[OS2 API:DataType:USHORT|USHORT]]       subuni_len
  [[CHAR]]          subchar[16]
  [[OS2 API:DataType:CHAR|CHAR]]          subchar[16]
  [[UniChar]]      subuni[8]
  [[OS2 API:DataType:UniChar|UniChar]]      subuni[8]


==== C declaration method ====
==== C declaration method ====
typedef struct
typedef struct


=== Fields ===
=== Fields ===
 
;version:Must be zero.
version     Must be zero.
;mb_min_len:Minimum character size.
mb_min_len Minimum character size.
;mb_max_len:Maximum character size.
mb_max_len Maximum character size.
;usc_min_len:USC minimum character size.
usc_min_len USC minimum character size.
;usc_max_len:USC maximum character size.
usc_max_len USC maximum character size.
;esid:Encoding scheme id.
esid       Encoding scheme id.
  options    Substitution options.  Settable.
  options    Substitution options.  Settable.
  state      Current state.  Settable.
  state      Current state.  Settable.
Line 47: Line 43:


This identifies the environments for which a codepage is valid:
This identifies the environments for which a codepage is valid:
 
{|class="wikitable"
{| border cellpadding="7" style="text-align: left;"
!Name||Value||Process||Display||VIO||GPI
!|Name||Value||Process||Display||VIO||GPI
|-
|-
!|ESID_sbcs_data||0x2100||x||x||x||x
|ESID_sbcs_data||0x2100||x||x||x||x
|-
|-
!|ESID_sbcs_pc||0x3100||x||x||x||x
|ESID_sbcs_pc||0x3100||x||x||x||x
|-
|-
!|ESID_sbcs_ebcdic||0x1100|| ||x||x||x
|ESID_sbcs_ebcdic||0x1100|| ||x||x||x
|-
|-
!|ESID_sbcs_iso||0x4100||x||x||x||x
|ESID_sbcs_iso||0x4100||x||x||x||x
|-
|-
!|ESID_sbcs_windows||0x4105||x||x||x||x
|ESID_sbcs_windows||0x4105||x||x||x||x
|-
|-
!|ESID_sbcs_alt||0xF100|| ||x||x||x
|ESID_sbcs_alt||0xF100|| ||x||x||x
|-
|-
!|ESID_dbcs_data||0x2200|| ||x|| ||x
|ESID_dbcs_data||0x2200|| ||x|| ||x
|-
|-
!|ESID_dbcs_pc||0x3200||x||x||x||x
|ESID_dbcs_pc||0x3200||x||x||x||x
|-
|-
!|ESID_dbcs_ebcdic||0x1200|| || || ||x
|ESID_dbcs_ebcdic||0x1200|| || || ||x
|-
|-
!|ESID_mbcs_data||0x2300|| ||x||x||x
|ESID_mbcs_data||0x2300|| ||x||x||x
|-
|-
!|ESID_mbcs_pc||0x3300|| ||x|| ||x
|ESID_mbcs_pc||0x3300|| ||x|| ||x
|-
|-
!|ESID_mbcs_ebcdic||0x1301|| || || ||
|ESID_mbcs_ebcdic||0x1301|| || || ||
|-
|-
!|ESID_ucs_2||0x7200|| || || ||
|ESID_ucs_2||0x7200|| || || ||
|-
|-
!|ESID_ugl||0x72FF|| || || ||
|ESID_ugl||0x72FF|| || || ||
|-
|-
!|ESID_utf_8||0x7807|| ||x||x||x
|ESID_utf_8||0x7807|| ||x||x||x
|-
|-
!|ESID_upf_8||0x78FF||x||x||x||x
|ESID_upf_8||0x78FF||x||x||x||x
|}
|}


 
[[Category:Data type]]
 
[[OS2_API | Back to OS/2 API]]
 
 
[[Category:The OS/2 API Project]]

Revision as of 15:14, 5 December 2016

unconv_attribute_t

Describes attributes and characteristics of the conversion object. All of these field can be retrieved through UniQueryUconvObject. Some of these fields are settable through UniSetUconvObject. They are signified in the fields section.

Type

ULONG         version
CHAR          mb_min_len
CHAR          mb_max_len
CHAR          usc_min_len
CHAR         usc_max_len
USHORT        esid
CHAR          options
CHAR          state
conv_endian_t endian
ULONG         displaymask
ULONG         converttype
USHORT        subchar_len
USHORT        subuni_len
CHAR          subchar[16]
UniChar       subuni[8]

C declaration method

typedef struct

Fields

version
Must be zero.
mb_min_len
Minimum character size.
mb_max_len
Maximum character size.
usc_min_len
USC minimum character size.
usc_max_len
USC maximum character size.
esid
Encoding scheme id.
options     Substitution options.  Settable.
state       Current state.  Settable.
endian      Source and target chain.  Settable.
displaymask Display and data mask.  Settable.
converttype Conversion type.  Settable.
subchar_len MBCS sub-character length.  Settable.
subuni_len  UniCode sub-character length.  Settable.
subchar     MBCS sub-character.  Settable.
subuni      UniCode sub-character.  Settable.

Comment

Encoding scheme id:

This identifies the environments for which a codepage is valid:

Name Value Process Display VIO GPI
ESID_sbcs_data 0x2100 x x x x
ESID_sbcs_pc 0x3100 x x x x
ESID_sbcs_ebcdic 0x1100 x x x
ESID_sbcs_iso 0x4100 x x x x
ESID_sbcs_windows 0x4105 x x x x
ESID_sbcs_alt 0xF100 x x x
ESID_dbcs_data 0x2200 x x
ESID_dbcs_pc 0x3200 x x x x
ESID_dbcs_ebcdic 0x1200 x
ESID_mbcs_data 0x2300 x x x
ESID_mbcs_pc 0x3300 x x
ESID_mbcs_ebcdic 0x1301
ESID_ucs_2 0x7200
ESID_ugl 0x72FF
ESID_utf_8 0x7807 x x x
ESID_upf_8 0x78FF x x x x