1 package com.icl.saxon.charcode; 2 3 6 7 public class CP1250CharacterSet implements CharacterSet{ 8 9 private static boolean[] c = null; 10 11 private static void init() { 12 13 c = new boolean[740]; 14 15 for (int i=0; i<127; i++) { 16 c[i] = true; 17 } 18 for (int i=128; i<740; i++) { 19 c[i] = false; 20 } 21 22 c[160] = true; 23 c[164] = true; 24 c[166] = true; 25 c[167] = true; 26 c[168] = true; 27 c[169] = true; 28 c[171] = true; 29 c[172] = true; 30 c[173] = true; 31 c[174] = true; 32 c[176] = true; 33 c[177] = true; 34 c[180] = true; 35 c[181] = true; 36 c[182] = true; 37 c[183] = true; 38 c[184] = true; 39 c[187] = true; 40 c[193] = true; 41 c[194] = true; 42 c[196] = true; 43 c[199] = true; 44 c[201] = true; 45 c[203] = true; 46 c[205] = true; 47 c[206] = true; 48 c[211] = true; 49 c[212] = true; 50 c[214] = true; 51 c[215] = true; 52 c[218] = true; 53 c[220] = true; 54 c[221] = true; 55 c[223] = true; 56 c[225] = true; 57 c[226] = true; 58 c[228] = true; 59 c[231] = true; 60 c[233] = true; 61 c[235] = true; 62 c[237] = true; 63 c[238] = true; 64 c[243] = true; 65 c[244] = true; 66 c[246] = true; 67 c[247] = true; 68 c[250] = true; 69 c[252] = true; 70 c[253] = true; 71 c[258] = true; 72 c[259] = true; 73 c[260] = true; 74 c[261] = true; 75 c[262] = true; 76 c[263] = true; 77 c[268] = true; 78 c[269] = true; 79 c[270] = true; 80 c[271] = true; 81 c[272] = true; 82 c[273] = true; 83 c[280] = true; 84 c[281] = true; 85 c[282] = true; 86 c[283] = true; 87 c[313] = true; 88 c[314] = true; 89 c[317] = true; 90 c[318] = true; 91 c[321] = true; 92 c[322] = true; 93 c[323] = true; 94 c[324] = true; 95 c[327] = true; 96 c[328] = true; 97 c[336] = true; 98 c[337] = true; 99 c[340] = true; 100 c[341] = true; 101 c[344] = true; 102 c[345] = true; 103 c[346] = true; 104 c[347] = true; 105 c[350] = true; 106 c[351] = true; 107 c[352] = true; 108 c[353] = true; 109 c[354] = true; 110 c[355] = true; 111 c[356] = true; 112 c[357] = true; 113 c[366] = true; 114 c[367] = true; 115 c[368] = true; 116 c[369] = true; 117 c[377] = true; 118 c[378] = true; 119 c[379] = true; 120 c[380] = true; 121 c[381] = true; 122 c[382] = true; 123 c[711] = true; 124 c[728] = true; 125 c[729] = true; 126 c[731] = true; 127 c[733] = true; 128 } 146 147 public CP1250CharacterSet() { 148 if (c==null) init(); 149 } 150 151 public final boolean inCharset(int ch) { 152 return (ch < 740 && c[ch]) || 153 ch==8211 || 154 ch==8212 || 155 ch==8216 || 156 ch==8217 || 157 ch==8218 || 158 ch==8220 || 159 ch==8221 || 160 ch==8222 || 161 ch==8224 || 162 ch==8225 || 163 ch==8226 || 164 ch==8230 || 165 ch==8240 || 166 ch==8249 || 167 ch==8250 || 168 ch==8364 || 169 ch==8482; 170 } 171 172 } 173 | Popular Tags |