120
147
@FUNC@ FcStrCopyFilename
121
148
@TYPE1@ const FcChar8 * @ARG1@ s
122
@PURPOSE@ copy a string, expanding '~'
124
Just like FcStrCopy except that it converts any leading '~' characters in
125
<parameter>s</parameter> to the value of the HOME environment variable.
126
Returns NULL if '~' is present in <parameter>s</parameter> and HOME is unset.
149
@PURPOSE@ create a complete path from a filename
151
<function>FcStrCopyFilename</function> constructs an absolute pathname from
152
<parameter>s</parameter>. It converts any leading '~' characters in
153
to the value of the HOME environment variable, and any relative paths are
154
converted to absolute paths using the current working directory. Sequences
155
of '/' characters are converted to a single '/', and names containing the
156
current directory '.' or parent directory '..' are correctly reconstructed.
157
Returns NULL if '~' is the leading character and HOME is unset or disabled
158
(see <function>FcConfigEnableHome</function>).
163
@TYPE1@ const FcChar8 * @ARG1@ s1
164
@TYPE2@ const FcChar8 * @ARG2@ s2
165
@PURPOSE@ compare UTF-8 strings
167
Returns the usual <0, 0, >0 result of comparing
168
<parameter>s1</parameter> and <parameter>s2</parameter>.
130
172
@FUNC@ FcStrCmpIgnoreCase
131
173
@TYPE1@ const FcChar8 * @ARG1@ s1
132
174
@TYPE2@ const FcChar8 * @ARG2@ s2
133
@PURPOSE@ compare UTF-8 strings ignoring ASCII case
175
@PURPOSE@ compare UTF-8 strings ignoring case
135
177
Returns the usual <0, 0, >0 result of comparing
136
<parameter>s1</parameter> and <parameter>s2</parameter>. This test is
137
case-insensitive in the ASCII range and will operate properly with UTF8
138
encoded strings, although it does not check for well formed strings.
178
<parameter>s1</parameter> and <parameter>s2</parameter>. This test is
179
case-insensitive for all proper UTF-8 encoded strings.
143
@TYPE1@ const char * @ARG1@ s1
144
@TYPE2@ const char * @ARG2@ s2
184
@TYPE1@ const FcChar8 * @ARG1@ s1
185
@TYPE2@ const FcChar8 * @ARG2@ s2
145
186
@PURPOSE@ locate UTF-8 substring
147
188
Returns the location of <parameter>s2</parameter> in
148
189
<parameter>s1</parameter>. Returns NULL if <parameter>s2</parameter>
149
190
is not present in <parameter>s1</parameter>. This test will operate properly
150
with UTF8 encoded strings, although it does not check for well formed
191
with UTF8 encoded strings.
155
195
@FUNC@ FcStrStrIgnoreCase
156
@TYPE1@ const char * @ARG1@ s1
157
@TYPE2@ const char * @ARG2@ s2
196
@TYPE1@ const FcChar8 * @ARG1@ s1
197
@TYPE2@ const FcChar8 * @ARG2@ s2
158
198
@PURPOSE@ locate UTF-8 substring ignoring ASCII case
160
200
Returns the location of <parameter>s2</parameter> in
161
<parameter>s1</parameter>, ignoring ASCII case. Returns NULL if
201
<parameter>s1</parameter>, ignoring case. Returns NULL if
162
202
<parameter>s2</parameter> is not present in <parameter>s1</parameter>.
163
This test is case-insensitive in the ASCII range and will operate properly
164
with UTF8 encoded strings, although it does not check for well formed
203
This test is case-insensitive for all proper UTF-8 encoded strings.
208
@TYPE1@ const FcChar8 * @ARG1@ s1
209
@TYPE2@ const FcChar8 * @ARG2@ s2
210
@PURPOSE@ concatenate two strings
212
This function allocates new storage and places the concatenation of
213
<parameter>s1</parameter> and <parameter>s2</parameter> there, returning the
219
@TYPE1@ FcChar8 * @ARG1@ s
220
@PURPOSE@ free a string
222
This is just a wrapper around free(3) which helps track memory usage of
223
strings within the fontconfig library.
169
226
@FUNC@ FcStrDirname