<!-- $XConsortium: RegistS.sgm /main/8 1996/09/08 20:56:29 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN347.rsml.1">
<RefMeta>
<RefEntryTitle>XmRegisterSegmentEncoding</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmRegisterSegmentEncoding</Function></RefName>
<RefPurpose>A compound string function that registers
a compound text encoding format for a specified font list element tag
<IndexTerm>
<Primary>XmRegisterSegment\\%Encoding</Primary>
</IndexTerm><IndexTerm>
<Primary>compound string functions</Primary>
<Secondary>XmRegisterSegment\\%Encoding</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>char * <Function>XmRegisterSegmentEncoding</Function></FuncDef>
<!--<ParamDef><Replaceable>fontlist_tag, ct_encoding</Replaceable></ParamDef>-->
<ParamDef>char *<Parameter>fontlist_tag</Parameter></ParamDef>
<ParamDef>char *<Parameter>ct_encoding</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmRegisterSegmentEncoding</Function> registers a compound text encoding format
with the specified font list element tag. The <Function>XmCvtXmStringToCT</Function>
function uses this registry to map the font list tags of compound string
segments to compound text encoding formats. Registering
a font list tag that already exists in the registry overwrites the original
entry. You can unregister a font list tag by passing a NULL value for the
<Symbol Role="Variable">ct_encoding</Symbol> parameter.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">fontlist_tag</Symbol></Term>
<ListItem>
<Para>Specifies the font list element tag to be registered. The
tag must be a NULL-terminated ISO8859-1 string.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">ct_encoding</Symbol></Term>
<ListItem>
<Para>Specifies the compound text character set to be used for segments
with the font list tag. The value must be a NULL-terminated ISO8859-1 string.
A value of <SystemItem Class="Resource">XmFONTLIST_DEFAULT_TAG</SystemItem> maps the specified font list tag to
the code set of the locale.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns NULL for a new font list tag or the old <Symbol Role="Variable">ct_encoding</Symbol>
value for an already registered font list tag. The
application is responsible for freeing the
storage associated with the returned data (if any) by
calling <Function>XtFree</Function>.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmCvtXmStringToCT;,
&cdeman.XmFontList;,
&cdeman.XmMapSegmentEncoding;, and
&cdeman.XmString;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
