w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

fc-lang.c File Reference
#include "fccharset.c"
#include "fcstr.c"
#include "fcserialize.c"
Include dependency graph for fc-lang.c:

Go to the source code of this file.

Classes

struct  _Entry
 

Macros

#define MAX_LANG   1024
 
#define MAX_LANG_SET_MAP   ((MAX_LANG + 31) / 32)
 
#define BitSet(map, i)   ((map)[(entries[i].id)>>5] |= ((FcChar32) 1U << ((entries[i].id) & 0x1f)))
 

Typedefs

typedef struct _Entry Entry
 

Functions

void FcCacheObjectReference (void *object)
 
void FcCacheObjectDereference (void *object)
 
FcChar8FcLangNormalize (const FcChar8 *lang)
 
FcChar8FcConfigHome (void)
 
static void fatal (const char *file, int lineno, const char *msg)
 
static char * get_line (FILE *f, char *buf, int *lineno)
 
static FILEscanopen (char *file)
 
static FcCharSetscan (FILE *f, char *file, FcCharSetFreezer *freezer)
 
static char * get_name (char *file)
 
static char * get_lang (char *name)
 
static int compare (const void *a, const void *b)
 
int main (int argc, char **argv)
 

Variables

int FcDebugVal
 
static char * dir = 0
 

Macro Definition Documentation

◆ BitSet

#define BitSet (   map,
  i 
)    ((map)[(entries[i].id)>>5] |= ((FcChar32) 1U << ((entries[i].id) & 0x1f)))

Definition at line 262 of file fc-lang.c.

◆ MAX_LANG

#define MAX_LANG   1024

Definition at line 259 of file fc-lang.c.

◆ MAX_LANG_SET_MAP

#define MAX_LANG_SET_MAP   ((MAX_LANG + 31) / 32)

Definition at line 260 of file fc-lang.c.

Typedef Documentation

◆ Entry

typedef struct _Entry Entry

Function Documentation

◆ compare()

static int compare ( const void a,
const void b 
)
static

Definition at line 253 of file fc-lang.c.

References a, as, b, and FcStrCmpIgnoreCase.

Referenced by main().

◆ fatal()

static void fatal ( const char *  file,
int  lineno,
const char *  msg 
)
static

Definition at line 70 of file fc-lang.c.

References exit(), fprintf, and lineno.

Referenced by main(), and scan().

◆ FcCacheObjectDereference()

void FcCacheObjectDereference ( void object)

Definition at line 51 of file fc-lang.c.

Referenced by FcCharSetDestroy(), and FcPatternDestroy().

◆ FcCacheObjectReference()

void FcCacheObjectReference ( void object)

Definition at line 46 of file fc-lang.c.

Referenced by FcCharSetCopy(), and FcPatternReference().

◆ FcConfigHome()

FcChar8* FcConfigHome ( void  )

Definition at line 64 of file fc-lang.c.

References getenv().

◆ FcLangNormalize()

FcChar8* FcLangNormalize ( const FcChar8 lang)

Definition at line 56 of file fc-lang.c.

References NULL.

◆ get_lang()

static char* get_lang ( char *  name)
static

Definition at line 228 of file fc-lang.c.

References c, isupper, cutout::l, lang, malloc, name, strlen(), and tolower.

Referenced by main().

◆ get_line()

static char* get_line ( FILE f,
char *  buf,
int lineno 
)
static

Definition at line 80 of file fc-lang.c.

References buf, end, f, fgets, hash, isspace, line, next, strchr, and strlen().

Referenced by scan().

◆ get_name()

static char* get_name ( char *  file)
static

Definition at line 210 of file fc-lang.c.

References dot, file, malloc, name, strchr, strlen(), and strncpy().

Referenced by main().

◆ main()

◆ scan()

◆ scanopen()

static FILE* scanopen ( char *  file)
static

Definition at line 110 of file fc-lang.c.

References dir, f, FILE, fopen, and strcpy().

Referenced by main(), and scan().

Variable Documentation

◆ dir

char* dir = 0
static

Definition at line 107 of file fc-lang.c.

Referenced by main(), and scanopen().

◆ FcDebugVal

int FcDebugVal

Definition at line 61 of file fc-lang.c.