Ruby  1.9.3p551(2014-11-13revision48407)
Macros | Functions | Variables
koi8_u.c File Reference
#include "regenc.h"

Go to the source code of this file.

Macros

#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 []
 

Macro Definition Documentation

◆ ENC_IS_KOI8_U_CTYPE

#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().

◆ ENC_KOI8_U_TO_LOWER_CASE

#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

◆ koi8_u_apply_all_case_fold()

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 CaseFoldMap, and onigenc_apply_all_case_fold_with_map().

◆ koi8_u_get_case_fold_codes_by_str()

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 CaseFoldMap, onigenc_get_case_fold_codes_by_str_with_map(), and p.

◆ koi8_u_is_code_ctype()

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, and FALSE.

◆ koi8_u_mbc_case_fold()

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, p, and UChar.

◆ OnigEncodingDefine()

OnigEncodingDefine ( koi8_u  ,
KOI8_U   
)

Variable Documentation

◆ CaseFoldMap

const OnigPairCaseFoldCodes CaseFoldMap[]
static

Definition at line 142 of file koi8_u.c.

Referenced by koi8_u_apply_all_case_fold(), and koi8_u_get_case_fold_codes_by_str().

◆ EncKOI8_U_CtypeTable

const unsigned short EncKOI8_U_CtypeTable[256]
static

Definition at line 71 of file koi8_u.c.

◆ EncKOI8_U_ToLowerCaseTable

const UChar EncKOI8_U_ToLowerCaseTable[256]
static

Definition at line 36 of file koi8_u.c.