GetXtdKeySegmentDef Retrieves the requested extended key segment definition. Short Name GETKSEGDEF() Type ISAM Data Definition Declaration NINT GetXtdKeySegmentDef(NINT filno, NINT segno, pctKSEGDEF pkdef) Description GetXtdKeySegmentDef() retrieves (i.e., fills in the elements of a ctKSEGDEF structure for) the requested extended key segment definition to pkdef, except that the kseg_type member of the pkdef structure should be set on input to the type of segment to be retrieved. For example, to retrieve an ICU Unicode definition, set the kseg_type member to ctKSEG_Type_UNICODE before calling GetXtdKeySegmentDef(). If GetXtdKeySegmentDef() is called with ctKSEGhandle for the filno parameter and the handle value is passed in via the segno parameter (as shown in the third row in the table below), then the kseg_type member of the structure is ignored on input since the handle uniquely identifies the particular definition. On output, the kseg_type member will be set to the type of segment. One of the main reasons to call GetXtdKeySegmentDef() is to be able to examine the actual locale being used for the ICU collation routines. The filno and segno values determine which definition is returned, as follows:
Return If successful, GetXtdKeySegmentDef() returns the handle associated with the definition. GetXtdKeySegmentDef() returns a negative value upon error, where the absolute value of the return value is the error code. The most common errors are shown below. See “c-tree Plus Error Codes” in the c-tree Plus Reference Guide for a complete listing of valid c-tree Plus error values.
Example See the API example in “Unicode Support”. See also PutXtdKeySegmentDef(), TransformXtdSegment() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||