home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XrmUniqueQuark(3X11) XLIB FUNCTIONS XrmUniqueQuark(3X11)
-
-
- NNAAMMEE
- XrmUniqueQuark, XrmStringToQuark, XrmPermStringToQuark,
- XrmQuarkToString, XrmStringToQuarkList, XrmStringToBind-
- ingQuarkList - manipulate resource quarks
-
- SSYYNNTTAAXX
- XrmQuark XrmUniqueQuark()
-
- #define XrmStringToName(string) XrmStringToQuark(string)
- #define XrmStringToClass(string) XrmStringToQuark(string)
- #define XrmStringToRepresentation(string) XrmStringTo-
- Quark(string)
-
- XrmQuark XrmStringToQuark(_s_t_r_i_n_g)
- char *_s_t_r_i_n_g;
-
- XrmQuark XrmPermStringToQuark(_s_t_r_i_n_g)
- char *_s_t_r_i_n_g;
-
- #define XrmStringToName(string) XrmStringToQuark(string)
- #define XrmStringToClass(string) XrmStringToQuark(string)
- #define XrmStringToRepresentation(string) XrmStringTo-
- Quark(string)
-
- XrmQuark XrmStringToQuark(_s_t_r_i_n_g)
- char *_s_t_r_i_n_g;
-
- XrmQuark XrmPermStringToQuark(_s_t_r_i_n_g)
- char *_s_t_r_i_n_g;
-
- #define XrmNameToString(name) XrmQuarkToString(name)
- #define XrmClassToString(class) XrmQuarkToString(class)
- #define XrmRepresentationToString(type) XrmQuark-
- ToString(type)
-
- char *XrmQuarkToString(_q_u_a_r_k)
- XrmQuark _q_u_a_r_k;
-
- #define XrmStringToNameList(str, name) XrmStringToQuark-
- List((str), (name)) #define XrmStringTo-
- ClassList(str,class) XrmStringToQuarkList((str), (class))
-
- void XrmStringToQuarkList(_s_t_r_i_n_g, _q_u_a_r_k_s___r_e_t_u_r_n)
- char *_s_t_r_i_n_g;
- XrmQuarkList _q_u_a_r_k_s___r_e_t_u_r_n;
-
- XrmStringToBindingQuarkList(_s_t_r_i_n_g, _b_i_n_d_i_n_g_s___r_e_t_u_r_n,
- _q_u_a_r_k_s___r_e_t_u_r_n)
- char *_s_t_r_i_n_g;
- XrmBindingList _b_i_n_d_i_n_g_s___r_e_t_u_r_n;
- XrmQuarkList _q_u_a_r_k_s___r_e_t_u_r_n;
-
- AARRGGUUMMEENNTTSS
-
-
-
-
- X Version 11 Release 6.1 1
-
-
-
-
-
- XrmUniqueQuark(3X11) XLIB FUNCTIONS XrmUniqueQuark(3X11)
-
-
- _b_i_n_d_i_n_g_s___r_e_t_u_r_n
- Returns the binding list.
-
- _q_u_a_r_k Specifies the quark for which the equivalent
- string is desired.
-
- _q_u_a_r_k_s___r_e_t_u_r_n
- Returns the list of quarks.
-
- _s_t_r_i_n_g Specifies the string for which a quark or quark
- list is to be allocated.
-
- DDEESSCCRRIIPPTTIIOONN
- The _X_r_m_U_n_i_q_u_e_Q_u_a_r_k function allocates a quark that is
- guaranteed not to represent any string that is known to
- the resource manager.
-
- These functions can be used to convert from string to
- quark representation. If the string is not in the Host
- Portable Character Encoding, the conversion is implementa-
- tion-dependent. The string argument to _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k
- need not be permanently allocated storage. _X_r_m_P_e_r_m_S_t_r_i_n_g_-
- _T_o_Q_u_a_r_k is just like _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k, except that Xlib is
- permitted to assume the string argument is permanently
- allocated, and, hence, that it can be used as the value to
- be returned by _X_r_m_Q_u_a_r_k_T_o_S_t_r_i_n_g.
-
- For any given quark, if _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k returns a non-
- NULL value, all future calls will return the same value
- (identical address).
-
- These functions can be used to convert from quark repre-
- sentation to string. The string pointed to by the return
- value must not be modified or freed. The returned string
- is byte-for-byte equal to the original string passed to
- one of the string-to-quark routines. If no string exists
- for that quark, _X_r_m_Q_u_a_r_k_T_o_S_t_r_i_n_g returns NULL. For any
- given quark, if _X_r_m_Q_u_a_r_k_T_o_S_t_r_i_n_g returns a non-NULL value,
- all future calls will return the same value (identical
- address).
-
- These functions can be used to convert from string to
- quark representation. If the string is not in the Host
- Portable Character Encoding, the conversion is implementa-
- tion-dependent. The string argument to _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k
- need not be permanently allocated storage. _X_r_m_P_e_r_m_S_t_r_i_n_g_-
- _T_o_Q_u_a_r_k is just like _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k, except that Xlib is
- permitted to assume the string argument is permanently
- allocated, and, hence, that it can be used as the value to
- be returned by _X_r_m_Q_u_a_r_k_T_o_S_t_r_i_n_g.
-
- For any given quark, if _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k returns a non-
- NULL value, all future calls will return the same value
- (identical address).
-
-
-
- X Version 11 Release 6.1 2
-
-
-
-
-
- XrmUniqueQuark(3X11) XLIB FUNCTIONS XrmUniqueQuark(3X11)
-
-
- The _X_r_m_S_t_r_i_n_g_T_o_Q_u_a_r_k_L_i_s_t function converts the null-
- terminated string (generally a fully qualified name) to a
- list of quarks. Note that the string must be in the valid
- ResourceName format (see section 15.1). If the string is
- not in the Host Portable Character Encoding, the conver-
- sion is implementation-dependent.
-
- A binding list is a list of type _X_r_m_B_i_n_d_i_n_g_L_i_s_t and indi-
- cates if components of name or class lists are bound
- tightly or loosely (that is, if wildcarding of intermedi-
- ate components is specified).
-
- typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList;
-
- _X_r_m_B_i_n_d_T_i_g_h_t_l_y indicates that a period separates the com-
- ponents, and _X_r_m_B_i_n_d_L_o_o_s_e_l_y indicates that an asterisk
- separates the components.
-
- The _X_r_m_S_t_r_i_n_g_T_o_B_i_n_d_i_n_g_Q_u_a_r_k_L_i_s_t function converts the
- specified string to a binding list and a quark list. If
- the string is not in the Host Portable Character Encoding
- the conversion is implementation-dependent. Component
- names in the list are separated by a period or an asterisk
- character. If the string does not start with period or
- asterisk, a period is assumed. For example, ``*a.b*c''
- becomes:
-
- quarks a b c
- bindings loose tightloose
-
- SSEEEE AALLSSOO
- XrmGetResource(3X11), XrmInitialize(3X11), XrmMerge-
- Databases(3X11), XrmPutResource(3X11)
- _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- X Version 11 Release 6.1 3
-
-
-