⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 regenc.c

📁 PHP v6.0 For Linux 运行环境:Win9X/ WinME/ WinNT/ Win2K/ WinXP
💻 C
📖 第 1 页 / 共 3 页
字号:
  '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',  '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',  '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',  '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',  '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',  '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',  '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\327',  '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\337',  '\340', '\341', '\342', '\343', '\344', '\345', '\346', '\347',  '\350', '\351', '\352', '\353', '\354', '\355', '\356', '\357',  '\360', '\361', '\362', '\363', '\364', '\365', '\366', '\367',  '\370', '\371', '\372', '\373', '\374', '\375', '\376', '\377'};#ifdef USE_UPPER_CASE_TABLEUChar OnigEncISO_8859_1_ToUpperCaseTable[256] = {  '\000', '\001', '\002', '\003', '\004', '\005', '\006', '\007',  '\010', '\011', '\012', '\013', '\014', '\015', '\016', '\017',  '\020', '\021', '\022', '\023', '\024', '\025', '\026', '\027',  '\030', '\031', '\032', '\033', '\034', '\035', '\036', '\037',  '\040', '\041', '\042', '\043', '\044', '\045', '\046', '\047',  '\050', '\051', '\052', '\053', '\054', '\055', '\056', '\057',  '\060', '\061', '\062', '\063', '\064', '\065', '\066', '\067',  '\070', '\071', '\072', '\073', '\074', '\075', '\076', '\077',  '\100', '\101', '\102', '\103', '\104', '\105', '\106', '\107',  '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117',  '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127',  '\130', '\131', '\132', '\133', '\134', '\135', '\136', '\137',  '\140', '\101', '\102', '\103', '\104', '\105', '\106', '\107',  '\110', '\111', '\112', '\113', '\114', '\115', '\116', '\117',  '\120', '\121', '\122', '\123', '\124', '\125', '\126', '\127',  '\130', '\131', '\132', '\173', '\174', '\175', '\176', '\177',  '\200', '\201', '\202', '\203', '\204', '\205', '\206', '\207',  '\210', '\211', '\212', '\213', '\214', '\215', '\216', '\217',  '\220', '\221', '\222', '\223', '\224', '\225', '\226', '\227',  '\230', '\231', '\232', '\233', '\234', '\235', '\236', '\237',  '\240', '\241', '\242', '\243', '\244', '\245', '\246', '\247',  '\250', '\251', '\252', '\253', '\254', '\255', '\256', '\257',  '\260', '\261', '\262', '\263', '\264', '\265', '\266', '\267',  '\270', '\271', '\272', '\273', '\274', '\275', '\276', '\277',  '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',  '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',  '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\327',  '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\337',  '\300', '\301', '\302', '\303', '\304', '\305', '\306', '\307',  '\310', '\311', '\312', '\313', '\314', '\315', '\316', '\317',  '\320', '\321', '\322', '\323', '\324', '\325', '\326', '\367',  '\330', '\331', '\332', '\333', '\334', '\335', '\336', '\377',};#endifextern voidonigenc_set_default_caseconv_table(const UChar* table){  if (table == (const UChar* )0) {#ifndef USE_APPLICATION_TO_LOWER_CASE_TABLE    table = BuiltInAsciiToLowerCaseTable;#else    return ;#endif  }  if (table != OnigEncAsciiToLowerCaseTable) {    OnigEncAsciiToLowerCaseTable = table;  }}extern UChar*onigenc_get_left_adjust_char_head(OnigEncoding enc, const UChar* start, const UChar* s){  return ONIGENC_LEFT_ADJUST_CHAR_HEAD(enc, start, s);}OnigPairAmbigCodes OnigAsciiPairAmbigCodes[] = {  { 0x41, 0x61 },  { 0x42, 0x62 },  { 0x43, 0x63 },  { 0x44, 0x64 },  { 0x45, 0x65 },  { 0x46, 0x66 },  { 0x47, 0x67 },  { 0x48, 0x68 },  { 0x49, 0x69 },  { 0x4a, 0x6a },  { 0x4b, 0x6b },  { 0x4c, 0x6c },  { 0x4d, 0x6d },  { 0x4e, 0x6e },  { 0x4f, 0x6f },  { 0x50, 0x70 },  { 0x51, 0x71 },  { 0x52, 0x72 },  { 0x53, 0x73 },  { 0x54, 0x74 },  { 0x55, 0x75 },  { 0x56, 0x76 },  { 0x57, 0x77 },  { 0x58, 0x78 },  { 0x59, 0x79 },  { 0x5a, 0x7a },  { 0x61, 0x41 },  { 0x62, 0x42 },  { 0x63, 0x43 },  { 0x64, 0x44 },  { 0x65, 0x45 },  { 0x66, 0x46 },  { 0x67, 0x47 },  { 0x68, 0x48 },  { 0x69, 0x49 },  { 0x6a, 0x4a },  { 0x6b, 0x4b },  { 0x6c, 0x4c },  { 0x6d, 0x4d },  { 0x6e, 0x4e },  { 0x6f, 0x4f },  { 0x70, 0x50 },  { 0x71, 0x51 },  { 0x72, 0x52 },  { 0x73, 0x53 },  { 0x74, 0x54 },  { 0x75, 0x55 },  { 0x76, 0x56 },  { 0x77, 0x57 },  { 0x78, 0x58 },  { 0x79, 0x59 },  { 0x7a, 0x5a }};extern intonigenc_ascii_get_all_pair_ambig_codes(OnigAmbigType flag,                                       OnigPairAmbigCodes** ccs){  if (flag == ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) {    *ccs = OnigAsciiPairAmbigCodes;    return (sizeof(OnigAsciiPairAmbigCodes) / sizeof(OnigPairAmbigCodes));  }  else {    return 0;  }}extern intonigenc_nothing_get_all_comp_ambig_codes(OnigAmbigType flag,                                         OnigCompAmbigCodes** ccs){  return 0;}extern intonigenc_iso_8859_1_get_all_pair_ambig_codes(OnigAmbigType flag,                                            OnigPairAmbigCodes** ccs){  static OnigPairAmbigCodes cc[] = {    { 0xc0, 0xe0 },    { 0xc1, 0xe1 },    { 0xc2, 0xe2 },    { 0xc3, 0xe3 },    { 0xc4, 0xe4 },    { 0xc5, 0xe5 },    { 0xc6, 0xe6 },    { 0xc7, 0xe7 },    { 0xc8, 0xe8 },    { 0xc9, 0xe9 },    { 0xca, 0xea },    { 0xcb, 0xeb },    { 0xcc, 0xec },    { 0xcd, 0xed },    { 0xce, 0xee },    { 0xcf, 0xef },    { 0xd0, 0xf0 },    { 0xd1, 0xf1 },    { 0xd2, 0xf2 },    { 0xd3, 0xf3 },    { 0xd4, 0xf4 },    { 0xd5, 0xf5 },    { 0xd6, 0xf6 },    { 0xd8, 0xf8 },    { 0xd9, 0xf9 },    { 0xda, 0xfa },    { 0xdb, 0xfb },    { 0xdc, 0xfc },    { 0xdd, 0xfd },    { 0xde, 0xfe },    { 0xe0, 0xc0 },    { 0xe1, 0xc1 },    { 0xe2, 0xc2 },    { 0xe3, 0xc3 },    { 0xe4, 0xc4 },    { 0xe5, 0xc5 },    { 0xe6, 0xc6 },    { 0xe7, 0xc7 },    { 0xe8, 0xc8 },    { 0xe9, 0xc9 },    { 0xea, 0xca },    { 0xeb, 0xcb },    { 0xec, 0xcc },    { 0xed, 0xcd },    { 0xee, 0xce },    { 0xef, 0xcf },    { 0xf0, 0xd0 },    { 0xf1, 0xd1 },    { 0xf2, 0xd2 },    { 0xf3, 0xd3 },    { 0xf4, 0xd4 },    { 0xf5, 0xd5 },    { 0xf6, 0xd6 },    { 0xf8, 0xd8 },    { 0xf9, 0xd9 },    { 0xfa, 0xda },    { 0xfb, 0xdb },    { 0xfc, 0xdc },    { 0xfd, 0xdd },    { 0xfe, 0xde }  };  if (flag == ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) {    *ccs = OnigAsciiPairAmbigCodes;    return (sizeof(OnigAsciiPairAmbigCodes) / sizeof(OnigPairAmbigCodes));  }  else if (flag == ONIGENC_AMBIGUOUS_MATCH_NONASCII_CASE) {    *ccs = cc;    return sizeof(cc) / sizeof(OnigPairAmbigCodes);  }  else    return 0;}extern intonigenc_ess_tsett_get_all_comp_ambig_codes(OnigAmbigType flag,                                           OnigCompAmbigCodes** ccs){  static OnigCompAmbigCodes folds[] = {    { 2, 0xdf, {{ 2, { 0x53, 0x53 } }, { 2, { 0x73, 0x73} } } }  };  if (flag == ONIGENC_AMBIGUOUS_MATCH_NONASCII_CASE) {    *ccs = folds;    return sizeof(folds) / sizeof(OnigCompAmbigCodes);  }  else    return 0;}extern intonigenc_not_support_get_ctype_code_range(int ctype,                             OnigCodePoint* sbr[], OnigCodePoint* mbr[]){  return ONIG_NO_SUPPORT_CONFIG;}extern intonigenc_is_mbc_newline_0x0a(const UChar* p, const UChar* end){  if (p < end) {    if (*p == 0x0a) return 1;  }  return 0;}/* for single byte encodings */extern intonigenc_ascii_mbc_to_normalize(OnigAmbigType flag, const UChar** p, const UChar*end,                               UChar* lower){  if ((flag & ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) != 0) {    *lower = ONIGENC_ASCII_CODE_TO_LOWER_CASE(**p);  }  else {    *lower = **p;  }  (*p)++;  return 1; /* return byte length of converted char to lower */}extern intonigenc_ascii_is_mbc_ambiguous(OnigAmbigType flag,			       const UChar** pp, const UChar* end){  const UChar* p = *pp;  (*pp)++;  if ((flag & ONIGENC_AMBIGUOUS_MATCH_ASCII_CASE) != 0) {    return ONIGENC_IS_ASCII_CODE_CASE_AMBIG(*p);  }  else {    return FALSE;  }}extern intonigenc_single_byte_mbc_enc_len(const UChar* p){  return 1;}extern OnigCodePointonigenc_single_byte_mbc_to_code(const UChar* p, const UChar* end){  return (OnigCodePoint )(*p);}extern intonigenc_single_byte_code_to_mbclen(OnigCodePoint code){  return 1;}extern intonigenc_single_byte_code_to_mbc_first(OnigCodePoint code){  return (code & 0xff);}extern intonigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf){  *buf = (UChar )(code & 0xff);  return 1;}extern UChar*onigenc_single_byte_left_adjust_char_head(const UChar* start, const UChar* s){  return (UChar* )s;}extern intonigenc_always_true_is_allowed_reverse_match(const UChar* s, const UChar* end){  return TRUE;}extern intonigenc_always_false_is_allowed_reverse_match(const UChar* s, const UChar* end){  return FALSE;}extern OnigCodePointonigenc_mbn_mbc_to_code(OnigEncoding enc, const UChar* p, const UChar* end){

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -