1XrmUniqueQuark(3)               XLIB FUNCTIONS               XrmUniqueQuark(3)
2
3
4

NAME

6       XrmUniqueQuark, XrmStringToQuark, XrmPermStringToQuark, XrmQuark‐
7       ToString, XrmStringToQuarkList, XrmStringToBindingQuarkList - manipu‐
8       late resource quarks
9

SYNOPSIS

11       XrmQuark XrmUniqueQuark(void);
12
13       #define XrmStringToName(string) XrmStringToQuark(string)
14       #define XrmStringToClass(string) XrmStringToQuark(string)
15       #define XrmStringToRepresentation(string) XrmStringToQuark(string)
16
17       int XrmQuark XrmStringToQuark(char *string);
18
19       XrmQuark XrmPermStringToQuark(char *string);
20
21       #define XrmStringToName(string) XrmStringToQuark(string)
22       #define XrmStringToClass(string) XrmStringToQuark(string)
23       #define XrmStringToRepresentation(string) XrmStringToQuark(string)
24
25       XrmQuark XrmStringToQuark(char *string);
26
27       XrmQuark XrmPermStringToQuark(char *string);
28
29       #define XrmNameToString(name) XrmQuarkToString(name)
30       #define XrmClassToString(class) XrmQuarkToString(class)
31       #define XrmRepresentationToString(type) XrmQuarkToString(type)
32
33       char *XrmQuarkToString(XrmQuark quark);
34
35       #define XrmStringToNameList(str, name)  XrmStringToQuarkList((str),
36       (name))
37       #define XrmStringToClassList(str,class) XrmStringToQuarkList((str),
38       (class))
39
40
41       void XrmStringToQuarkList(char *string, XrmQuarkList quarks_return);
42
43       XrmStringToBindingQuarkList(char *string, XrmBindingList bind‐
44              ings_return, XrmQuarkList quarks_return);
45

ARGUMENTS

47       bindings_return
48                 Returns the binding list.
49
50       quark     Specifies the quark for which the equivalent string is
51                 desired.
52
53       quarks_return
54                 Returns the list of quarks.
55
56       string    Specifies the string for which a quark or quark list is to be
57                 allocated.
58

DESCRIPTION

60       The XrmUniqueQuark function allocates a quark that is guaranteed not to
61       represent any string that is known to the resource manager.
62
63       These functions can be used to convert from string to quark representa‐
64       tion.  If the string is not in the Host Portable Character Encoding,
65       the conversion is implementation-dependent.  The string argument to
66       XrmStringToQuark need not be permanently allocated storage.  Xrm‐
67       PermStringToQuark is just like XrmStringToQuark, except that Xlib is
68       permitted to assume the string argument is permanently allocated, and,
69       hence, that it can be used as the value to be returned by XrmQuark‐
70       ToString.
71
72       For any given quark, if XrmStringToQuark returns a non-NULL value, all
73       future calls will return the same value (identical address).
74
75       These functions can be used to convert from quark representation to
76       string.  The string pointed to by the return value must not be modified
77       or freed.  The returned string is byte-for-byte equal to the original
78       string passed to one of the string-to-quark routines.  If no string
79       exists for that quark, XrmQuarkToString returns NULL.  For any given
80       quark, if XrmQuarkToString returns a non-NULL value, all future calls
81       will return the same value (identical address).
82
83       These functions can be used to convert from string to quark representa‐
84       tion.  If the string is not in the Host Portable Character Encoding,
85       the conversion is implementation-dependent.  The string argument to
86       XrmStringToQuark need not be permanently allocated storage.  Xrm‐
87       PermStringToQuark is just like XrmStringToQuark, except that Xlib is
88       permitted to assume the string argument is permanently allocated, and,
89       hence, that it can be used as the value to be returned by XrmQuark‐
90       ToString.
91
92       For any given quark, if XrmStringToQuark returns a non-NULL value, all
93       future calls will return the same value (identical address).
94
95       The XrmStringToQuarkList function converts the null-terminated string
96       (generally a fully qualified name) to a list of quarks.  The caller
97       must allocate sufficient space for the quarks list before calling Xrm‐
98       StringToQuarkList.  Note that the string must be in the valid Resource‐
99       Name format (see section 15.1).  If the string is not in the Host Por‐
100       table Character Encoding, the conversion is implementation-dependent.
101
102       A binding list is a list of type XrmBindingList and indicates if compo‐
103       nents of name or class lists are bound tightly or loosely (that is, if
104       wildcarding of intermediate components is specified).
105
106       typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList;
107
108       XrmBindTightly indicates that a period separates the components, and
109       XrmBindLoosely indicates that an asterisk separates the components.
110
111       The XrmStringToBindingQuarkList function converts the specified string
112       to a binding list and a quark list.  The caller must allocate suffi‐
113       cient space for the quarks list and the binding list before calling
114       XrmStringToBindingQuarkList.  If the string is not in the Host Portable
115       Character Encoding the conversion is implementation-dependent.  Compo‐
116       nent names in the list are separated by a period or an asterisk charac‐
117       ter.  If the string does not start with period or asterisk, a period is
118       assumed.  For example, ``*a.b*c'' becomes:
119
120       quarks     a       b
121       bindings   loose   tight
122

SEE ALSO

124       XrmGetResource(3), XrmInitialize(3), XrmMergeDatabases(3), XrmPutRe‐
125       source(3)
126
127       Xlib - C Language X Interface
128
129
130
131X Version 11                     libX11 1.3.4                XrmUniqueQuark(3)
Impressum