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

📄 _ctype.c

📁 MySQL的ODBC接口程序源代码
💻 C
📖 第 1 页 / 共 3 页
字号:
/* Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB   This file is public domain and comes with NO WARRANTY of any kind *//*  Define arrays to map character codes to types, uppercase, lowercase and    sortorder.    Define USE_LLLNBITCHARS_D to tell witch tabels to define.    LLL = Name of charset SWE, USA, HP    N = 7 or 8 bit chars.*//* If you define a new charset to this file you must add the name to   the CHARSSETS variable in the makefile */#include <global.h>#include "m_string.h"#ifndef _MSC_VER#define uchar char		/* Skipp warnings that '\377' isn't unsigned*/#endif#ifdef SWE7uchar NEAR ctype_swe7[257] ={  0,				/* For standard library */  32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,  32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,  72,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,  132,132,132,132,132,132,132,132,132,132,16,16,16,16,16,16,  1,129,129,129,129,129,129,1,1,1,1,1,1,1,1,1,  1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,16,  1,130,130,130,130,130,130,2,2,2,2,2,2,2,2,2,  2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,32,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};uchar NEAR to_lower_swe7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  '`',	 'a',	'b',   'c',   'd',   'e',   'f',   'g',  'h',	 'i',	'j',   'k',   'l',   'm',   'n',   'o',  'p',	 'q',	'r',   's',   't',   'u',   'v',   'w',  'x',	 'y',	'z',   '{',   '|',   '}',   '~',   '_',  '`',	 'a',	'b',   'c',   'd',   'e',   'f',   'g',  'h',	 'i',	'j',   'k',   'l',   'm',   'n',   'o',  'p',	 'q',	'r',   's',   't',   'u',   'v',   'w',  'x',	 'y',	'z',   '{',   '|',   '}',   '~',   '\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',  '\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',};uchar NEAR to_upper_swe7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  '@',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '[',   '\\',  ']',   '^',   '_',  '@',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '[',   '\\',  ']',   '^',   '\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',  '\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',};uchar NEAR sort_order_swe7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  'E',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '\\',  ']',   '[',   'Y',   '_',  'E',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '\\',  ']',   '[',   'Y',   '\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',  '\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',};#endif/****************************************************************************//****************************************************************************/#ifdef USA7uchar NEAR ctype_usa7[257] ={  0,				/* For standard library */  32,32,32,32,32,32,32,32,32,40,40,40,40,40,32,32,  32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,  72,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,  132,132,132,132,132,132,132,132,132,132,16,16,16,16,16,16,  16,129,129,129,129,129,129,1,1,1,1,1,1,1,1,1,  1,1,1,1,1,1,1,1,1,1,1,16,16,16,16,16,  16,130,130,130,130,130,130,2,2,2,2,2,2,2,2,2,  2,2,2,2,2,2,2,2,2,2,2,16,16,16,16,32,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,};uchar NEAR to_lower_usa7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  '@',	 'a',	'b',   'c',   'd',   'e',   'f',   'g',  'h',	 'i',	'j',   'k',   'l',   'm',   'n',   'o',  'p',	 'q',	'r',   's',   't',   'u',   'v',   'w',  'x',	 'y',	'z',   '[',   '\\',  ']',   '^',   '_',  '`',	 'a',	'b',   'c',   'd',   'e',   'f',   'g',  'h',	 'i',	'j',   'k',   'l',   'm',   'n',   'o',  'p',	 'q',	'r',   's',   't',   'u',   'v',   'w',  'x',	 'y',	'z',   '{',   '|',   '}',   '~',   '\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',  '\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',};uchar NEAR to_upper_usa7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  '@',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '[',   '\\',  ']',   '^',   '_',  '`',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '{',   '|',   '}',   '~',   '\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',  '\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',};uchar NEAR sort_order_usa7[]={  '\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',  ' ',	 '!',	'"',   '#',   '$',   '%',   '&',   '\'',  '(',	 ')',	'*',   '+',   ',',   '-',   '.',   '/',  '0',	 '1',	'2',   '3',   '4',   '5',   '6',   '7',  '8',	 '9',	':',   ';',   '<',   '=',   '>',   '?',  '@',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '\\',  ']',   '[',   '^',   '_',  'E',	 'A',	'B',   'C',   'D',   'E',   'F',   'G',  'H',	 'I',	'J',   'K',   'L',   'M',   'N',   'O',  'P',	 'Q',	'R',   'S',   'T',   'U',   'V',   'W',  'X',	 'Y',	'Z',   '{',   '|',   '}',   'Y',   '\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',  '\340','\341','\342','\343','\344','\345','\346','\347',  '\350','\351','\352','\353','\354','\355','\356','\357',

⌨️ 快捷键说明

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