Blame doc/fclangset.fncs

Packit 352660
/*
Packit 352660
 * Copyright © 2007 Keith Packard
Packit 352660
 *
Packit 352660
 * Permission to use, copy, modify, distribute, and sell this software and its
Packit 352660
 * documentation for any purpose is hereby granted without fee, provided that
Packit 352660
 * the above copyright notice appear in all copies and that both that copyright
Packit 352660
 * notice and this permission notice appear in supporting documentation, and
Packit 352660
 * that the name of the copyright holders not be used in advertising or
Packit 352660
 * publicity pertaining to distribution of the software without specific,
Packit 352660
 * written prior permission.  The copyright holders make no representations
Packit 352660
 * about the suitability of this software for any purpose.  It is provided "as
Packit 352660
 * is" without express or implied warranty.
Packit 352660
 *
Packit 352660
 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
Packit 352660
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
Packit 352660
 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
Packit 352660
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
Packit 352660
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
Packit 352660
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
Packit 352660
 * OF THIS SOFTWARE.
Packit 352660
 */
Packit 352660
Packit 352660
@RET@		FcLangSet *
Packit 352660
@FUNC@		FcLangSetCreate
Packit 352660
@TYPE1@		void
Packit 352660
@PURPOSE@	create a langset object
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetCreate</function> creates a new FcLangSet object.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		void
Packit 352660
@FUNC@		FcLangSetDestroy
Packit 352660
@TYPE1@		FcLangSet *			@ARG1@		ls
Packit 352660
@PURPOSE@	destroy a langset object
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetDestroy</function> destroys a FcLangSet object, freeing
Packit 352660
all memory associated with it.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcLangSet *
Packit 352660
@FUNC@		FcLangSetCopy
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls
Packit 352660
@PURPOSE@	copy a langset object
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetCopy</function> creates a new FcLangSet object and
Packit 352660
populates it with the contents of <parameter>ls</parameter>.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcLangSetAdd
Packit 352660
@TYPE1@		FcLangSet *			@ARG1@		ls
Packit 352660
@TYPE2@		const FcChar8 *			@ARG2@		lang
Packit 352660
@PURPOSE@	add a language to a langset
Packit 352660
@DESC@
Packit 352660
<parameter>lang</parameter> is added to <parameter>ls</parameter>.
Packit 352660
<parameter>lang</parameter> should be of the form Ll-Tt where Ll is a
Packit 352660
two or three letter language from ISO 639 and Tt is a territory from ISO
Packit 352660
3166.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcLangSetDel
Packit 352660
@TYPE1@		FcLangSet *			@ARG1@		ls
Packit 352660
@TYPE2@		const FcChar8 *			@ARG2@		lang
Packit 352660
@PURPOSE@	delete a language from a langset
Packit 352660
@DESC@
Packit 352660
<parameter>lang</parameter> is removed from <parameter>ls</parameter>.
Packit 352660
<parameter>lang</parameter> should be of the form Ll-Tt where Ll is a
Packit 352660
two or three letter language from ISO 639 and Tt is a territory from ISO
Packit 352660
3166.
Packit 352660
@SINCE@		2.9.0
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcLangSet *
Packit 352660
@FUNC@		FcLangSetUnion
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls_a
Packit 352660
@TYPE2@		const FcLangSet *		@ARG2@		ls_b
Packit 352660
@PURPOSE@	Add langsets
Packit 352660
@DESC@
Packit 352660
Returns a set including only those languages found in either <parameter>ls_a</parameter> or <parameter>ls_b</parameter>.
Packit 352660
@SINCE@		2.9.0
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcLangSet *
Packit 352660
@FUNC@		FcLangSetSubtract
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls_a
Packit 352660
@TYPE2@		const FcLangSet *		@ARG2@		ls_b
Packit 352660
@PURPOSE@	Subtract langsets
Packit 352660
@DESC@
Packit 352660
Returns a set including only those languages found in <parameter>ls_a</parameter> but not in <parameter>ls_b</parameter>.
Packit 352660
@SINCE@		2.9.0
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcLangResult
Packit 352660
@FUNC@		FcLangSetCompare
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls_a
Packit 352660
@TYPE2@		const FcLangSet *		@ARG2@		ls_b
Packit 352660
@PURPOSE@	compare language sets
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetCompare</function> compares language coverage for
Packit 352660
<parameter>ls_a</parameter> and <parameter>ls_b</parameter>. If they share
Packit 352660
any language and territory pair, this function returns FcLangEqual. If they
Packit 352660
share a language but differ in which territory that language is for, this
Packit 352660
function returns FcLangDifferentTerritory. If they share no languages in
Packit 352660
common, this function returns FcLangDifferentLang.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcLangSetContains
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls_a
Packit 352660
@TYPE2@		const FcLangSet *		@ARG2@		ls_b
Packit 352660
@PURPOSE@	check langset subset relation
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetContains</function> returns FcTrue if
Packit 352660
<parameter>ls_a</parameter> contains every language in
Packit 352660
<parameter>ls_b</parameter>. <parameter>ls_a</parameter> will 'contain' a
Packit 352660
language from <parameter>ls_b</parameter> if <parameter>ls_a</parameter>
Packit 352660
has exactly the language, or either the language or
Packit 352660
<parameter>ls_a</parameter> has no territory.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcBool
Packit 352660
@FUNC@		FcLangSetEqual
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls_a
Packit 352660
@TYPE2@		const FcLangSet *		@ARG2@		ls_b
Packit 352660
@PURPOSE@	test for matching langsets
Packit 352660
@DESC@
Packit 352660
Returns FcTrue if and only if <parameter>ls_a</parameter> supports precisely
Packit 352660
the same language and territory combinations as <parameter>ls_b</parameter>.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcChar32
Packit 352660
@FUNC@		FcLangSetHash
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls
Packit 352660
@PURPOSE@	return a hash value for a langset
Packit 352660
@DESC@
Packit 352660
This function returns a value which depends solely on the languages
Packit 352660
supported by <parameter>ls</parameter>. Any language which equals
Packit 352660
<parameter>ls</parameter> will have the same result from
Packit 352660
<function>FcLangSetHash</function>. However, two langsets with the same hash
Packit 352660
value may not be equal.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcLangResult
Packit 352660
@FUNC@		FcLangSetHasLang
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls
Packit 352660
@TYPE2@		const FcChar8 *			@ARG2@		lang
Packit 352660
@PURPOSE@	test langset for language support
Packit 352660
@DESC@
Packit 352660
<function>FcLangSetHasLang</function> checks whether
Packit 352660
<parameter>ls</parameter> supports <parameter>lang</parameter>. If 
Packit 352660
<parameter>ls</parameter> has a matching language and territory pair,
Packit 352660
this function returns FcLangEqual. If <parameter>ls</parameter> has
Packit 352660
a matching language but differs in which territory that language is for, this
Packit 352660
function returns FcLangDifferentTerritory. If <parameter>ls</parameter> 
Packit 352660
has no matching language, this function returns FcLangDifferentLang.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcStrSet *
Packit 352660
@FUNC@		FcGetDefaultLangs
Packit 352660
@TYPE1@		void
Packit 352660
@PURPOSE@	Get the default languages list
Packit 352660
@DESC@
Packit 352660
Returns a string set of the default languages according to the environment variables on the system.
Packit 352660
This function looks for them in order of FC_LANG, LC_ALL, LC_CTYPE and LANG then.
Packit 352660
If there are no valid values in those environment variables, "en" will be set as fallback.
Packit 352660
@SINCE@		2.9.91
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcStrSet *
Packit 352660
@FUNC@		FcLangSetGetLangs
Packit 352660
@TYPE1@		const FcLangSet *		@ARG1@		ls
Packit 352660
@PURPOSE@	get the list of languages in the langset
Packit 352660
@DESC@
Packit 352660
Returns a string set of all languages in <parameter>langset</parameter>.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcStrSet *
Packit 352660
@FUNC@		FcGetLangs
Packit 352660
@TYPE1@		void
Packit 352660
@PURPOSE@	Get list of languages
Packit 352660
@DESC@
Packit 352660
Returns a string set of all known languages.
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		FcChar8 *
Packit 352660
@FUNC@		FcLangNormalize
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		lang
Packit 352660
@PURPOSE@	Normalize the language string
Packit 352660
@DESC@
Packit 352660
Returns a string to make <parameter>lang</parameter> suitable on fontconfig.
Packit 352660
@SINCE@		2.10.91
Packit 352660
@@
Packit 352660
Packit 352660
@RET@		const FcCharSet *
Packit 352660
@FUNC@		FcLangGetCharSet
Packit 352660
@TYPE1@		const FcChar8 *			@ARG1@		lang
Packit 352660
@PURPOSE@	Get character map for a language
Packit 352660
@DESC@
Packit 352660
Returns the FcCharMap for a language.
Packit 352660
@@