Back to index

courier  0.68.2
Functions | Variables
unicode_ultcase.c File Reference
#include "unicode_config.h"
#include "unicode.h"

Go to the source code of this file.

Functions

static unsigned find_case (unicode_char c)
unicode_char unicode_uc (unicode_char c)
unicode_char unicode_lc (unicode_char c)
unicode_char unicode_tc (unicode_char c)

Variables

const unsigned unicode_case_hash
const unicode_char unicode_case_tab [][4]
const unsigned unicode_case_offset []

Function Documentation

static unsigned find_case ( unicode_char  c) [static]

Definition at line 14 of file unicode_ultcase.c.

{
       unsigned idx= c % unicode_case_hash;

       unsigned i=unicode_case_offset[idx];

       unicode_char uc;

       --i;

       do
       {
              uc=unicode_case_tab[++i][0];
              if (uc == c)
                     return (i);
       } while ( (uc % unicode_case_hash) == idx);

       return (0);
}

Here is the caller graph for this function:

Definition at line 41 of file unicode_ultcase.c.

{
       unsigned i=find_case(c);

       return (unicode_case_tab[i][0] != c ? c:unicode_case_tab[i][2]);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 48 of file unicode_ultcase.c.

{
       unsigned i;
       unicode_char oc=c;

       c=unicode_lc(c);
       i=find_case(c);

       return (unicode_case_tab[i][0] != c ? oc:unicode_case_tab[i][3]);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 34 of file unicode_ultcase.c.

{
       unsigned i=find_case(c);

       return (unicode_case_tab[i][0] != c ? c:unicode_case_tab[i][1]);
}

Here is the call graph for this function:


Variable Documentation

const unsigned unicode_case_hash

Definition at line 9 of file unicode_ultcasetab.c.

const unsigned unicode_case_offset[]

Definition at line 534 of file unicode_ultcasetab.c.

Definition at line 11 of file unicode_ultcasetab.c.