EXIF library (libexif) Internals  0.6.24
test-codeset.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <i18n.h>
#include <langinfo.h>
#include <libintl.h>
Include dependency graph for test-codeset.c:

Go to the source code of this file.

Data Structures

struct  TestCase
 

Functions

static int my_streq (const char *va, const char *vb)
 
static int check (const int i)
 
static int checks ()
 
int main (int argc, char *argv[])
 

Variables

const TestCase testcases []
 

Function Documentation

◆ check()

static int check ( const int  i)
static

Definition at line 71 of file test-codeset.c.

References bind_textdomain_codeset, gettext, TestCase::latin1, my_streq(), TestCase::orig, testcases, textdomain, and TestCase::utf8.

Referenced by checks().

Here is the call graph for this function:

◆ checks()

static int checks ( )
static

Definition at line 133 of file test-codeset.c.

References bindtextdomain, check(), TestCase::locale, and testcases.

Referenced by main().

Here is the call graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 178 of file test-codeset.c.

References checks(), TestCase::locale, and testcases.

Here is the call graph for this function:

◆ my_streq()

static int my_streq ( const char *  va,
const char *  vb 
)
static

Definition at line 12 of file test-codeset.c.

Referenced by check().

Variable Documentation

◆ testcases

const TestCase testcases[]
Initial value:
= {
{ "de_DE",
N_("High saturation"),
"Hohe S\344ttigung",
"Hohe S\303\244ttigung" },
{ "fr_FR",
N_("Not defined"),
"Non d\233fini",
"Non d\303\251fini"
},
{ "es_ES",
N_("High saturation"),
"Alta saturaci\363n",
"Alta saturaci\303\263n"
},
{ NULL, NULL, NULL, NULL }
}
#define N_(String)
Definition: i18n.h:49

Definition at line 46 of file test-codeset.c.

Referenced by check(), checks(), and main().


libexif Generated by doxygen