chromium/third_party/fontconfig/src/src/fclang.c

/*
 * fontconfig/src/fclang.c
 *
 * Copyright © 2002 Keith Packard
 *
 * Permission to use, copy, modify, distribute, and sell this software and its
 * documentation for any purpose is hereby granted without fee, provided that
 * the above copyright notice appear in all copies and that both that
 * copyright notice and this permission notice appear in supporting
 * documentation, and that the name of the author(s) not be used in
 * advertising or publicity pertaining to distribution of the software without
 * specific, written prior permission.  The authors make no
 * representations about the suitability of this software for any purpose.  It
 * is provided "as is" without express or implied warranty.
 *
 * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
 * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

#include "fcint.h"
#include "fcftint.h"

/* Objects MT-safe for readonly access. */

FcLangCharSet;

FcLangCharSetRange;

#include "../fc-lang/fclang.h"

struct _FcLangSet {};

static int FcLangSetIndex (const FcChar8 *lang);


static void
FcLangSetBitSet (FcLangSet    *ls,
		 unsigned int  id)
{}

static FcBool
FcLangSetBitGet (const FcLangSet *ls,
		 unsigned int     id)
{}

static void
FcLangSetBitReset (FcLangSet    *ls,
		   unsigned int  id)
{}

FcLangSet *
FcFreeTypeLangSet (const FcCharSet  *charset,
		   const FcChar8    *exclusiveLang)
{}

FcChar8 *
FcLangNormalize (const FcChar8 *lang)
{}

#define FcLangEnd(c)

FcLangResult
FcLangCompare (const FcChar8 *s1, const FcChar8 *s2)
{}

/*
 * Return FcTrue when super contains sub.
 *
 * super contains sub if super and sub have the same
 * language and either the same country or one
 * is missing the country
 */

static FcBool
FcLangContains (const FcChar8 *super, const FcChar8 *sub)
{}

const FcCharSet *
FcLangGetCharSet (const FcChar8 *lang)
{}

FcStrSet *
FcGetLangs (void)
{}

FcLangSet *
FcLangSetCreate (void)
{}

void
FcLangSetDestroy (FcLangSet *ls)
{}

FcLangSet *
FcLangSetCopy (const FcLangSet *ls)
{}

/* When the language isn't found, the return value r is such that:
 *  1) r < 0
 *  2) -r -1 is the index of the first language in fcLangCharSets that comes
 *     after the 'lang' argument in lexicographic order.
 *
 *  The -1 is necessary to avoid problems with language id 0 (otherwise, we
 *  wouldn't be able to distinguish between “language found, id is 0” and
 *  “language not found, sorts right before the language with id 0”).
 */
static int
FcLangSetIndex (const FcChar8 *lang)
{}

FcBool
FcLangSetAdd (FcLangSet *ls, const FcChar8 *lang)
{}

FcBool
FcLangSetDel (FcLangSet *ls, const FcChar8 *lang)
{}

FcLangResult
FcLangSetHasLang (const FcLangSet *ls, const FcChar8 *lang)
{}

static FcLangResult
FcLangSetCompareStrSet (const FcLangSet *ls, FcStrSet *set)
{}

FcLangResult
FcLangSetCompare (const FcLangSet *lsa, const FcLangSet *lsb)
{}

/*
 * Used in computing values -- mustn't allocate any storage
 */
FcLangSet *
FcLangSetPromote (const FcChar8 *lang, FcValuePromotionBuffer *vbuf)
{}

FcChar32
FcLangSetHash (const FcLangSet *ls)
{}

FcLangSet *
FcNameParseLangSet (const FcChar8 *string)
{}

FcBool
FcNameUnparseLangSet (FcStrBuf *buf, const FcLangSet *ls)
{}

FcBool
FcLangSetEqual (const FcLangSet *lsa, const FcLangSet *lsb)
{}

static FcBool
FcLangSetContainsLang (const FcLangSet *ls, const FcChar8 *lang)
{}

/*
 * return FcTrue if lsa contains every language in lsb
 */
FcBool
FcLangSetContains (const FcLangSet *lsa, const FcLangSet *lsb)
{}

FcBool
FcLangSetSerializeAlloc (FcSerialize *serialize, const FcLangSet *l)
{}

FcLangSet *
FcLangSetSerialize(FcSerialize *serialize, const FcLangSet *l)
{}

FcStrSet *
FcLangSetGetLangs (const FcLangSet *ls)
{}

static FcLangSet *
FcLangSetOperate(const FcLangSet	*a,
		 const FcLangSet	*b,
		 FcBool			(*func) (FcLangSet 	*ls,
						 const FcChar8	*s))
{}

FcLangSet *
FcLangSetUnion (const FcLangSet *a, const FcLangSet *b)
{}

FcLangSet *
FcLangSetSubtract (const FcLangSet *a, const FcLangSet *b)
{}

#define __fclang__
#include "fcaliastail.h"
#include "fcftaliastail.h"
#undef __fclang__