home *** CD-ROM | disk | FTP | other *** search
/ Serving the Web / ServingTheWeb1995.disc1of1.iso / linux / slacksrce / d / libc / libc-4.6 / libc-4 / libc-linux / locale / ISO88591_ct.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-26  |  9.7 KB  |  796 lines

  1. #include <ansidecl.h>
  2. #include <localeinfo.h>
  3. #include <stddef.h>
  4. #include <ctype.h>
  5.  
  6. CONST unsigned short int __ctype_b_ISO_8859_1 [] =
  7.   {
  8.     0,
  9.     _IScntrl,
  10.     _IScntrl,
  11.     _IScntrl,
  12.     _IScntrl,
  13.     _IScntrl,
  14.     _IScntrl,
  15.     _IScntrl,
  16.     _IScntrl,
  17.     _IScntrl,
  18.     _IScntrl|_ISspace|_ISblank,
  19.     _IScntrl|_ISspace,
  20.     _IScntrl|_ISspace,
  21.     _IScntrl|_ISspace,
  22.     _IScntrl|_ISspace,
  23.     _IScntrl,
  24.     _IScntrl,
  25.     _IScntrl,
  26.     _IScntrl,
  27.     _IScntrl,
  28.     _IScntrl,
  29.     _IScntrl,
  30.     _IScntrl,
  31.     _IScntrl,
  32.     _IScntrl,
  33.     _IScntrl,
  34.     _IScntrl,
  35.     _IScntrl,
  36.     _IScntrl,
  37.     _IScntrl,
  38.     _IScntrl,
  39.     _IScntrl,
  40.     _IScntrl,
  41.     _ISspace|_NOgraph|_ISblank,
  42.     _ISpunct,
  43.     _ISpunct,
  44.     _ISpunct,
  45.     _ISpunct,
  46.     _ISpunct,
  47.     _ISpunct,
  48.     _ISpunct,
  49.     _ISpunct,
  50.     _ISpunct,
  51.     _ISpunct,
  52.     _ISpunct,
  53.     _ISpunct,
  54.     _ISpunct,
  55.     _ISpunct,
  56.     _ISpunct,
  57.     _ISdigit|_IShex,
  58.     _ISdigit|_IShex,
  59.     _ISdigit|_IShex,
  60.     _ISdigit|_IShex,
  61.     _ISdigit|_IShex,
  62.     _ISdigit|_IShex,
  63.     _ISdigit|_IShex,
  64.     _ISdigit|_IShex,
  65.     _ISdigit|_IShex,
  66.     _ISdigit|_IShex,
  67.     _ISpunct,
  68.     _ISpunct,
  69.     _ISpunct,
  70.     _ISpunct,
  71.     _ISpunct,
  72.     _ISpunct,
  73.     _ISpunct,
  74.     _ISupper|_IShex,
  75.     _ISupper|_IShex,
  76.     _ISupper|_IShex,
  77.     _ISupper|_IShex,
  78.     _ISupper|_IShex,
  79.     _ISupper|_IShex,
  80.     _ISupper,
  81.     _ISupper,
  82.     _ISupper,
  83.     _ISupper,
  84.     _ISupper,
  85.     _ISupper,
  86.     _ISupper,
  87.     _ISupper,
  88.     _ISupper,
  89.     _ISupper,
  90.     _ISupper,
  91.     _ISupper,
  92.     _ISupper,
  93.     _ISupper,
  94.     _ISupper,
  95.     _ISupper,
  96.     _ISupper,
  97.     _ISupper,
  98.     _ISupper,
  99.     _ISupper,
  100.     _ISpunct,
  101.     _ISpunct,
  102.     _ISpunct,
  103.     _ISpunct,
  104.     _ISpunct,
  105.     _ISpunct,
  106.     _ISlower|_IShex,
  107.     _ISlower|_IShex,
  108.     _ISlower|_IShex,
  109.     _ISlower|_IShex,
  110.     _ISlower|_IShex,
  111.     _ISlower|_IShex,
  112.     _ISlower,
  113.     _ISlower,
  114.     _ISlower,
  115.     _ISlower,
  116.     _ISlower,
  117.     _ISlower,
  118.     _ISlower,
  119.     _ISlower,
  120.     _ISlower,
  121.     _ISlower,
  122.     _ISlower,
  123.     _ISlower,
  124.     _ISlower,
  125.     _ISlower,
  126.     _ISlower,
  127.     _ISlower,
  128.     _ISlower,
  129.     _ISlower,
  130.     _ISlower,
  131.     _ISlower,
  132.     _ISpunct,
  133.     _ISpunct,
  134.     _ISpunct,
  135.     _ISpunct,
  136.     _IScntrl,
  137.     _IScntrl,
  138.     _IScntrl,
  139.     _IScntrl,
  140.     _IScntrl,
  141.     _IScntrl,
  142.     _IScntrl,
  143.     _IScntrl,
  144.     _IScntrl,
  145.     _IScntrl,
  146.     _IScntrl,
  147.     _IScntrl,
  148.     _IScntrl,
  149.     _IScntrl,
  150.     _IScntrl,
  151.     _IScntrl,
  152.     _IScntrl,
  153.     _IScntrl,
  154.     _IScntrl,
  155.     _IScntrl,
  156.     _IScntrl,
  157.     _IScntrl,
  158.     _IScntrl,
  159.     _IScntrl,
  160.     _IScntrl,
  161.     _IScntrl,
  162.     _IScntrl,
  163.     _IScntrl,
  164.     _IScntrl,
  165.     _IScntrl,
  166.     _IScntrl,
  167.     _IScntrl,
  168.     _ISspace|_ISblank,
  169.     _ISpunct,
  170.     _ISpunct,
  171.     _ISpunct,
  172.     _ISpunct,
  173.     _ISpunct,
  174.     _ISpunct,
  175.     _ISpunct,
  176.     _ISpunct,
  177.     _ISpunct,
  178.     _ISpunct,
  179.     _ISpunct,
  180.     _ISpunct,
  181.     _ISpunct,
  182.     _ISpunct,
  183.     _ISpunct,
  184.     _ISpunct,
  185.     _ISpunct,
  186.     _ISpunct,
  187.     _ISpunct,
  188.     _ISpunct,
  189.     _ISpunct,
  190.     _ISpunct,
  191.     _ISpunct,
  192.     _ISpunct,
  193.     _ISpunct,
  194.     _ISpunct,
  195.     _ISpunct,
  196.     _ISpunct,
  197.     _ISpunct,
  198.     _ISpunct,
  199.     _ISpunct,
  200.     _ISupper,
  201.     _ISupper,
  202.     _ISupper,
  203.     _ISupper,
  204.     _ISupper,
  205.     _ISupper,
  206.     _ISupper,
  207.     _ISupper,
  208.     _ISupper,
  209.     _ISupper,
  210.     _ISupper,
  211.     _ISupper,
  212.     _ISupper,
  213.     _ISupper,
  214.     _ISupper,
  215.     _ISupper,
  216.     _ISupper,
  217.     _ISupper,
  218.     _ISupper,
  219.     _ISupper,
  220.     _ISupper,
  221.     _ISupper,
  222.     _ISupper,
  223.     _ISupper,
  224.     _ISupper,
  225.     _ISupper,
  226.     _ISupper,
  227.     _ISupper,
  228.     _ISupper,
  229.     _ISupper,
  230.     _ISupper,
  231.     _ISupper,
  232.     _ISlower,
  233.     _ISlower,
  234.     _ISlower,
  235.     _ISlower,
  236.     _ISlower,
  237.     _ISlower,
  238.     _ISlower,
  239.     _ISlower,
  240.     _ISlower,
  241.     _ISlower,
  242.     _ISlower,
  243.     _ISlower,
  244.     _ISlower,
  245.     _ISlower,
  246.     _ISlower,
  247.     _ISlower,
  248.     _ISlower,
  249.     _ISlower,
  250.     _ISlower,
  251.     _ISlower,
  252.     _ISlower,
  253.     _ISlower,
  254.     _ISlower,
  255.     _ISlower,
  256.     _ISlower,
  257.     _ISlower,
  258.     _ISlower,
  259.     _ISlower,
  260.     _ISlower,
  261.     _ISlower,
  262.     _ISlower,
  263.     _ISlower,
  264.     _ISlower,
  265.   };
  266.  
  267. CONST unsigned char __ctype_tolower_ISO_8859_1 [] =
  268.   {
  269.     '\377',
  270.     '\000',
  271.     '\001',
  272.     '\002',
  273.     '\003',
  274.     '\004',
  275.     '\005',
  276.     '\006',
  277.     '\007',
  278.     '\010',
  279.     '\011',
  280.     '\012',
  281.     '\013',
  282.     '\014',
  283.     '\015',
  284.     '\016',
  285.     '\017',
  286.     '\020',
  287.     '\021',
  288.     '\022',
  289.     '\023',
  290.     '\024',
  291.     '\025',
  292.     '\026',
  293.     '\027',
  294.     '\030',
  295.     '\031',
  296.     '\032',
  297.     '\033',
  298.     '\034',
  299.     '\035',
  300.     '\036',
  301.     '\037',
  302.     '\040',
  303.     '!',
  304.     '"',
  305.     '#',
  306.     '$',
  307.     '%',
  308.     '&',
  309.     '\'',
  310.     '(',
  311.     ')',
  312.     '*',
  313.     '+',
  314.     ',',
  315.     '-',
  316.     '.',
  317.     '/',
  318.     '0',
  319.     '1',
  320.     '2',
  321.     '3',
  322.     '4',
  323.     '5',
  324.     '6',
  325.     '7',
  326.     '8',
  327.     '9',
  328.     ':',
  329.     ';',
  330.     '<',
  331.     '=',
  332.     '>',
  333.     '?',
  334.     '@',
  335.     'a',
  336.     'b',
  337.     'c',
  338.     'd',
  339.     'e',
  340.     'f',
  341.     'g',
  342.     'h',
  343.     'i',
  344.     'j',
  345.     'k',
  346.     'l',
  347.     'm',
  348.     'n',
  349.     'o',
  350.     'p',
  351.     'q',
  352.     'r',
  353.     's',
  354.     't',
  355.     'u',
  356.     'v',
  357.     'w',
  358.     'x',
  359.     'y',
  360.     'z',
  361.     '[',
  362.     '\\',
  363.     ']',
  364.     '^',
  365.     '_',
  366.     '`',
  367.     'a',
  368.     'b',
  369.     'c',
  370.     'd',
  371.     'e',
  372.     'f',
  373.     'g',
  374.     'h',
  375.     'i',
  376.     'j',
  377.     'k',
  378.     'l',
  379.     'm',
  380.     'n',
  381.     'o',
  382.     'p',
  383.     'q',
  384.     'r',
  385.     's',
  386.     't',
  387.     'u',
  388.     'v',
  389.     'w',
  390.     'x',
  391.     'y',
  392.     'z',
  393.     '{',
  394.     '|',
  395.     '}',
  396.     '~',
  397.     '\177',
  398.     '\200',
  399.     '\201',
  400.     '\202',
  401.     '\203',
  402.     '\204',
  403.     '\205',
  404.     '\206',
  405.     '\207',
  406.     '\210',
  407.     '\211',
  408.     '\212',
  409.     '\213',
  410.     '\214',
  411.     '\215',
  412.     '\216',
  413.     '\217',
  414.     '\220',
  415.     '\221',
  416.     '\222',
  417.     '\223',
  418.     '\224',
  419.     '\225',
  420.     '\226',
  421.     '\227',
  422.     '\230',
  423.     '\231',
  424.     '\232',
  425.     '\233',
  426.     '\234',
  427.     '\235',
  428.     '\236',
  429.     '\237',
  430.     '\240',
  431.     '\241',
  432.     '\242',
  433.     '\243',
  434.     '\244',
  435.     '\245',
  436.     '\246',
  437.     '\247',
  438.     '\250',
  439.     '\251',
  440.     '\252',
  441.     '\253',
  442.     '\254',
  443.     '\255',
  444.     '\256',
  445.     '\257',
  446.     '\260',
  447.     '\261',
  448.     '\262',
  449.     '\263',
  450.     '\264',
  451.     '\265',
  452.     '\266',
  453.     '\267',
  454.     '\270',
  455.     '\271',
  456.     '\272',
  457.     '\273',
  458.     '\274',
  459.     '\275',
  460.     '\276',
  461.     '\277',
  462.     '\340',
  463.     '\341',
  464.     '\342',
  465.     '\343',
  466.     '\344',
  467.     '\345',
  468.     '\346',
  469.     '\347',
  470.     '\350',
  471.     '\351',
  472.     '\352',
  473.     '\353',
  474.     '\354',
  475.     '\355',
  476.     '\356',
  477.     '\357',
  478.     '\360',
  479.     '\361',
  480.     '\362',
  481.     '\363',
  482.     '\364',
  483.     '\365',
  484.     '\366',
  485.     '\367',
  486.     '\370',
  487.     '\371',
  488.     '\372',
  489.     '\373',
  490.     '\374',
  491.     '\375',
  492.     '\376',
  493.     '\337',
  494.     '\340',
  495.     '\341',
  496.     '\342',
  497.     '\343',
  498.     '\344',
  499.     '\345',
  500.     '\346',
  501.     '\347',
  502.     '\350',
  503.     '\351',
  504.     '\352',
  505.     '\353',
  506.     '\354',
  507.     '\355',
  508.     '\356',
  509.     '\357',
  510.     '\360',
  511.     '\361',
  512.     '\362',
  513.     '\363',
  514.     '\364',
  515.     '\365',
  516.     '\366',
  517.     '\367',
  518.     '\370',
  519.     '\371',
  520.     '\372',
  521.     '\373',
  522.     '\374',
  523.     '\375',
  524.     '\376',
  525.     '\377',
  526.   };
  527.  
  528. CONST unsigned char __ctype_toupper_ISO_8859_1 [] =
  529.   {
  530.     '\377',
  531.     '\000',
  532.     '\001',
  533.     '\002',
  534.     '\003',
  535.     '\004',
  536.     '\005',
  537.     '\006',
  538.     '\007',
  539.     '\010',
  540.     '\011',
  541.     '\012',
  542.     '\013',
  543.     '\014',
  544.     '\015',
  545.     '\016',
  546.     '\017',
  547.     '\020',
  548.     '\021',
  549.     '\022',
  550.     '\023',
  551.     '\024',
  552.     '\025',
  553.     '\026',
  554.     '\027',
  555.     '\030',
  556.     '\031',
  557.     '\032',
  558.     '\033',
  559.     '\034',
  560.     '\035',
  561.     '\036',
  562.     '\037',
  563.     '\040',
  564.     '!',
  565.     '"',
  566.     '#',
  567.     '$',
  568.     '%',
  569.     '&',
  570.     '\'',
  571.     '(',
  572.     ')',
  573.     '*',
  574.     '+',
  575.     ',',
  576.     '-',
  577.     '.',
  578.     '/',
  579.     '0',
  580.     '1',
  581.     '2',
  582.     '3',
  583.     '4',
  584.     '5',
  585.     '6',
  586.     '7',
  587.     '8',
  588.     '9',
  589.     ':',
  590.     ';',
  591.     '<',
  592.     '=',
  593.     '>',
  594.     '?',
  595.     '@',
  596.     'A',
  597.     'B',
  598.     'C',
  599.     'D',
  600.     'E',
  601.     'F',
  602.     'G',
  603.     'H',
  604.     'I',
  605.     'J',
  606.     'K',
  607.     'L',
  608.     'M',
  609.     'N',
  610.     'O',
  611.     'P',
  612.     'Q',
  613.     'R',
  614.     'S',
  615.     'T',
  616.     'U',
  617.     'V',
  618.     'W',
  619.     'X',
  620.     'Y',
  621.     'Z',
  622.     '[',
  623.     '\\',
  624.     ']',
  625.     '^',
  626.     '_',
  627.     '`',
  628.     'A',
  629.     'B',
  630.     'C',
  631.     'D',
  632.     'E',
  633.     'F',
  634.     'G',
  635.     'H',
  636.     'I',
  637.     'J',
  638.     'K',
  639.     'L',
  640.     'M',
  641.     'N',
  642.     'O',
  643.     'P',
  644.     'Q',
  645.     'R',
  646.     'S',
  647.     'T',
  648.     'U',
  649.     'V',
  650.     'W',
  651.     'X',
  652.     'Y',
  653.     'Z',
  654.     '{',
  655.     '|',
  656.     '}',
  657.     '~',
  658.     '\177',
  659.     '\200',
  660.     '\201',
  661.     '\202',
  662.     '\203',
  663.     '\204',
  664.     '\205',
  665.     '\206',
  666.     '\207',
  667.     '\210',
  668.     '\211',
  669.     '\212',
  670.     '\213',
  671.     '\214',
  672.     '\215',
  673.     '\216',
  674.     '\217',
  675.     '\220',
  676.     '\221',
  677.     '\222',
  678.     '\223',
  679.     '\224',
  680.     '\225',
  681.     '\226',
  682.     '\227',
  683.     '\230',
  684.     '\231',
  685.     '\232',
  686.     '\233',
  687.     '\234',
  688.     '\235',
  689.     '\236',
  690.     '\237',
  691.     '\240',
  692.     '\241',
  693.     '\242',
  694.     '\243',
  695.     '\244',
  696.     '\245',
  697.     '\246',
  698.     '\247',
  699.     '\250',
  700.     '\251',
  701.     '\252',
  702.     '\253',
  703.     '\254',
  704.     '\255',
  705.     '\256',
  706.     '\257',
  707.     '\260',
  708.     '\261',
  709.     '\262',
  710.     '\263',
  711.     '\264',
  712.     '\265',
  713.     '\266',
  714.     '\267',
  715.     '\270',
  716.     '\271',
  717.     '\272',
  718.     '\273',
  719.     '\274',
  720.     '\275',
  721.     '\276',
  722.     '\277',
  723.     '\300',
  724.     '\301',
  725.     '\302',
  726.     '\303',
  727.     '\304',
  728.     '\305',
  729.     '\306',
  730.     '\307',
  731.     '\310',
  732.     '\311',
  733.     '\312',
  734.     '\313',
  735.     '\314',
  736.     '\315',
  737.     '\316',
  738.     '\317',
  739.     '\320',
  740.     '\321',
  741.     '\322',
  742.     '\323',
  743.     '\324',
  744.     '\325',
  745.     '\326',
  746.     '\327',
  747.     '\330',
  748.     '\331',
  749.     '\332',
  750.     '\333',
  751.     '\334',
  752.     '\335',
  753.     '\336',
  754.     '\337',
  755.     '\300',
  756.     '\301',
  757.     '\302',
  758.     '\303',
  759.     '\304',
  760.     '\305',
  761.     '\306',
  762.     '\307',
  763.     '\310',
  764.     '\311',
  765.     '\312',
  766.     '\313',
  767.     '\314',
  768.     '\315',
  769.     '\316',
  770.     '\317',
  771.     '\320',
  772.     '\321',
  773.     '\322',
  774.     '\323',
  775.     '\324',
  776.     '\325',
  777.     '\326',
  778.     '\327',
  779.     '\330',
  780.     '\331',
  781.     '\332',
  782.     '\333',
  783.     '\334',
  784.     '\335',
  785.     '\336',
  786.     '\377',
  787.   };
  788.  
  789.  
  790. CONST struct ctype_ctype_info __ctype_ctype_ISO_8859_1 =
  791.   {
  792.     (unsigned short int *) __ctype_b_ISO_8859_1,
  793.     (unsigned char *) __ctype_tolower_ISO_8859_1,
  794.     (unsigned char *) __ctype_toupper_ISO_8859_1
  795.   };
  796.