Defines | Functions | Variables

enc/koi8_u.c File Reference

#include "regenc.h"
Include dependency graph for koi8_u.c:

Go to the source code of this file.

Defines

#define ENC_KOI8_U_TO_LOWER_CASE(c)   EncKOI8_U_ToLowerCaseTable[c]
#define ENC_IS_KOI8_U_CTYPE(code, ctype)   ((EncKOI8_U_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)

Functions

static int koi8_u_mbc_case_fold (OnigCaseFoldType flag ARG_UNUSED, const UChar **pp, const UChar *end ARG_UNUSED, UChar *lower, OnigEncoding enc ARG_UNUSED)
static int koi8_u_is_code_ctype (OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
static int koi8_u_apply_all_case_fold (OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void *arg, OnigEncoding enc ARG_UNUSED)
static int koi8_u_get_case_fold_codes_by_str (OnigCaseFoldType flag, const OnigUChar *p, const OnigUChar *end, OnigCaseFoldCodeItem items[], OnigEncoding enc ARG_UNUSED)
 OnigEncodingDefine (koi8_u, KOI8_U)

Variables

static const UChar EncKOI8_U_ToLowerCaseTable [256]
static const unsigned short EncKOI8_U_CtypeTable [256]
static const OnigPairCaseFoldCodes CaseFoldMap []

Define Documentation

#define ENC_IS_KOI8_U_CTYPE (   code,
  ctype 
)    ((EncKOI8_U_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)

Definition at line 33 of file koi8_u.c.

Referenced by koi8_u_is_code_ctype().

#define ENC_KOI8_U_TO_LOWER_CASE (   c  )     EncKOI8_U_ToLowerCaseTable[c]

Definition at line 32 of file koi8_u.c.

Referenced by koi8_u_mbc_case_fold().


Function Documentation

static int koi8_u_apply_all_case_fold ( OnigCaseFoldType  flag,
OnigApplyAllCaseFoldFunc  f,
void *  arg,
OnigEncoding enc  ARG_UNUSED 
) [static]

Definition at line 185 of file koi8_u.c.

References onigenc_apply_all_case_fold_with_map().

static int koi8_u_get_case_fold_codes_by_str ( OnigCaseFoldType  flag,
const OnigUChar p,
const OnigUChar end,
OnigCaseFoldCodeItem  items[],
OnigEncoding enc  ARG_UNUSED 
) [static]

Definition at line 195 of file koi8_u.c.

References onigenc_get_case_fold_codes_by_str_with_map().

static int koi8_u_is_code_ctype ( OnigCodePoint  code,
unsigned int  ctype,
OnigEncoding enc  ARG_UNUSED 
) [static]

Definition at line 133 of file koi8_u.c.

References ENC_IS_KOI8_U_CTYPE.

static int koi8_u_mbc_case_fold ( OnigCaseFoldType flag  ARG_UNUSED,
const UChar **  pp,
const UChar *end  ARG_UNUSED,
UChar *  lower,
OnigEncoding enc  ARG_UNUSED 
) [static]

Definition at line 107 of file koi8_u.c.

References ENC_KOI8_U_TO_LOWER_CASE, and UChar.

OnigEncodingDefine ( koi8_u  ,
KOI8_U   
)

Variable Documentation

Definition at line 142 of file koi8_u.c.

const unsigned short EncKOI8_U_CtypeTable[256] [static]

Definition at line 71 of file koi8_u.c.

const UChar EncKOI8_U_ToLowerCaseTable[256] [static]

Definition at line 36 of file koi8_u.c.