Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmcvtxmstringtabletotextproperty(3) [redhat man page]

XmCvtXmStringTableToTextProperty(library call)							    XmCvtXmStringTableToTextProperty(library call)

NAME
XmCvtXmStringTableToTextProperty -- A function that converts from XmStringTable to an XTextProperty Structure SYNOPSIS
#include <Xm/Xm.h> int XmCvtXmStringTableToTextProperty (display, string_table, count, style, text_prop_return) Display *display; XmStringTable string_table; int count; XmICCEncodingStyle style; XTextProperty *text_prop_return; (void) DESCRIPTION
XmCvtXmStringTableToTextProperty converts the XmStrings in the specified XmStringTable into an XTextProperty structure. The function sets the encoding member of text_prop_return to an Atom for the specified display naming the encoding determined by the speci- fied style, and it converts the first count compound strings in the specified XmStringTable to this encoding for storage in the text_prop_return value member. Following are the possible encoding styles: XmSTYLE_COMPOUND_STRING The encoding is _MOTIF_COMPOUND_STRING. The function converts each specified XmString to a compound string in Byte Stream format. XmSTYLE_COMPOUND_TEXT The encoding is COMPOUND_TEXT. The function converts each specified XmString to compound text. XmSTYLE_LOCALE The encoding is the encoding of the current locale. The function converts each specified XmString to the encoding of the current locale. XmSTYLE_STRING The encoding is STRING (plain C strings encoded in ISO8859-1), and the function converts each specified XmString to STRING. XmSTYLE_TEXT If all specified XmStrings are fully convertible to the encoding of the current locale, the encoding is the encoding of the cur- rent locale, and the function converts each specified XmString to the encoding of the current locale. Otherwise, the encoding is COMPOUND_TEXT, and the function converts each specified compound string to compound text. XmSTYLE_STANDARD_ICC_TEXT If all specified XmStrings are fully convertible to STRING, the encoding is STRING, and the function converts each specified XmString to STRING. Otherwise, the encoding is COMPOUND_TEXT, and the function converts each specified XmString to compound text. display Specifies the connection to the X server. string_table Specifies a set of XmStrings. count Specifies the number of XmStrings to be converted in string_table. style Specifies the manner in which the property is encoded. text_prop_return Returns the XTextProperty structure. To free the storage for the value member of the XTextProperty, use XtFree. RETURN VALUES
If conversion depends on the locale and the current locale is not supported, the function returns XLocaleNotSupported. In both of these cases, the function does not set text_prop_return. To determine whether the function is guaranteed not to return XLocaleNotSupported, use XSupportsLocale. RELATED INFORMATION
XmCvtXmStringToByteStream(3), XmCvtTextPropertyToXmStringTable(3), and XmStringTable(3). XmCvtXmStringTableToTextProperty(library call)

Check Out this Related Man Page

XmCvtTextPropertyToXmStringTable(library call)							    XmCvtTextPropertyToXmStringTable(library call)

NAME
XmCvtTextPropertyToXmStringTable -- A function that converts from a TextProperty Structure to a StringTable SYNOPSIS
#include <Xm/Xm.h> int XmCvtTextPropertyToXmStringTable (display, text_prop, string_table_return, count_return) Display *display; XTextProperty *text_prop; XmStringTable *string_table_return; int *count_return; (void) DESCRIPTION
XmCvtTextPropertyToXmStringTable converts the specified XTextProperty structure into an XmStringTable, as follows: o If the encoding member of text_prop is the Atom STRING, each returned XmString has a tag of "ISO8859-1" and a text type of XmCHARSET_TEXT. o If the encoding member of text_prop is the encoding of the current locale, and if that encoding is not STRING, each returned XmString has a tag of _MOTIF_DEFAULT_LOCALE and a text type of XmMULTIBYTE_TEXT. o If the encoding member of text_prop is other than STRING or the encoding of the current locale, the contents of the returned compound strings are implementation dependent. If conversion depends on the locale and the current locale is not supported, the function returns XLocaleNotSupported. If conversion to the encoding of the current locale is required and if the locale is supported but no converter is available for the encoding specified in text_prop, the function returns XConverterNotFound. For supported locales, existence of a converter from COMPOUND_TEXT, STRING, or the encoding of the current locale is guaranteed if XSupportsLocale returns True for the current locale (but the actual text may contain uncon- vertible characters). Conversion of other encodings to the encoding of the current locale is implementation dependent. In all of these error cases, the function does not set any return values. If an element of the value member of text_prop is not convertible to XmString, the corresponding entry in the returned XmStringTable will be NULL, and XmCvtTextPropertyToXmStringTable returns Success. To free the storage for the XmStringTable and its count_return compound strings returned by this function, first free each XmString in the table using XmStringFree, and then free the XmStringTable itself using XtFree. display Specifies the connection to the X server. text_prop Specifies a pointer to the XTextProperty. The format member of text_prop must be 8. string_table_return Specifies the XmStringTable array into which the converted compound strings are placed. count_return Specifies the number of XmStrings returned by this function. RETURN VALUES
Upon success, this function returns the set of XmStrings in string_table_return, and it returns the number of XmStrings in count_return, and returns Success. Otherwise, it returns the following: XLocaleNotSupported Returned if conversion depends on the locale and the current locale is not supported. XConverterNotFound Returned if conversion to the encoding of the current locale is required and if the locale is supported but no converter is available for the encoding specified in text_prop. RELATED INFORMATION
XmCvtXmStringTableToTextProperty(3), XmText(3), and XmTextGetString(3). XmCvtTextPropertyToXmStringTable(library call)
Man Page