source-class-Com.Tecnick.Unicode.Data.Mirror

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
  1: <?php
  2: /**
  3:  * Mirror.php
  4:  *
  5:  * @since       2011-05-23
  6:  * @category    Library
  7:  * @package     UnicodeData
  8:  * @author      Nicola Asuni <info@tecnick.com>
  9:  * @copyright   2011-2015 Nicola Asuni - Tecnick.com LTD
 10:  * @license     http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
 11:  * @link        https://github.com/tecnickcom/tc-lib-unicode-data
 12:  *
 13:  * This file is part of tc-lib-unicode-data software library.
 14:  */
 15: 
 16: namespace Com\Tecnick\Unicode\Data;
 17: 
 18: /**
 19:  * Com\Tecnick\Unicode\Data\Mirror
 20:  *
 21:  * @since       2011-05-23
 22:  * @category    Library
 23:  * @package     UnicodeData
 24:  * @author      Nicola Asuni <info@tecnick.com>
 25:  * @copyright   2011-2015 Nicola Asuni - Tecnick.com LTD
 26:  * @license     http://www.gnu.org/copyleft/lesser.html GNU-LGPL v3 (see LICENSE.TXT)
 27:  * @link        https://github.com/tecnickcom/tc-lib-unicode-data
 28:  */
 29: class Mirror
 30: {
 31:     /**
 32:      * Mirror unicode characters.
 33:      * For information on bidi mirroring, see UAX #9:
 34:      * Bidirectional Algorithm, at http://www.unicode.org/unicode/reports/tr9/
 35:      *
 36:      * @var array
 37:      */
 38:     public static $uni = array(
 39:         0x0028=>0x0029,
 40:         0x0029=>0x0028,
 41:         0x003C=>0x003E,
 42:         0x003E=>0x003C,
 43:         0x005B=>0x005D,
 44:         0x005D=>0x005B,
 45:         0x007B=>0x007D,
 46:         0x007D=>0x007B,
 47:         0x00AB=>0x00BB,
 48:         0x00BB=>0x00AB,
 49:         0x0F3A=>0x0F3B,
 50:         0x0F3B=>0x0F3A,
 51:         0x0F3C=>0x0F3D,
 52:         0x0F3D=>0x0F3C,
 53:         0x169B=>0x169C,
 54:         0x169C=>0x169B,
 55:         0x2018=>0x2019,
 56:         0x2019=>0x2018,
 57:         0x201C=>0x201D,
 58:         0x201D=>0x201C,
 59:         0x2039=>0x203A,
 60:         0x203A=>0x2039,
 61:         0x2045=>0x2046,
 62:         0x2046=>0x2045,
 63:         0x207D=>0x207E,
 64:         0x207E=>0x207D,
 65:         0x208D=>0x208E,
 66:         0x208E=>0x208D,
 67:         0x2208=>0x220B,
 68:         0x2209=>0x220C,
 69:         0x220A=>0x220D,
 70:         0x220B=>0x2208,
 71:         0x220C=>0x2209,
 72:         0x220D=>0x220A,
 73:         0x2215=>0x29F5,
 74:         0x223C=>0x223D,
 75:         0x223D=>0x223C,
 76:         0x2243=>0x22CD,
 77:         0x2252=>0x2253,
 78:         0x2253=>0x2252,
 79:         0x2254=>0x2255,
 80:         0x2255=>0x2254,
 81:         0x2264=>0x2265,
 82:         0x2265=>0x2264,
 83:         0x2266=>0x2267,
 84:         0x2267=>0x2266,
 85:         0x2268=>0x2269,
 86:         0x2269=>0x2268,
 87:         0x226A=>0x226B,
 88:         0x226B=>0x226A,
 89:         0x226E=>0x226F,
 90:         0x226F=>0x226E,
 91:         0x2270=>0x2271,
 92:         0x2271=>0x2270,
 93:         0x2272=>0x2273,
 94:         0x2273=>0x2272,
 95:         0x2274=>0x2275,
 96:         0x2275=>0x2274,
 97:         0x2276=>0x2277,
 98:         0x2277=>0x2276,
 99:         0x2278=>0x2279,
100:         0x2279=>0x2278,
101:         0x227A=>0x227B,
102:         0x227B=>0x227A,
103:         0x227C=>0x227D,
104:         0x227D=>0x227C,
105:         0x227E=>0x227F,
106:         0x227F=>0x227E,
107:         0x2280=>0x2281,
108:         0x2281=>0x2280,
109:         0x2282=>0x2283,
110:         0x2283=>0x2282,
111:         0x2284=>0x2285,
112:         0x2285=>0x2284,
113:         0x2286=>0x2287,
114:         0x2287=>0x2286,
115:         0x2288=>0x2289,
116:         0x2289=>0x2288,
117:         0x228A=>0x228B,
118:         0x228B=>0x228A,
119:         0x228F=>0x2290,
120:         0x2290=>0x228F,
121:         0x2291=>0x2292,
122:         0x2292=>0x2291,
123:         0x2298=>0x29B8,
124:         0x22A2=>0x22A3,
125:         0x22A3=>0x22A2,
126:         0x22A6=>0x2ADE,
127:         0x22A8=>0x2AE4,
128:         0x22A9=>0x2AE3,
129:         0x22AB=>0x2AE5,
130:         0x22B0=>0x22B1,
131:         0x22B1=>0x22B0,
132:         0x22B2=>0x22B3,
133:         0x22B3=>0x22B2,
134:         0x22B4=>0x22B5,
135:         0x22B5=>0x22B4,
136:         0x22B6=>0x22B7,
137:         0x22B7=>0x22B6,
138:         0x22C9=>0x22CA,
139:         0x22CA=>0x22C9,
140:         0x22CB=>0x22CC,
141:         0x22CC=>0x22CB,
142:         0x22CD=>0x2243,
143:         0x22D0=>0x22D1,
144:         0x22D1=>0x22D0,
145:         0x22D6=>0x22D7,
146:         0x22D7=>0x22D6,
147:         0x22D8=>0x22D9,
148:         0x22D9=>0x22D8,
149:         0x22DA=>0x22DB,
150:         0x22DB=>0x22DA,
151:         0x22DC=>0x22DD,
152:         0x22DD=>0x22DC,
153:         0x22DE=>0x22DF,
154:         0x22DF=>0x22DE,
155:         0x22E0=>0x22E1,
156:         0x22E1=>0x22E0,
157:         0x22E2=>0x22E3,
158:         0x22E3=>0x22E2,
159:         0x22E4=>0x22E5,
160:         0x22E5=>0x22E4,
161:         0x22E6=>0x22E7,
162:         0x22E7=>0x22E6,
163:         0x22E8=>0x22E9,
164:         0x22E9=>0x22E8,
165:         0x22EA=>0x22EB,
166:         0x22EB=>0x22EA,
167:         0x22EC=>0x22ED,
168:         0x22ED=>0x22EC,
169:         0x22F0=>0x22F1,
170:         0x22F1=>0x22F0,
171:         0x22F2=>0x22FA,
172:         0x22F3=>0x22FB,
173:         0x22F4=>0x22FC,
174:         0x22F6=>0x22FD,
175:         0x22F7=>0x22FE,
176:         0x22FA=>0x22F2,
177:         0x22FB=>0x22F3,
178:         0x22FC=>0x22F4,
179:         0x22FD=>0x22F6,
180:         0x22FE=>0x22F7,
181:         0x2308=>0x2309,
182:         0x2309=>0x2308,
183:         0x230A=>0x230B,
184:         0x230B=>0x230A,
185:         0x2329=>0x232A,
186:         0x232A=>0x2329,
187:         0x2768=>0x2769,
188:         0x2769=>0x2768,
189:         0x276A=>0x276B,
190:         0x276B=>0x276A,
191:         0x276C=>0x276D,
192:         0x276D=>0x276C,
193:         0x276E=>0x276F,
194:         0x276F=>0x276E,
195:         0x2770=>0x2771,
196:         0x2771=>0x2770,
197:         0x2772=>0x2773,
198:         0x2773=>0x2772,
199:         0x2774=>0x2775,
200:         0x2775=>0x2774,
201:         0x27C3=>0x27C4,
202:         0x27C4=>0x27C3,
203:         0x27C5=>0x27C6,
204:         0x27C6=>0x27C5,
205:         0x27D5=>0x27D6,
206:         0x27D6=>0x27D5,
207:         0x27DD=>0x27DE,
208:         0x27DE=>0x27DD,
209:         0x27E2=>0x27E3,
210:         0x27E3=>0x27E2,
211:         0x27E4=>0x27E5,
212:         0x27E5=>0x27E4,
213:         0x27E6=>0x27E7,
214:         0x27E7=>0x27E6,
215:         0x27E8=>0x27E9,
216:         0x27E9=>0x27E8,
217:         0x27EA=>0x27EB,
218:         0x27EB=>0x27EA,
219:         0x2983=>0x2984,
220:         0x2984=>0x2983,
221:         0x2985=>0x2986,
222:         0x2986=>0x2985,
223:         0x2987=>0x2988,
224:         0x2988=>0x2987,
225:         0x2989=>0x298A,
226:         0x298A=>0x2989,
227:         0x298B=>0x298C,
228:         0x298C=>0x298B,
229:         0x298D=>0x2990,
230:         0x298E=>0x298F,
231:         0x298F=>0x298E,
232:         0x2990=>0x298D,
233:         0x2991=>0x2992,
234:         0x2992=>0x2991,
235:         0x2993=>0x2994,
236:         0x2994=>0x2993,
237:         0x2995=>0x2996,
238:         0x2996=>0x2995,
239:         0x2997=>0x2998,
240:         0x2998=>0x2997,
241:         0x29B8=>0x2298,
242:         0x29C0=>0x29C1,
243:         0x29C1=>0x29C0,
244:         0x29C4=>0x29C5,
245:         0x29C5=>0x29C4,
246:         0x29CF=>0x29D0,
247:         0x29D0=>0x29CF,
248:         0x29D1=>0x29D2,
249:         0x29D2=>0x29D1,
250:         0x29D4=>0x29D5,
251:         0x29D5=>0x29D4,
252:         0x29D8=>0x29D9,
253:         0x29D9=>0x29D8,
254:         0x29DA=>0x29DB,
255:         0x29DB=>0x29DA,
256:         0x29F5=>0x2215,
257:         0x29F8=>0x29F9,
258:         0x29F9=>0x29F8,
259:         0x29FC=>0x29FD,
260:         0x29FD=>0x29FC,
261:         0x2A2B=>0x2A2C,
262:         0x2A2C=>0x2A2B,
263:         0x2A2D=>0x2A2E,
264:         0x2A2E=>0x2A2D,
265:         0x2A34=>0x2A35,
266:         0x2A35=>0x2A34,
267:         0x2A3C=>0x2A3D,
268:         0x2A3D=>0x2A3C,
269:         0x2A64=>0x2A65,
270:         0x2A65=>0x2A64,
271:         0x2A79=>0x2A7A,
272:         0x2A7A=>0x2A79,
273:         0x2A7D=>0x2A7E,
274:         0x2A7E=>0x2A7D,
275:         0x2A7F=>0x2A80,
276:         0x2A80=>0x2A7F,
277:         0x2A81=>0x2A82,
278:         0x2A82=>0x2A81,
279:         0x2A83=>0x2A84,
280:         0x2A84=>0x2A83,
281:         0x2A8B=>0x2A8C,
282:         0x2A8C=>0x2A8B,
283:         0x2A91=>0x2A92,
284:         0x2A92=>0x2A91,
285:         0x2A93=>0x2A94,
286:         0x2A94=>0x2A93,
287:         0x2A95=>0x2A96,
288:         0x2A96=>0x2A95,
289:         0x2A97=>0x2A98,
290:         0x2A98=>0x2A97,
291:         0x2A99=>0x2A9A,
292:         0x2A9A=>0x2A99,
293:         0x2A9B=>0x2A9C,
294:         0x2A9C=>0x2A9B,
295:         0x2AA1=>0x2AA2,
296:         0x2AA2=>0x2AA1,
297:         0x2AA6=>0x2AA7,
298:         0x2AA7=>0x2AA6,
299:         0x2AA8=>0x2AA9,
300:         0x2AA9=>0x2AA8,
301:         0x2AAA=>0x2AAB,
302:         0x2AAB=>0x2AAA,
303:         0x2AAC=>0x2AAD,
304:         0x2AAD=>0x2AAC,
305:         0x2AAF=>0x2AB0,
306:         0x2AB0=>0x2AAF,
307:         0x2AB3=>0x2AB4,
308:         0x2AB4=>0x2AB3,
309:         0x2ABB=>0x2ABC,
310:         0x2ABC=>0x2ABB,
311:         0x2ABD=>0x2ABE,
312:         0x2ABE=>0x2ABD,
313:         0x2ABF=>0x2AC0,
314:         0x2AC0=>0x2ABF,
315:         0x2AC1=>0x2AC2,
316:         0x2AC2=>0x2AC1,
317:         0x2AC3=>0x2AC4,
318:         0x2AC4=>0x2AC3,
319:         0x2AC5=>0x2AC6,
320:         0x2AC6=>0x2AC5,
321:         0x2ACD=>0x2ACE,
322:         0x2ACE=>0x2ACD,
323:         0x2ACF=>0x2AD0,
324:         0x2AD0=>0x2ACF,
325:         0x2AD1=>0x2AD2,
326:         0x2AD2=>0x2AD1,
327:         0x2AD3=>0x2AD4,
328:         0x2AD4=>0x2AD3,
329:         0x2AD5=>0x2AD6,
330:         0x2AD6=>0x2AD5,
331:         0x2ADE=>0x22A6,
332:         0x2AE3=>0x22A9,
333:         0x2AE4=>0x22A8,
334:         0x2AE5=>0x22AB,
335:         0x2AEC=>0x2AED,
336:         0x2AED=>0x2AEC,
337:         0x2AF7=>0x2AF8,
338:         0x2AF8=>0x2AF7,
339:         0x2AF9=>0x2AFA,
340:         0x2AFA=>0x2AF9,
341:         0x2E02=>0x2E03,
342:         0x2E03=>0x2E02,
343:         0x2E04=>0x2E05,
344:         0x2E05=>0x2E04,
345:         0x2E09=>0x2E0A,
346:         0x2E0A=>0x2E09,
347:         0x2E0C=>0x2E0D,
348:         0x2E0D=>0x2E0C,
349:         0x2E1C=>0x2E1D,
350:         0x2E1D=>0x2E1C,
351:         0x3008=>0x3009,
352:         0x3009=>0x3008,
353:         0x300A=>0x300B,
354:         0x300B=>0x300A,
355:         0x300C=>0x300D,
356:         0x300D=>0x300C,
357:         0x300E=>0x300F,
358:         0x300F=>0x300E,
359:         0x3010=>0x3011,
360:         0x3011=>0x3010,
361:         0x3014=>0x3015,
362:         0x3015=>0x3014,
363:         0x3016=>0x3017,
364:         0x3017=>0x3016,
365:         0x3018=>0x3019,
366:         0x3019=>0x3018,
367:         0x301A=>0x301B,
368:         0x301B=>0x301A,
369:         0x301D=>0x301E,
370:         0x301E=>0x301D,
371:         0xFE59=>0xFE5A,
372:         0xFE5A=>0xFE59,
373:         0xFE5B=>0xFE5C,
374:         0xFE5C=>0xFE5B,
375:         0xFE5D=>0xFE5E,
376:         0xFE5E=>0xFE5D,
377:         0xFE64=>0xFE65,
378:         0xFE65=>0xFE64,
379:         0xFF08=>0xFF09,
380:         0xFF09=>0xFF08,
381:         0xFF1C=>0xFF1E,
382:         0xFF1E=>0xFF1C,
383:         0xFF3B=>0xFF3D,
384:         0xFF3D=>0xFF3B,
385:         0xFF5B=>0xFF5D,
386:         0xFF5D=>0xFF5B,
387:         0xFF5F=>0xFF60,
388:         0xFF60=>0xFF5F,
389:         0xFF62=>0xFF63,
390:         0xFF63=>0xFF62
391:     );
392: }
393: 
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy