4 * Copyright © 2003 Keith Packard
6 * Permission to use, copy, modify, distribute, and sell this software and its
7 * documentation for any purpose is hereby granted without fee, provided that
8 * the above copyright notice appear in all copies and that both that
9 * copyright notice and this permission notice appear in supporting
10 * documentation, and that the name of Keith Packard not be used in
11 * advertising or publicity pertaining to distribution of the software without
12 * specific, written prior permission. Keith Packard makes no
13 * representations about the suitability of this software for any purpose. It
14 * is provided "as is" without express or implied warranty.
16 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
17 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
18 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
19 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
20 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
21 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
22 * PERFORMANCE OF THIS SOFTWARE.
29 @PURPOSE@ create a string set
36 @TYPE1@ FcStrSet * @ARG1@ set
37 @TYPE2@ const FcChar8 * @ARG2@ s
38 @PURPOSE@ check set for membership
40 Returns whether <parameter>s</parameter> is a member of
41 <parameter>set</parameter>.
46 @TYPE1@ FcStrSet * @ARG1@ set_a
47 @TYPE2@ FcStrSet * @ARG2@ set_b
48 @PURPOSE@ check sets for equality
50 Returns whether <parameter>set_a</parameter> contains precisely the same
51 strings as <parameter>set_b</parameter>. Ordering of strings within the two
52 sets is not considered.
57 @TYPE1@ FcStrSet * @ARG1@ set
58 @TYPE2@ const FcChar8 * @ARG2@ s
59 @PURPOSE@ add to a string set
61 Adds a copy of <parameter>s</parameter> to <parameter>set</parameter>.
65 @FUNC@ FcStrSetAddFilename
66 @TYPE1@ FcStrSet * @ARG1@ set
67 @TYPE2@ const FcChar8 * @ARG2@ s
68 @PURPOSE@ add a filename to a string set
70 Adds a copy <parameter>s</parameter> to <parameter>set</parameter>, The copy
71 is created with FcStrCopyFilename so that leading '~' values are replaced
72 with the value of the HOME environment variable.
77 @TYPE1@ FcStrSet * @ARG1@ set
78 @TYPE2@ const FcChar8 * @ARG2@ s
79 @PURPOSE@ delete from a string set
81 Removes <parameter>s</parameter> from <parameter>set</parameter>, returning
82 FcTrue if <parameter>s</parameter> was a member else FcFalse.
86 @FUNC@ FcStrSetDestroy
87 @TYPE1@ FcStrSet * @ARG1@ set
88 @PURPOSE@ destroy a string set
90 Destroys <parameter>set</parameter>.
94 @FUNC@ FcStrListCreate
95 @TYPE1@ FcStrSet * @ARG1@ set
96 @PURPOSE@ create a string iterator
98 Creates an iterator to list the strings in <parameter>set</parameter>.
103 @TYPE1@ FcStrList * @ARG1@ list
104 @PURPOSE@ get next string in iteration
106 Returns the next string in <parameter>set</parameter>.
111 @TYPE1@ FcStrList * @ARG1@ list
112 @PURPOSE@ destroy a string iterator
114 Destroys the enumerator <parameter>list</parameter>.